Before long in algebra you meet two expressions that need to be put together: the perimeter of a field whose sides are 2 x + 3 2x + 3 2 x + 3 and x + 5 x + 5 x + 5 , the total cost of two orders, or the difference between two people's savings. Adding and subtracting expressions is the skill behind all of these. It rests on one idea you met in the first lesson: only like terms can be combined. In this lesson you will add and subtract expressions in two ways, along a line and in columns, and learn the step that catches most people out, a minus sign in front of a bracket.
Only like terms join#
Like terms have the same literal factors, such as 3 a 3a 3 a and 2 a 2a 2 a , or 5 x 2 5x^2 5 x 2 and − 7 x 2 -7x^2 − 7 x 2 . They count the same thing, so their co-efficients can be added or subtracted. Unlike terms, such as 3 a 3a 3 a and 2 b 2b 2 b , stay side by side in the answer.
A good way to picture this is with tiles. Let a blue tile stand for x x x and an orange tile for y y y . Blue tiles can be counted with blue tiles and orange with orange, but a blue and an orange tile never merge into a new kind of tile.
Adding 4 x + 2 y 4x + 2y 4 x + 2 y and 3 x + 6 y 3x + 6y 3 x + 6 y : the tiles sort into a pile of 7 x 7x 7 x and a pile of 8 y 8y 8 y .
There are two ways of setting out the work: the horizontal method and the vertical method .
Adding: the horizontal method#
Write everything along one line, then gather each group of like terms and add their co-efficients.
Example 1#
Add 3 a 3a 3 a and 2 a 2a 2 a ; then add 3 a + 2 3a + 2 3 a + 2 and 5 a + 7 5a + 7 5 a + 7 .
3 a + 2 a = ( 3 + 2 ) a = 5 a 3a + 2a = (3 + 2)a = 5a 3 a + 2 a = ( 3 + 2 ) a = 5 a
3 a + 2 + 5 a + 7 = ( 3 + 5 ) a + ( 2 + 7 ) = 8 a + 9 3a + 2 + 5a + 7 = (3 + 5)a + (2 + 7) = 8a + 9 3 a + 2 + 5 a + 7 = ( 3 + 5 ) a + ( 2 + 7 ) = 8 a + 9
Example 2#
Add 4 x + 2 y 4x + 2y 4 x + 2 y and 3 x + 6 y 3x + 6y 3 x + 6 y .
4 x + 2 y + 3 x + 6 y = 4 x + 3 x + 2 y + 6 y = 7 x + 8 y \begin{aligned} 4x + 2y + 3x + 6y &= 4x + 3x + 2y + 6y \\ &= 7x + 8y \end{aligned} 4 x + 2 y + 3 x + 6 y = 4 x + 3 x + 2 y + 6 y = 7 x + 8 y
Example 3#
Add x 2 + y 2 + 3 x y x^2 + y^2 + 3xy x 2 + y 2 + 3 x y and 2 x 2 + 5 y 2 − 7 x y 2x^2 + 5y^2 - 7xy 2 x 2 + 5 y 2 − 7 x y .
x 2 + y 2 + 3 x y + 2 x 2 + 5 y 2 − 7 x y = ( 1 + 2 ) x 2 + ( 1 + 5 ) y 2 + ( 3 − 7 ) x y = 3 x 2 + 6 y 2 − 4 x y \begin{aligned} & x^2 + y^2 + 3xy + 2x^2 + 5y^2 - 7xy \\ &= (1 + 2)x^2 + (1 + 5)y^2 + (3 - 7)xy \\ &= 3x^2 + 6y^2 - 4xy \end{aligned} x 2 + y 2 + 3 x y + 2 x 2 + 5 y 2 − 7 x y = ( 1 + 2 ) x 2 + ( 1 + 5 ) y 2 + ( 3 − 7 ) x y = 3 x 2 + 6 y 2 − 4 x y
When a term moves to sit beside its partners, its sign travels with it. That is why − 7 x y -7xy − 7 x y stays negative.
Example 4: Fractional co-efficients#
Add 3 2 a 2 + 5 3 a b + 1 4 b 2 \displaystyle \frac{3}{2}a^2 + \frac{5}{3}ab + \frac{1}{4}b^2 2 3 a 2 + 3 5 ab + 4 1 b 2 and 5 6 a 2 − 3 4 a b + 3 4 b 2 \displaystyle \frac{5}{6}a^2 - \frac{3}{4}ab + \frac{3}{4}b^2 6 5 a 2 − 4 3 ab + 4 3 b 2 .
Work out each group of co-efficients separately:
3 2 + 5 6 = 9 + 5 6 = 14 6 = 7 3 5 3 − 3 4 = 20 − 9 12 = 11 12 1 4 + 3 4 = 1 \displaystyle \frac{3}{2} + \frac{5}{6} = \frac{9 + 5}{6} = \frac{14}{6} = \frac{7}{3} \qquad \frac{5}{3} - \frac{3}{4} = \frac{20 - 9}{12} = \frac{11}{12} \qquad \frac{1}{4} + \frac{3}{4} = 1 2 3 + 6 5 = 6 9 + 5 = 6 14 = 3 7 3 5 − 4 3 = 12 20 − 9 = 12 11 4 1 + 4 3 = 1
So the sum is 7 3 a 2 + 11 12 a b + b 2 \displaystyle \frac{7}{3}a^2 + \frac{11}{12}ab + b^2 3 7 a 2 + 12 11 ab + b 2 .
Adding: the vertical method#
Write one expression under the other, with like terms in the same column, then add each column on its own. The columns do the matching for you, which helps when there are many terms.
Example 5#
Add 2 x 2 + 3 y 2 + 1 2 x y \displaystyle 2x^2 + 3y^2 + \frac{1}{2}xy 2 x 2 + 3 y 2 + 2 1 x y and 5 2 x 2 + x y − 7 y 2 \displaystyle \frac{5}{2}x^2 + xy - 7y^2 2 5 x 2 + x y − 7 y 2 .
Put the second expression in the same order as the first, so that like terms line up.
Column by column: 2 + 5 2 = 4 + 5 2 = 9 2 \displaystyle 2 + \frac{5}{2} = \frac{4 + 5}{2} = \frac{9}{2} 2 + 2 5 = 2 4 + 5 = 2 9 , then 3 − 7 = − 4 3 - 7 = -4 3 − 7 = − 4 , then 1 2 + 1 = 3 2 \displaystyle \frac{1}{2} + 1 = \frac{3}{2} 2 1 + 1 = 2 3 . The sum is 9 2 x 2 − 4 y 2 + 3 2 x y \displaystyle \frac{9}{2}x^2 - 4y^2 + \frac{3}{2}xy 2 9 x 2 − 4 y 2 + 2 3 x y .
Example 6#
Add 2 u + 3 v 2u + 3v 2 u + 3 v , − 5 v + 6 w -5v + 6w − 5 v + 6 w and 7 u − 7 w 7u - 7w 7 u − 7 w .
Leave a gap where an expression has no term of that kind.
The sum is 9 u − 2 v − w 9u - 2v - w 9 u − 2 v − w .
Subtracting: the horizontal method#
Read the order with care. "Subtract 2 a 2a 2 a from 7 a 7a 7 a " means start at 7 a 7a 7 a and take 2 a 2a 2 a away: 7 a − 2 a = 5 a 7a - 2a = 5a 7 a − 2 a = 5 a . The expression after "from" is written first.
When the expression being taken away is negative, or has more than one term, put it in a bracket first. A minus sign in front of a bracket changes the sign of every term inside it.
Example 7#
Subtract − 2 a -2a − 2 a from 7 a 7a 7 a .
( 7 a ) − ( − 2 a ) = 7 a + 2 a = 9 a (7a) - (-2a) = 7a + 2a = 9a ( 7 a ) − ( − 2 a ) = 7 a + 2 a = 9 a
Taking away a negative amount is the same as adding it.
Example 8#
Subtract 4 x − 3 y 4x - 3y 4 x − 3 y from 8 x − 7 y 8x - 7y 8 x − 7 y .
( 8 x − 7 y ) − ( 4 x − 3 y ) = 8 x − 7 y − 4 x + 3 y = 4 x − 4 y \begin{aligned} (8x - 7y) - (4x - 3y) &= 8x - 7y - 4x + 3y \\ &= 4x - 4y \end{aligned} ( 8 x − 7 y ) − ( 4 x − 3 y ) = 8 x − 7 y − 4 x + 3 y = 4 x − 4 y
The − 3 y -3y − 3 y inside the bracket became + 3 y +3y + 3 y when the bracket came off.
Example 9#
Subtract 2 a + 3 2a + 3 2 a + 3 from 9 a + 8 9a + 8 9 a + 8 .
( 9 a + 8 ) − ( 2 a + 3 ) = 9 a + 8 − 2 a − 3 = 7 a + 5 \begin{aligned} (9a + 8) - (2a + 3) &= 9a + 8 - 2a - 3 \\ &= 7a + 5 \end{aligned} ( 9 a + 8 ) − ( 2 a + 3 ) = 9 a + 8 − 2 a − 3 = 7 a + 5
The minus sign in front of the bracket reaches every term inside it.
Forget to change the + 3 +3 + 3 and you would get 7 a + 11 7a + 11 7 a + 11 , which is wrong.
Example 10: Letters for whole expressions#
If A = 2 x 2 + x + 5 A = 2x^2 + x + 5 A = 2 x 2 + x + 5 and B = 3 x 2 − 2 x + 7 B = 3x^2 - 2x + 7 B = 3 x 2 − 2 x + 7 , find (i) 2 A − 3 B 2A - 3B 2 A − 3 B and (ii) ( A + B ) − ( A − B ) (A + B) - (A - B) ( A + B ) − ( A − B ) .
A capital letter here stands for a whole expression, so keep it in brackets when you put it in.
(i)
2 A − 3 B = 2 ( 2 x 2 + x + 5 ) − 3 ( 3 x 2 − 2 x + 7 ) = 4 x 2 + 2 x + 10 − 9 x 2 + 6 x − 21 = − 5 x 2 + 8 x − 11 \begin{aligned} 2A - 3B &= 2(2x^2 + x + 5) - 3(3x^2 - 2x + 7) \\ &= 4x^2 + 2x + 10 - 9x^2 + 6x - 21 \\ &= -5x^2 + 8x - 11 \end{aligned} 2 A − 3 B = 2 ( 2 x 2 + x + 5 ) − 3 ( 3 x 2 − 2 x + 7 ) = 4 x 2 + 2 x + 10 − 9 x 2 + 6 x − 21 = − 5 x 2 + 8 x − 11
(ii) First A + B = 5 x 2 − x + 12 A + B = 5x^2 - x + 12 A + B = 5 x 2 − x + 12 and A − B = − x 2 + 3 x − 2 A - B = -x^2 + 3x - 2 A − B = − x 2 + 3 x − 2 .
( A + B ) − ( A − B ) = ( 5 x 2 − x + 12 ) − ( − x 2 + 3 x − 2 ) = 5 x 2 − x + 12 + x 2 − 3 x + 2 = 6 x 2 − 4 x + 14 \begin{aligned} (A + B) - (A - B) &= (5x^2 - x + 12) - (-x^2 + 3x - 2) \\ &= 5x^2 - x + 12 + x^2 - 3x + 2 \\ &= 6x^2 - 4x + 14 \end{aligned} ( A + B ) − ( A − B ) = ( 5 x 2 − x + 12 ) − ( − x 2 + 3 x − 2 ) = 5 x 2 − x + 12 + x 2 − 3 x + 2 = 6 x 2 − 4 x + 14
Notice that 6 x 2 − 4 x + 14 6x^2 - 4x + 14 6 x 2 − 4 x + 14 is exactly 2 B 2B 2 B . That is no accident: ( A + B ) − ( A − B ) = A + B − A + B = 2 B (A + B) - (A - B) = A + B - A + B = 2B ( A + B ) − ( A − B ) = A + B − A + B = 2 B , whatever A A A and B B B are.
Subtracting: the vertical method#
Write the expression to be taken away under the first one, with like terms in the same column. Then change the sign of every term in the bottom row , writing the new sign under the old one, and add down the columns.
Example 11#
Subtract 3 x + 4 y 3x + 4y 3 x + 4 y from 4 x − 3 y 4x - 3y 4 x − 3 y .
In the x x x column, 4 − 3 = 1 4 - 3 = 1 4 − 3 = 1 . In the y y y column, − 3 − 4 = − 7 -3 - 4 = -7 − 3 − 4 = − 7 . The answer is x − 7 y x - 7y x − 7 y .
Example 12#
Subtract a 3 − b 3 + 3 a b + 1 a^3 - b^3 + 3ab + 1 a 3 − b 3 + 3 ab + 1 from a 3 − 2 b 3 + 5 a^3 - 2b^3 + 5 a 3 − 2 b 3 + 5 .
The a 3 a^3 a 3 terms cancel, − 2 b 3 + b 3 = − b 3 -2b^3 + b^3 = -b^3 − 2 b 3 + b 3 = − b 3 , 5 − 1 = 4 5 - 1 = 4 5 − 1 = 4 , and 0 − 3 a b = − 3 a b 0 - 3ab = -3ab 0 − 3 ab = − 3 ab . The answer is − b 3 + 4 − 3 a b -b^3 + 4 - 3ab − b 3 + 4 − 3 ab .
Practice#
Add 5 a − 2 b 5a - 2b 5 a − 2 b and a + 7 b a + 7b a + 7 b .
Add 2 a + 3 b − 4 c 2a + 3b - 4c 2 a + 3 b − 4 c and 7 a − 2 3 b + 5 c \displaystyle 7a - \frac{2}{3}b + 5c 7 a − 3 2 b + 5 c .
Add 3 p 2 − 4 p q + q 2 3p^2 - 4pq + q^2 3 p 2 − 4 pq + q 2 , − p 2 + 2 p q -p^2 + 2pq − p 2 + 2 pq and 5 p q − 3 q 2 5pq - 3q^2 5 pq − 3 q 2 by the vertical method.
Subtract 5 y 5y 5 y from 12 y 12y 12 y , and − 6 x y -6xy − 6 x y from − 2 x y -2xy − 2 x y .
Subtract 2 a + 3 2 b \displaystyle 2a + \frac{3}{2}b 2 a + 2 3 b from 7 a − 5 b 7a - 5b 7 a − 5 b .
Subtract 3 x − 4 y + z 3x - 4y + z 3 x − 4 y + z from 5 x + 2 y − 3 z 5x + 2y - 3z 5 x + 2 y − 3 z .
Subtract 3 4 x 2 − 1 12 x y + 5 y 2 \displaystyle \frac{3}{4}x^2 - \frac{1}{12}xy + 5y^2 4 3 x 2 − 12 1 x y + 5 y 2 from − 5 x 2 + 3 x y − 1 2 y 2 \displaystyle -5x^2 + 3xy - \frac{1}{2}y^2 − 5 x 2 + 3 x y − 2 1 y 2 .
If A = 5 x 2 − 3 4 x y + 7 y 2 \displaystyle A = 5x^2 - \frac{3}{4}xy + 7y^2 A = 5 x 2 − 4 3 x y + 7 y 2 and B = 3 x 2 + 1 2 x y − 5 3 y 2 \displaystyle B = 3x^2 + \frac{1}{2}xy - \frac{5}{3}y^2 B = 3 x 2 + 2 1 x y − 3 5 y 2 , find 5 B − A 5B - A 5 B − A .
With the same A A A and B B B , find 3 A − 5 B 3A - 5B 3 A − 5 B .
Subtract 2 m 2 − 3 m + 4 2m^2 - 3m + 4 2 m 2 − 3 m + 4 from m 2 + m − 1 m^2 + m - 1 m 2 + m − 1 by the vertical method.
Answers#
Show answers
6 a + 5 b 6a + 5b 6 a + 5 b
9 a + 7 3 b + c \displaystyle 9a + \frac{7}{3}b + c 9 a + 3 7 b + c , since 3 − 2 3 = 7 3 \displaystyle 3 - \frac{2}{3} = \frac{7}{3} 3 − 3 2 = 3 7 and − 4 + 5 = 1 -4 + 5 = 1 − 4 + 5 = 1 .
2 p 2 + 3 p q − 2 q 2 2p^2 + 3pq - 2q^2 2 p 2 + 3 pq − 2 q 2
7 y 7y 7 y , and − 2 x y − ( − 6 x y ) = 4 x y -2xy - (-6xy) = 4xy − 2 x y − ( − 6 x y ) = 4 x y .
7 a − 5 b − 2 a − 3 2 b = 5 a − 13 2 b \displaystyle 7a - 5b - 2a - \frac{3}{2}b = 5a - \frac{13}{2}b 7 a − 5 b − 2 a − 2 3 b = 5 a − 2 13 b
5 x + 2 y − 3 z − 3 x + 4 y − z = 2 x + 6 y − 4 z 5x + 2y - 3z - 3x + 4y - z = 2x + 6y - 4z 5 x + 2 y − 3 z − 3 x + 4 y − z = 2 x + 6 y − 4 z
− 23 4 x 2 + 37 12 x y − 11 2 y 2 \displaystyle -\frac{23}{4}x^2 + \frac{37}{12}xy - \frac{11}{2}y^2 − 4 23 x 2 + 12 37 x y − 2 11 y 2 , since − 5 − 3 4 = − 23 4 \displaystyle -5 - \frac{3}{4} = -\frac{23}{4} − 5 − 4 3 = − 4 23 , 3 + 1 12 = 37 12 \displaystyle 3 + \frac{1}{12} = \frac{37}{12} 3 + 12 1 = 12 37 and − 1 2 − 5 = − 11 2 \displaystyle -\frac{1}{2} - 5 = -\frac{11}{2} − 2 1 − 5 = − 2 11 .
5 B − A = 15 x 2 + 5 2 x y − 25 3 y 2 − 5 x 2 + 3 4 x y − 7 y 2 = 10 x 2 + 13 4 x y − 46 3 y 2 \displaystyle 5B - A = 15x^2 + \frac{5}{2}xy - \frac{25}{3}y^2 - 5x^2 + \frac{3}{4}xy - 7y^2 = 10x^2 + \frac{13}{4}xy - \frac{46}{3}y^2 5 B − A = 15 x 2 + 2 5 x y − 3 25 y 2 − 5 x 2 + 4 3 x y − 7 y 2 = 10 x 2 + 4 13 x y − 3 46 y 2
3 A − 5 B = 15 x 2 − 9 4 x y + 21 y 2 − 15 x 2 − 5 2 x y + 25 3 y 2 = − 19 4 x y + 88 3 y 2 \displaystyle 3A - 5B = 15x^2 - \frac{9}{4}xy + 21y^2 - 15x^2 - \frac{5}{2}xy + \frac{25}{3}y^2 = -\frac{19}{4}xy + \frac{88}{3}y^2 3 A − 5 B = 15 x 2 − 4 9 x y + 21 y 2 − 15 x 2 − 2 5 x y + 3 25 y 2 = − 4 19 x y + 3 88 y 2
− m 2 + 4 m − 5 -m^2 + 4m - 5 − m 2 + 4 m − 5