Skip to main content

Expansion

Brackets often appear in algebraic expressions and equations, but what do you do with them? Whatever is around the brackets affects everything inside the brackets, and being able to remove them helps set the stage for solving equations. The process of doing this is called expansion.

Brackets in algebra

Brackets are commonly used to express mathematical formulae. They are used to group numbers, pronumerals and operations together as a whole. To manipulate expressions containing brackets, you need to remove them first.

Video tutorial – removing brackets

Watch this video to learn about removing brackets.

Hi, I'm Martin Lindsay from the Study and Learning Centre at RMIT University. This is a short movie on removing brackets in algebra.

The law that allows us to expand expressions with brackets in maths is called the distributive law. For instance, A brackets B plus C, is the same as A times B plus A times C, you're multiplying the term outside the brackets by the term inside the brackets, an alternate way of writing A times brackets B plus C, same thing, A times B plus A times C.

Before we get into some of the examples just recall some of our work we've done in the past, multiplying positive and negative numbers. Remember if the signs are the same, plus plus or minus minus the answer is positive, if the signs are different, plus and minus, then the answer is negative.

So let's use this law and multiply out this particular expression just with numbers; two times brackets three plus five, so we're going two times three plus two times five, two times three is six, two times five is ten, answer is 16. Let's look at another example but here we're using algebra; three brackets X plus two, we use the same law again, three times X plus three times two, which is three X plus six, notice we can't add three X to six because the terms are different. Similarly with negative signs, minus five brackets M plus four gives us minus five times M plus minus five times four, which is minus five M minus 20, the terms are different so they must be left alone. And finally, with two negative signs, so be careful here, minus two brackets P minus seven is minus two times P plus minus two times minus seven, which is minus two P plus 14.

Let's now move on with two sets of brackets, four brackets M minus three plus two brackets M plus one. We use the same ideas as before giving us four M minus 12 plus two M plus two, collect the like terms and we've got six M minus 10. Similarly, two sets of brackets but this time we have to be really careful because there's a negative sign. Minus six X brackets two X plus three minus three X brackets X minus three gives us minus 12 X squared minus 18 X minus 3 X squared and there it is we've got plus 9 X at the end, two negatives give us a positive, collecting up the like terms we've got minus 15 X squared minus 9 X.

Now let's looked at two sets of brackets that are placed side by side, in other words we're multiplying the first set of brackets by the second set of brackets. And if you look at the example in blue the idea is to multiply the first term in the first set of brackets by the second set of brackets and the second term in the first set of brackets by the second set of brackets, in other words X multiplied by X plus three plus two multiplied by X plus three. If we expand these brackets further we have X squared plus three X plus two X plus six and collecting the like terms gives us an answer of A squared plus five X plus six.

Here are two more examples that have been written out for you. The one in blue at the top, notice there's a negative sign so be careful here with the negative signs, giving us an answer of M squared minus M minus 20 and the example in red there are two negative signs here, so be doubly careful when multiplying out these sets of brackets, giving us an answer of Q squared minus nine Q plus 18.

Now try some questions for yourself. The answers to these problems are on the next slide. Thanks for watching this short movie.

The distributive law

The distributive law states that:

\[a(b+c) = ab+ac\]

where \(a(b+c)\) is the same as \(a \times (b+c)\).

It indicates that when a group of numbers or terms that are added together is multiplied by one number, \(a\), it is the same as multiplying the numbers or terms separately. In other words, the \(a\) outside the brackets is multiplied by everything inside the brackets.

The process of removing brackets based on the distributive law is called expansion.

Example 1 – expanding algebraic expressions

Expand \(3(x+2)\).
\[\begin{align*} 3(x+2) & =(3\times x)+(3\times2)\\
& = 3x+6
\end{align*}\]

Expand \(-5(m+4)\).
\[\begin{align*} -5(m+4) & =((-5)\times m)+((-5)\times4)\\
& =-5m-20
\end{align*}\]

Expand \(-2(p-7)\).
\[-2(p-7) =-2p+14\]

Expand \(e(e+2)\).
\[e(e+2)=e^{2}+2e\]

Expand \(-(4p-3)\).
\[ -(4p-3)=-4p+3 \]

Expand and simplify \(4(x-3)+2(x+1)\).
\[\begin{align*} 4(x-3)+2(x+1) & =(4x-12)+(2x+2)\\
& =6x-10
\end{align*}\]

