Skip to the page
Home Campus
Start free

Expanding a Term Times a Bracket

How to expand a bracket multiplied by a term with a letter, such as x(x+3)x(x + 3) or −2a(3a−b)-2a(3a - b), and how to simplify after expanding.

Before you start

In Secondary 1 you expanded a number times a bracket by multiplying each term inside by the number: 3(x+2)=3x+63(x + 2) = 3x + 6 and −3(6x−y)=−18x+3y.-3(6x - y) = -18x + 3y\text{.}

A minus sign in front of a bracket changes the sign of every term inside: −(x+y)=−x−y-(x + y) = -x - y and −(x−y)=−x+y-(x - y) = -x + y.

Expanding means writing a product as a sum or difference of terms. In this lesson the term in front of the bracket has a letter in it.

A Letter in Front of the Bracket

The distributive law

a(b+c)=ab+aca(b + c) = ab + ac and a(b−c)=ab−aca(b - c) = ab - ac

The term in front multiplies each term inside the bracket. This is true whatever aa, bb and cc stand for: numbers, letters, or terms such as 2x2x.

When xx is a length, x(x+3)x(x + 3) is the area of a rectangle xx by (x+3)(x + 3). Cutting it along the line between xx and 33 gives a square of area x×x=x2x \times x = x^2 and a rectangle of area x×3=3xx \times 3 = 3x. The whole area is the sum of the two pieces. This is the shape of Example 9 in the last lesson, where the two areas were added; now we write the whole area as a product and expand it.

Example 1: Expand x(x+3)x(x + 3)

Expand x(x+3)x(x + 3).

Solution

Multiply each term in the bracket by xx:

x(x+3)=x×x+x×3x(x + 3) = x \times x + x \times 3

=x2+3x= x^2 + 3x

The two terms are the two pieces of the rectangle:

A rectangle x high and x plus 3 long, cut into a square x by x, marked x squared, and a rectangle 3 by x, marked 3x.x3xx + 3x²3x

x(x+3)=x2+3xx(x + 3) = x^2 + 3x

Multiplying two terms

Multiply the numbers, then the letters. Like signs give ++; unlike signs give −-.

2x×3x=6x22x \times 3x = 6x^2, −3a×4b=−12ab,\quad -3a \times 4b = -12ab\text{,} −x×(−5)=5x\quad -x \times (-5) = 5x

A letter times itself is a square: a×a=a2a \times a = a^2. And b×b2=b×b×b=b3.b \times b^2 = b \times b \times b = b^3\text{.}

Example 2: Expand 2x(3x−5)2x(3x - 5)

Expand 2x(3x−5)2x(3x - 5).

Solution

2x(3x−5)=2x×3x+2x×(−5)2x(3x - 5) = 2x \times 3x + 2x \times (-5)

2x×3x2x \times 3x: 2×3=62 \times 3 = 6 and x×x=x2x \times x = x^2, giving 6x26x^2. 2x×(−5)=−10x2x \times (-5) = -10x.

=6x2−10x= 6x^2 - 10x

2x(3x−5)=6x2−10x2x(3x - 5) = 6x^2 - 10x

A Negative Term in Front

When the term in front is negative, its sign goes with it into every product. Take extra care with the second term: a negative times a negative is positive.

Example 3: Expand −x(4−x)-x(4 - x)

Expand −x(4−x)-x(4 - x). Write the answer in descending powers of xx.

Solution

−x(4−x)=(−x)×4+(−x)×(−x)-x(4 - x) = (-x) \times 4 + (-x) \times (-x)

=−4x+x2= -4x + x^2

In descending powers of xx: x2−4xx^2 - 4x.

−x(4−x)=x2−4x-x(4 - x) = x^2 - 4x

Example 4: Two negatives, and a minus sign in front

Expand (a) −2a(−7x−6y)-2a(-7x - 6y); (b) 5−a(−2b+3c)5 - a(-2b + 3c).

Solution

(a) −2a×(−7x)=+14ax-2a \times (-7x) = +14ax and −2a×(−6y)=+12ay.-2a \times (-6y) = +12ay\text{.}

−2a(−7x−6y)=14ax+12ay-2a(-7x - 6y) = 14ax + 12ay

(b) The 55 is not multiplied. The term in front of the bracket is −a-a, sign included:

−a×(−2b)=+2ab-a \times (-2b) = +2ab and −a×3c=−3ac-a \times 3c = -3ac.

5−a(−2b+3c)=5+2ab−3ac5 - a(-2b + 3c) = 5 + 2ab - 3ac

(a) 14ax+12ay14ax + 12ay; (b) 5+2ab−3ac5 + 2ab - 3ac

Powers, Longer Brackets and the Term on the Right

The same law works when the terms have several letters or powers, when the bracket has three terms, and when the term is written after the bracket: (b+c)a=ba+ca(b + c)a = ba + ca.

Example 5: Terms with powers

Expand ab(ac+b2)ab(ac + b^2).

Solution

ab×ac=a×a×b×c=a2bcab \times ac = a \times a \times b \times c = a^2bc

ab×b2=a×b×b×b=ab3ab \times b^2 = a \times b \times b \times b = ab^3

ab(ac+b2)=a2bc+ab3ab(ac + b^2) = a^2bc + ab^3

ab(ac+b2)=a2bc+ab3ab(ac + b^2) = a^2bc + ab^3

Example 6: Three terms, and the term on the right

Expand (a) −2x(x2−3x+4)-2x(x^2 - 3x + 4); (b) (3x−2)×4x(3x - 2) \times 4x.

Solution

(a) Multiply each of the three terms by −2x-2x:

−2x×x2=−2x3-2x \times x^2 = -2x^3, −2x×(−3x)=+6x2,\quad -2x \times (-3x) = +6x^2\text{,} −2x×4=−8x\quad -2x \times 4 = -8x

−2x(x2−3x+4)=−2x3+6x2−8x-2x(x^2 - 3x + 4) = -2x^3 + 6x^2 - 8x

(b) The term 4x4x multiplies each term in the bracket, just as if it were in front:

(3x−2)×4x=3x×4x−2×4x=12x2−8x(3x - 2) \times 4x = 3x \times 4x - 2 \times 4x = 12x^2 - 8x

(a) −2x3+6x2−8x-2x^3 + 6x^2 - 8x; (b) 12x2−8x12x^2 - 8x

Expanding and Simplifying

When an expression has two or more products, expand each one, keeping the sign in front of each term outside a bracket with that term. Then collect like terms.

Example 7: Two products with a minus between them

Simplify −4x(y+2z)−3x(5y−z).-4x(y + 2z) - 3x(5y - z)\text{.}

Solution

The second term in front of a bracket is −3x-3x, sign included.

−4x(y+2z)=−4xy−8xz-4x(y + 2z) = -4xy - 8xz

−3x(5y−z)=−15xy+3xz-3x(5y - z) = -15xy + 3xz

Collect: −4xy−15xy=−19xy-4xy - 15xy = -19xy and −8xz+3xz=−5xz.-8xz + 3xz = -5xz\text{.}

−4x(y+2z)−3x(5y−z)=−19xy−5xz-4x(y + 2z) - 3x(5y - z) = -19xy - 5xz

Example 8: Terms in x2x^2

Simplify (a) 3x(x−2)−x(2x+1);3x(x - 2) - x(2x + 1)\text{;} (b) x(xy+y)−y(xy+x).x(xy + y) - y(xy + x)\text{.}

Solution

(a) 3x(x−2)=3x2−6x3x(x - 2) = 3x^2 - 6x and −x(2x+1)=−2x2−x.-x(2x + 1) = -2x^2 - x\text{.}

3x2−6x−2x2−x=x2−7x3x^2 - 6x - 2x^2 - x = x^2 - 7x

(b) x(xy+y)=x2y+xyx(xy + y) = x^2y + xy and −y(xy+x)=−xy2−xy.-y(xy + x) = -xy^2 - xy\text{.}

x2y+xy−xy2−xy=x2y−xy2.x^2y + xy - xy^2 - xy = x^2y - xy^2\text{.} The terms xyxy and −xy-xy cancel, and x2yx^2y and xy2xy^2 are unlike, so they stay.

(a) x2−7xx^2 - 7x; (b) x2y−xy2x^2y - xy^2

Working Backwards and Checking

You can check an expansion by putting a number in place of the letter on both sides. If the two values differ, the expansion is wrong. (If they agree, it is very likely right; check every term as well.)

Example 9: The missing term

Find the term that goes in the box: 3x(□−4)=6x2−12x.3x(\square - 4) = 6x^2 - 12x\text{.}