Expand and simplify \(6k(2k+3)-3k(k-3)\).
\[\begin{align*} 6k(2k+3)-3k(k-3) & =(12k^{2}+18k)+(-3k^{2}+9k)\\
& =9k^{2}+27k
\end{align*}\]

Your turn – expanding algebraic expressions

  1. Expand the following.
    1. \(2(x-5)\)
    2. \(3(6-b)\)
    3. \((b+5)c\)
    4. \(2x(2a+2b)\)
    5. \(-6(p-2q+4)\)
    6. \(3y(yz-2y+1)\)
  2. Expand and simplify the following.
    1. \(3(x+1)+2(x+2)\)
    2. \(2(p-1)-(p-3)\)
    3. \(2(4m-3)-5(9-2m)\)
    4. \(2w(3w+1)+3w(2w-5)\)
    5. \(2a(a-1)-a(a-3)\)
    6. \(5j(3j+2)-2j(4j-1)\)
    7. \(3q(5q+4)+6(8-3q)\)
    8. \(2r(3r-1)-3r(3+2r)\)
  3. Expand and simplify the following by applying the correct order of operations.
    1. \(4(2m-3)+8\)
    2. \(9-3(4b+3)\)
    3. \(1-4(x-1)\)
    4. \(4-(5-2x)\)
    5. \(8m-3(1-2m)+6\)
    6. \(9c(4-c)+2(c-7)\)

    1. \(2x-10\)
    2. \(18-3b\)
    3. \(bc+5c\)
    4. \(4ax+6bx\)
    5. \(-6p+12q-24\)
    6. \(3y^{2}z-6y^{2}+3y\)
    1. \(5x+7\)
    2. \(p+1\)
    3. \(18m-51\)
    4. \(12w^{2}-13w\)
    5. \(a^{2}-a\)
    6. \(7j^{2}+12j\)
    7. \(15q^{2}-6q+48\)
    8. \(-11r\)
    1. \(8m-4\)
    2. \(-12b\)
    3. \(5-4x\)
    4. \(2x-1\)
    5. \(14m+3\)
    6. \(38x-9c^{2}-14\)

Binomial products

A binomial is an algebraic expression made up of the sum or difference of two terms. For example, \((m+2)\) and \((m+3)\) are binomials. \((a+3)\), \((1+c)\), \((a+b)\) and \((3x+2y)\) are also binomials.

A binomial product is therefore the product of two binomial terms. Using the first two examples, \((m+2)(m+3)\) would be the binomial product.

To expand the two brackets, multiply each term in the first bracket by each term in the second bracket. Then simplify if possible.

For \((m+2)(m+3)\):

\[\begin{align*} (m+2)(m+3) & = m(m+3)+2(m+3)\\
& = m^{2}+3m+2m+6\\
& = m^{2}+5m+6
\end{align*}\]

Symbolically we can write:

\[(a+b)(c+d)=ac+ad+bc+bd\]

Special cases

When the binomial product consists of two of the same binomials, there are two special cases that occur.

For \((a+b)(a+b)=(a+b)^{2}\), we can expand and simplify as shown:

\[\begin{align*} (a+b)^{2} & = (a+b)(a+b)\\
& = a^{2}+ab+ba+b^{2}\\
& = a^{2}+2ab+b^{2} & (1)
\end{align*}\]

Thus:

\[(a+b)(a+b)=(a+b))^{2}=a^{2}+2ab+b^{2}\]

For \((a-b)(a-b)=(a-b)^{2}\), similiarly, we can expand and simplify:

\[\begin{align*} (a-b)^{2} & (a-b)(a-b)\\
& = a^{2}-ab-ba+b^{2}\\
& = a^{2}-2ab+b^{2} & (2)
\end{align*}\]

Thus:

\[(a-b)(a-b)=(a-b))^{2}=a^{2}-2ab+b^{2}\]

These occur often in mathematics so you should try your best to remember them.

Example 1 – expanding binomial products

Expand \((2f+3)(g+5h)\).

\[\begin{align*} (2f+3)(g+5h) & = 2fg+(2f)(5h)+3g+15h\\
& =2fg+10fh+3g+15h
\end{align*}\]

In this example, no further simplification is possible.

Expand \((p-2)(p-7)\).
\[\begin{align*} (p-2)(p-7) & =p^{2}-7p-2p+14\\
& = p^{2}-9p+14
\end{align*}\]