Solution

The box times 3x3x must give 6x26x^2. Since 3x×2x=6x23x \times 2x = 6x^2, the box is 2x2x.

Check the other term: 3x×(−4)=−12x3x \times (-4) = -12x. ✓

The missing term is 2x2x: 3x(2x−4)=6x2−12x.3x(2x - 4) = 6x^2 - 12x\text{.}

Example 10: Spot the error

Siti wrote (a) x(x+3)=x2+3x(x + 3) = x^2 + 3 and (b) −2(x−4)=−2x−8.-2(x - 4) = -2x - 8\text{.} Find each mistake and correct it.

Solution

(a) The 33 was not multiplied by xx. Check with x=2x = 2: 2(2+3)=102(2 + 3) = 10, but 22+3=72^2 + 3 = 7. Correct: x(x+3)=x2+3xx(x + 3) = x^2 + 3x, and 22+3(2)=102^2 + 3(2) = 10. ✓

(b) −2×(−4)=+8-2 \times (-4) = +8, not −8-8. Correct: −2(x−4)=−2x+8.-2(x - 4) = -2x + 8\text{.}

(a) x2+3xx^2 + 3x; (b) −2x+8-2x + 8

Common Mistakes

  • Multiplying only the first term in the bracket: x(x+3)≠x2+3x(x + 3) \ne x^2 + 3. Every term is multiplied.
  • Losing a sign: −2(x−4)=−2x+8,-2(x - 4) = -2x + 8\text{,} because −2×(−4)=+8-2 \times (-4) = +8.
  • Writing x×xx \times x as 2x2x. It is x2x^2; and 2x×3x=6x22x \times 3x = 6x^2, not 6x6x or 5x25x^2.
  • In 5−a(−2b+3c)5 - a(-2b + 3c), multiplying by aa instead of −a-a, or multiplying the 55 as well.
  • Collecting unlike terms after expanding: x2yx^2y and xy2xy^2 are different and cannot be added.

Practice

Try each question before you open its solution. Write answers in descending powers where there is one letter.

Question 1

Expand (a) 4(2x−3)4(2x - 3); (b) −4(5x−2y)-4(5x - 2y); (c) −(5−2y)-(5 - 2y).

ShowHide solution

(a) 4×2x−4×3=8x−124 \times 2x - 4 \times 3 = 8x - 12

(b) −4×5x=−20x-4 \times 5x = -20x and −4×(−2y)=+8y.-4 \times (-2y) = +8y\text{.}

(c) The minus changes both signs: −5+2y-5 + 2y.

(a) 8x−128x - 12; (b) −20x+8y-20x + 8y; (c) −5+2y-5 + 2y, or 2y−52y - 5

Question 2

Expand (a) x(x+7)x(x + 7); (b) 3y(2y−1)3y(2y - 1); (c) 5a(a+2b)5a(a + 2b).

ShowHide solution

(a) x×x+x×7=x2+7xx \times x + x \times 7 = x^2 + 7x

(b) 3y×2y−3y×1=6y2−3y3y \times 2y - 3y \times 1 = 6y^2 - 3y

(c) 5a×a+5a×2b=5a2+10ab5a \times a + 5a \times 2b = 5a^2 + 10ab

(a) x2+7xx^2 + 7x; (b) 6y2−3y6y^2 - 3y; (c) 5a2+10ab5a^2 + 10ab

Question 3

Expand (a) −x(x−6)-x(x - 6); (b) −4p(3−2p)-4p(3 - 2p); (c) −3m(−2m+5n)-3m(-2m + 5n); (d) −2a(3a−b)-2a(3a - b).

ShowHide solution

(a) −x×x=−x2-x \times x = -x^2 and −x×(−6)=+6x-x \times (-6) = +6x.

(b) −4p×3=−12p-4p \times 3 = -12p and −4p×(−2p)=+8p2.-4p \times (-2p) = +8p^2\text{.} In descending powers: 8p2−12p8p^2 - 12p.

(c) −3m×(−2m)=+6m2-3m \times (-2m) = +6m^2 and −3m×5n=−15mn-3m \times 5n = -15mn.

(d) −2a×3a=−6a2-2a \times 3a = -6a^2 and −2a×(−b)=+2ab.-2a \times (-b) = +2ab\text{.}

(a) −x2+6x-x^2 + 6x; (b) 8p2−12p8p^2 - 12p; (c) 6m2−15mn6m^2 - 15mn; (d) −6a2+2ab-6a^2 + 2ab

Question 4

Expand (a) (2x+5)×3x(2x + 5) \times 3x; (b) 3x(x2+2x−5)3x(x^2 + 2x - 5); (c) −a(a2−4a+1)-a(a^2 - 4a + 1).

ShowHide solution

(a) 2x×3x+5×3x=6x2+15x2x \times 3x + 5 \times 3x = 6x^2 + 15x

(b) 3x×x2=3x33x \times x^2 = 3x^3, 3x×2x=6x23x \times 2x = 6x^2, 3x×(−5)=−15x3x \times (-5) = -15x.

(c) −a×a2=−a3-a \times a^2 = -a^3, −a×(−4a)=+4a2,-a \times (-4a) = +4a^2\text{,} −a×1=−a-a \times 1 = -a.

(a) 6x2+15x6x^2 + 15x; (b) 3x3+6x2−15x3x^3 + 6x^2 - 15x; (c) −a3+4a2−a-a^3 + 4a^2 - a

Question 5

Expand (a) xy(yz+x2−xy)xy(yz + x^2 - xy); (b) 2pq(p−3q)2pq(p - 3q).

ShowHide solution

(a) xy×yz=xy2zxy \times yz = xy^2z, xy×x2=x3yxy \times x^2 = x^3y, xy×(−xy)=−x2y2.xy \times (-xy) = -x^2y^2\text{.}

(b) 2pq×p=2p2q2pq \times p = 2p^2q and 2pq×(−3q)=−6pq2.2pq \times (-3q) = -6pq^2\text{.}

(a) xy2z+x3y−x2y2xy^2z + x^3y - x^2y^2; (b) 2p2q−6pq22p^2q - 6pq^2

Question 6

Expand and simplify (a) 7−2x(3x−4)7 - 2x(3x - 4); (b) x2−x(x−5)x^2 - x(x - 5).

ShowHide solution

(a) The term in front of the bracket is −2x-2x: −2x×3x=−6x2-2x \times 3x = -6x^2 and −2x×(−4)=+8x.-2x \times (-4) = +8x\text{.} So 7−6x2+8x7 - 6x^2 + 8x.

(b) −x×x=−x2-x \times x = -x^2 and −x×(−5)=+5x-x \times (-5) = +5x: x2−x2+5x=5xx^2 - x^2 + 5x = 5x.

(a) −6x2+8x+7-6x^2 + 8x + 7; (b) 5x5x

Question 7

Simplify (a) −3x(y+4z)−5x(2y−z);-3x(y + 4z) - 5x(2y - z)\text{;} (b) 2p(−4q−3r)−6q(3p+2r).2p(-4q - 3r) - 6q(3p + 2r)\text{.}

ShowHide solution

(a) −3xy−12xz−10xy+5xz.-3xy - 12xz - 10xy + 5xz\text{.} Collect: −13xy−7xz-13xy - 7xz.

(b) −8pq−6pr−18pq−12qr.-8pq - 6pr - 18pq - 12qr\text{.} qp=pqqp = pq, so −8pq−18pq=−26pq.-8pq - 18pq = -26pq\text{.}

(a) −13xy−7xz-13xy - 7xz; (b) −26pq−6pr−12qr-26pq - 6pr - 12qr

Question 8

Simplify (a) 4x(x−3)−2x(x+5);4x(x - 3) - 2x(x + 5)\text{;} (b) a(a+b)+b(a−b)a(a + b) + b(a - b); (c) h2(km+n)−m(h2m−h2k).h^2(km + n) - m(h^2m - h^2k)\text{.}

ShowHide solution

(a) 4x2−12x−2x2−10x=2x2−22x4x^2 - 12x - 2x^2 - 10x = 2x^2 - 22x

(b) a2+ab+ab−b2=a2+2ab−b2a^2 + ab + ab - b^2 = a^2 + 2ab - b^2

(c) h2km+h2n−h2m2+h2km.h^2km + h^2n - h^2m^2 + h^2km\text{.} The two h2kmh^2km terms are like: 2h2km+h2n−h2m22h^2km + h^2n - h^2m^2.