Expand \((2w+3)(w-4)\).
\[\begin{align*} (2w+3)(w-4) & =2w^{2}-8w+3w-12\\
& = 2w^{2}-5w-12
\end{align*}\]

Expand \((4r-3s)^{2}\).
\[\begin{align*} (4r-3s)^{2} & = (4r-3s)(4r-3s)\\
& = 16r^{2}-12rs-12sr+9s^{2}\\
& = 16r^{2}-24rs+9s^{2}
\end{align*}\]

This can be done faster if you remember equation (2):

\[\begin{align*} (4r-3s)^{2} & = (4r)^{2}-2(4r)(3s)+(-3s)^{2}\\
& = 16r^{2}-24rs+9s^{2}
\end{align*}\]

Your turn – expanding binomial products

  1. Expand the following binomial products.
    1. \((x+5)(x+3)\)
    2. \((u-5)(u+3)\)
    3. \((k+6)(j+1)\)
    4. \((y+2)(y-2)\)
    5. \((e-7)(e-8)\)
    6. \((t-3)(5-t)\)
    7. \((3q+2)(q+1)\)
    8. \((8a+5)(a-3)\)
    9. \((2c-d)(3c+2d)\)
    10. \((3a-2b)(3a+2b)\)
  2. Expand the following.
    1. \((d+3)^{2}\)
    2. \((x-2)^{2}\)
    3. \((3v+2)^{2}\)
    4. \((y-3z)^{2}\)
    5. \((3-2q)^{2}\)
    6. \((4f-3gh)^{2}\)

    1. \(x^{2}+8x+15\)
    2. \(u^{2}-2u-15\)
    3. \(kj+6j+k+6\)
    4. \(y^{2}-4\)
    5. \(e^{2}-15e+56\)
    6. \(-t^{2}-15+8t\)
    7. \(3q^{2}+5q+2\)
    8. \(8a^{2}-19a-15\)
    9. \(6c^{2}+cd-2d^{2}\)
    10. \(9a^{2}-4b^{2}\)
    1. \(d^{2}+6d+9\)
    2. \(x^{2}-4x+4\)
    3. \(9v^{2}+12v+4\)
    4. \(y^{2}-6yz+9z^{2}\)
    5. \(9-12q+4q^{2}\)
    6. \(14f^{2}-24fg+9g^{2}h^{2}\)

Indices in algebra

The index laws may be used to simplify algebraic expressions.

Example 1 – simplifying algebraic expressions with indices

Simplify \(\left(x^{3}y^{9}\right)^{\frac{2}{3}}\).
\[\begin{align*} \left(x^{3}y^{9}\right)^{\frac{2}{3}} & = x^{3\times\frac{2}{3}}y^{9\times\frac{2}{3}}\\
& = x^{2}y^{6}
\end{align*}\]

Simplify \(\left(a^{2}b^{5}\right)^{\frac{1}{3}}\times a^{\frac{1}{3}}b^{-\frac{2}{3}}\).
\[\begin{align*} \left(a^{2}b^{5}\right)^{\frac{1}{3}}\times a^{\frac{1}{3}}b^{-\frac{2}{3}} & = a^{\frac{2}{3}}b^{\frac{5}{3}}\times a^{\frac{1}{3}}b^{-\frac{2}{3}}\\
& = a^{\frac{2}{3}+\frac{1}{3}}b^{\frac{5}{3}-\frac{2}{3}}\\
& = ab
\end{align*}\]

Your turn – simplifying algebraic expressions with indices

  1. Simplify the following expressions. Give your answers in index notation with positive indices.
    1. \(\sqrt{a}\times\sqrt[4]{a}\times\sqrt[3]{a^{2}}\)
    2. \(\left(125a^{6}b\right)^{\frac{1}{3}}\times b^{\frac{2}{3}}\)
    3. \(\dfrac{\left(2xy^{3}\right)^{\frac{1}{2}}}{2}\times \left(\dfrac{x^{\frac{3}{2}}}{y^{2}}\right)^{4}\)

    1. \(a^{\frac{17}{12}}\)
    2. \(5a^{2}b\)
    3. \(\dfrac{x^{\frac{13}{2}}}{2^{\frac{1}{2}}y^{\frac{13}{2}}}\)

Images on this page by RMIT, licensed under CC BY-NC 4.0