(a) 2x2−22x2x^2 - 22x; (b) a2+2ab−b2a^2 + 2ab - b^2; (c) 2h2km+h2n−h2m22h^2km + h^2n - h^2m^2

Question 9

Find the term in each box. (a) 4x(□+3)=8x2+12x;4x(\square + 3) = 8x^2 + 12x\text{;} (b) □(x−5)=−2x2+10x;\square(x - 5) = -2x^2 + 10x\text{;} (c) 3a(2a−□)=6a2−9ab3a(2a - \square) = 6a^2 - 9ab

ShowHide solution

(a) 4x×□=8x24x \times \square = 8x^2, so the box is 2x2x. Check: 4x×3=12x4x \times 3 = 12x. ✓

(b) □×x=−2x2\square \times x = -2x^2, so the box is −2x-2x. Check: −2x×(−5)=+10x.-2x \times (-5) = +10x\text{.} ✓

(c) 3a×□=9ab3a \times \square = 9ab, so the box is 3b3b. Check: 3a×2a=6a23a \times 2a = 6a^2. ✓

(a) 2x2x; (b) −2x-2x; (c) 3b3b

Question 10

A rectangular garden is xx m wide and (2x+3)(2x + 3) m long. (a) Write an expression for its area and expand it. (b) Find the area when x=4x = 4.

ShowHide solution

(a) Area =x(2x+3)=(2x2+3x)= x(2x + 3) = (2x^2 + 3x) m².

(b) 2(4)2+3(4)=32+12=44.2(4)^2 + 3(4) = 32 + 12 = 44\text{.} Check: the garden is 44 m by 1111 m, and 4×11=444 \times 11 = 44. ✓

(a) (2x2+3x)(2x^2 + 3x) m²; (b) 4444 m²

Question 11

A hall has rr rows of seats, with (2r−5)(2r - 5) seats in each row. (a) Write and expand an expression for the number of seats. (b) How many seats are there when r=20r = 20?

ShowHide solution

(a) Number of seats =r(2r−5)=2r2−5r.= r(2r - 5) = 2r^2 - 5r\text{.}

(b) 2(20)2−5(20)=800−100=700.2(20)^2 - 5(20) = 800 - 100 = 700\text{.} Check: 2020 rows of 3535 seats is 700700. ✓

(a) 2r2−5r2r^2 - 5r; (b) 700700 seats

Question 12

Each line has one mistake. Find it and correct it. (a) 3x(x−4)=3x2−43x(x - 4) = 3x^2 - 4; (b) −2y(y−5)=−2y2−10y;-2y(y - 5) = -2y^2 - 10y\text{;} (c) x(x+1)−x(x−1)=x2+x−x2−x=0x(x + 1) - x(x - 1) = x^2 + x - x^2 - x = 0

ShowHide solution

(a) The −4-4 was not multiplied by 3x3x: 3x(x−4)=3x2−12x.3x(x - 4) = 3x^2 - 12x\text{.}

(b) −2y×(−5)=+10y:-2y \times (-5) = +10y\text{:} −2y(y−5)=−2y2+10y.-2y(y - 5) = -2y^2 + 10y\text{.}

(c) The term in front of the second bracket is −x-x, and −x×(−1)=+x-x \times (-1) = +x: x2+x−x2+x=2xx^2 + x - x^2 + x = 2x. Check with x=3x = 3: 3(4)−3(2)=6=2(3).3(4) - 3(2) = 6 = 2(3)\text{.} ✓

(a) 3x2−12x3x^2 - 12x; (b) −2y2+10y-2y^2 + 10y; (c) 2x2x

Key Points

  • a(b+c)=ab+aca(b + c) = ab + ac: the term in front multiplies every term in the bracket, wherever it is written.
  • Multiply the numbers, then the letters: 2x×3x=6x22x \times 3x = 6x^2, a×a=a2a \times a = a^2.
  • The sign of the term in front goes into every product; a negative times a negative is positive.
  • In 5−a(…)5 - a(\ldots) the term multiplying the bracket is −a-a, and the 55 is left alone.
  • After expanding, collect like terms; terms such as x2yx^2y and xy2xy^2 are unlike.
  • Check an expansion by substituting a number on both sides.

‹ 3.1 Quadratic Expressions 3.3 Expanding Two Brackets ›

All Secondary 2 (Grade 8) lessons

Home Campus has lessons, practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 2 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.