Equations of the form p(x + q) = r, from words
Several friends each buy the same bundle, and only the total is known. How do you work back to the price of one thing in the bundle?
Where you are 11 in Linear equations
When you reach for it
Dorothea and three friends go to a film. Each of the four buys a ticket and a drink, and a drink costs 5 dollars. Together they pay 48 dollars. What does one ticket cost?
Call the price of one ticket x dollars. One person’s bundle, a ticket and a drink, costs x + 5 dollars. There are four bundles, all the same, so the four together cost 4 times that whole amount:
The brackets carry the meaning: the drink is in every bundle, so the 4 multiplies it as well as the ticket. Without brackets, 4x + 5 means four tickets and a single drink, because by the order of operations only the x is multiplied.
Reach for this whenever a situation is made of equal groups, each holding the unknown together with the same fixed amount, and the total is known: bundles bought by each person, teams that each gain the same number of players, the four sides of a square with a border, the sections of a fence. Every such equation has the shape
where p is the number of groups, q the fixed amount in each group, and r the total. The numbers may be negative or fractions; only p = 0 is ruled out. An equation with no brackets, such as 4x + 20 = 48, is a two-step equation, and one of the two ways of solving below turns this equation into exactly that.
The procedure
There are two honest ways to solve p(x + q) = r: undo the multiplication by p first, or open the brackets first. Both are always allowed, both give the same answer, and the skill is in seeing which one the numbers favor. Over two days, Part 1 writes the equation from words and solves it both ways with positive numbers; Part 2 brings in negatives and fractions and asks which way to choose.
Part 1: from words to an equation, and two ways to solve it
Writing the equation. Say what the letter stands for, with its unit: “let x be the price of one ticket, in dollars”. Then build one group, here a ticket and a drink, x + 5. Only then multiply by the number of groups. Building one group first is what puts the fixed amount inside the brackets.
Dividing first. The left side of 4(x + 5) = 48 is 4 times a single quantity, the bracket. Dividing both sides by the same non-zero number keeps the equation true for exactly the same values of x; that is the division property of equality. Divide by 4:
This middle equation has a meaning of its own: one bundle costs 12 dollars, as the figure shows. Subtract 5 from both sides: x = 7.
Distributing first. By the distributive property, 4(x + 5) = 4x + 20 for every x, so swapping one for the other does not change the solutions:
Four tickets cost 4x and four drinks cost 20. This is a two-step equation. Subtract 20 from both sides, then divide both sides by 4:
Why the two ways must agree. Every step on either path can be undone (multiply by 4 again, add 5 back, put the brackets back), so each new equation is true for exactly the same values of x as the one before. Both paths start from the same equation and end at “x = a number”, so the number is the same. With letters: dividing first gives \displaystyle x + q = \frac{r}{p}, so \displaystyle x = \frac{r}{p} - q; distributing first gives px = r - pq, so \displaystyle x = \frac{r - pq}{p}, which is the same number.
Checking. In the equation: 4(7 + 5) = 4 \cdot 12 = 48. Better, in the words: a 7 dollar ticket and a 5 dollar drink make a 12 dollar bundle, and four bundles cost 48 dollars. A check in the words also catches an equation that was written wrongly, which a check in the equation cannot.
Part 2: signed and fraction values, and choosing a way
Signs. Dividing by a negative p is allowed (only 0 is not), and the signs follow the rules for dividing integers. Distributing a negative p carries its sign into both terms. A bracket such as x - 2 is x + (-2), so q = -2: in words, each group has lost a fixed amount. A negative r changes nothing in the algebra, though in a story about counts or lengths it cannot happen. Example 4 works all three.
Fractions. Dividing by a fraction p is multiplying by its reciprocal, which undoes it in one step; distributing would spread the fraction onto q as well. A fraction q is often cleared by distributing, when p \cdot q comes out whole. Example 5 compares the two.
Choosing. Divide first when r \div p comes out neatly, or when p is a fraction: the bracket is then one step from finished, and the middle equation says what one group is worth. Distribute first when p \cdot q is neat but r \div p is not. Neither way is ever wrong; a poor choice only means more fractions along the way.
Worked examples
Examples 1 to 3 go with Part 1, and Examples 4 to 6 with Part 2.
Equal teams after new players join
Cosmin sorts the players at a sports club into 6 equal teams. Then 4 new players join each team, and the club now has 78 players. How many players were on each team before the new ones joined?
SolutionLet x be the number of players on one team before. After the new players join, one team has x + 4 players, and there are 6 such teams:
Dividing first. Divide both sides by 6: x + 4 = 13, the size of one team now. Subtract 4 from both sides: x = 9.
Distributing first. 6(x + 4) = 6x + 24, which counts the original players, 6x, and the new ones, 6 \cdot 4 = 24:
Each team had 9 players. Check in the words: 9 + 4 = 13 players to a team, and 6 teams of 13 is 78. Here 78 \div 6 is a whole number, so dividing first was one step shorter.
A border around a photo
Beatrix puts a square photo in a frame. The frame adds a border 3 cm wide on every side of the photo. The outer edge of the framed photo measures 84 cm all the way round. How long is a side of the photo?
Let x be the side of the photo, in centimeters. Going straight across the framed photo you cross a border, the photo, and another border, so one side of the frame is
The border appears at both ends of a side, so q is 6 and not 3. The framed photo is a square, with four equal sides, and its perimeter is 84 cm:
Divide both sides by 4: x + 6 = 21, so one side of the frame is 21 cm. Subtract 6: x = 15. Distributing instead gives 4x + 24 = 84, then 4x = 60 and x = 15 again.
The photo is 15 cm on each side. Check: the frame’s side is 3 + 15 + 3 = 21 cm, and 4 \cdot 21 = 84.
The word “each” makes the brackets
Anselm and two friends go to a match. Find the price of one ticket in each case.
(a) Each of the three buys a ticket and a snack that costs 3 dollars. Together they pay 36 dollars.
(b) The three buy three tickets and share one snack that costs 3 dollars. Together they pay 36 dollars.
SolutionLet x be the price of one ticket, in dollars, in both cases.
(a) Each person’s bundle is a ticket and a snack, x + 3, and there are three bundles:
Divide by 3: x + 3 = 12, so x = 9. A ticket costs 9 dollars. Check: three bundles of 12 dollars is 36 dollars.
(b) There are three tickets but only one snack, so the snack is added once, outside any brackets:
This is a two-step equation. Subtract 3: 3x = 33, so x = 11. A ticket costs 11 dollars. Check: 33 + 3 = 36.
The totals are the same and the answers are not, because the snacks are not. Distributing (a) gives 3x + 9: three snacks, 9 dollars of them. In (b) there are 3 dollars of snacks. The word “each” put the snack in every group, and that is what the brackets record.
Negative values of p, q and r
Solve (a) -5(x + 1) = 15 \qquad (b) -2(x - 7) = -10 \qquad (c) 7(x + 4) = -21
Solution(a) Divide both sides by -5. A positive divided by a negative is negative, so 15 \div (-5) = -3:
Check: -5(-4 + 1) = -5 \cdot (-3) = 15.
(b) Dividing first: -10 \div (-2) = 5, so x - 7 = 5 and x = 12. Distributing first, the -2 multiplies both terms, and (-2)(-7) = 14:
Both ways agree. Check: -2(12 - 7) = -2 \cdot 5 = -10.
(c) Divide both sides by 7: x + 4 = -3, so x = -7. Check: 7(-7 + 4) = 7 \cdot (-3) = -21. A negative total is no obstacle to the algebra.
Fractions: which way is shorter
Solve (a) \displaystyle \frac{2}{3}(x - 4) = 10 \qquad (b) \displaystyle 4\left(x + \frac{3}{4}\right) = 11, and compare the two ways for each.
Solution(a) Dividing first. Dividing by \displaystyle \frac{2}{3} is multiplying by \displaystyle \frac{3}{2}, so multiply both sides by \displaystyle \frac{3}{2}:
Distributing first. \displaystyle \frac{2}{3} \cdot (-4) = -\frac{8}{3}, so
Same answer, but distributing put the fraction onto the 4 as well and made thirds to add. Dividing first was shorter. Check: \displaystyle \frac{2}{3}(19 - 4) = \frac{2}{3} \cdot 15 = 10.
(b) Distributing first. \displaystyle 4 \cdot \frac{3}{4} = 3, so the fraction disappears at once:
Dividing first. \displaystyle x + \frac{3}{4} = \frac{11}{4}, so \displaystyle x = \frac{11}{4} - \frac{3}{4} = \frac{8}{4} = 2. Same answer, with quarters to subtract along the way. Here distributing was the tidier choice, because p \cdot q was whole while r \div p was not. Check: \displaystyle 4\left(2 + \frac{3}{4}\right) = 4 \cdot \frac{11}{4} = 11.
A fence built out from a wall
Emrys builds a straight fence out from the wall of a shed. It has 8 panels, all the same width, and a post 0.1 m wide stands at the end of each panel. The first panel is fixed to the wall, so no post is needed there. The whole fence is 15.2 m long. How wide is one panel?
Let x be the width of a panel, in meters. The fence is not 8 panels and some posts in no particular order: it splits into 8 equal sections, each a panel and the post after it, so each section is x + 0.1 m long and
Divide both sides by 8: x + 0.1 = 1.9, so one section is 1.9 m and x = 1.8. Distributing works too: 8x + 0.8 = 15.2, so 8x = 14.4 and x = 1.8. Here 15.2 \div 8 came out as a short decimal, so dividing first was as tidy as distributing.
Each panel is 1.8 m wide. Check in the words: 8 panels make 8 \cdot 1.8 = 14.4 m and 8 posts make 0.8 m, and 14.4 + 0.8 = 15.2 m. The equal groups had to be found in the words: the posts and panels alternate, and pairing each panel with the post after it is what turns the fence into equal sections.
Boundaries
p must not be 0. Dividing by 0 is undefined, and when p = 0 the left side is 0 for every x. Then 0(x + q) = r is false for every x if r \neq 0, so there is no solution, and true for every x if r = 0. The two cases are taken up in no solution, one solution, or every number.
Each move acts on the whole of a side. Dividing 4(x + 5) by 4 leaves the whole bracket, x + 5, and the whole right side is divided too. Distributing multiplies every term inside the bracket, q as well as x.
The shape needs equal groups. Every group must hold the unknown and the same fixed amount, and there must be p of them. A single amount outside the groups, like the shared snack in Example 3(b), gives a different equation; if the groups are not all alike, the situation is not p(x + q) = r at all.
The answer must fit what x counts. The algebra returns a number; the story decides whether it can be true. A count must be a whole number and a length must be positive. A frame with a 3 cm border and a perimeter of 20 cm gives 4(x + 6) = 20 and x = -1: no photo has that side, so those numbers cannot describe a real frame.
The unknown appears once, inside the brackets. If x also appears outside the brackets or on the other side, the equation needs collecting like terms or gathering the variable on one side first.
Where this goes next
Longer equations with brackets, such as 5(x - 1) + 2x = 30, are solved by distributing first and then collecting like terms on each side; dividing first no longer works, because the 5 does not multiply the whole left side. Brackets on both sides, such as 2(x + 1) = 5(x - 4), lead to equations with the variable on both sides.
The same shape with an inequality sign, p(x + q) > r, is solved with the same two moves, with one difference: dividing both sides by a negative p reverses the inequality, as in two-step inequalities. A proportion such as \displaystyle \frac{x - 2}{3} = \frac{4}{5} turns into this shape after cross multiplying, giving 5(x - 2) = 12. And solving p(x + q) = r with letters, which gave \displaystyle x = \frac{r}{p} - q in the procedure, is a first example of solving for a variable.
Exercises
Part 1: solve both ways
Solve each equation by dividing first, then again by distributing first.
- 5(x + 3) = 45
- 7(n - 2) = 56
- 3(m + 5) = 20
Part 1: from words
Write an equation, solve it, and check the answer in the words.
- Six friends each buy a ticket and a snack that costs 4 dollars. Together they pay 90 dollars. What does one ticket cost?
- Florian adds a border 2 cm wide on every side of a square photo. The outer edge of the framed photo measures 72 cm all the way round. How long is a side of the photo?
- Leocadia pays 52 dollars. Find the price of one ticket if (a) she buys 4 bundles, each a ticket and a snack that costs 2 dollars, and (b) she buys 4 tickets and one snack that costs 2 dollars.
- Write a word problem about friends buying bundles that leads to 5(x + 6) = 85, then solve it.
Part 2: negative values
- -4(x + 2) = 20
- -6(y - 3) = -42
- 5(x - 8) = -15
- -(n + 9) = 4
Part 2: fractions and decimals
Choose the shorter way for each, and say why.
- \displaystyle \frac{3}{4}(x + 8) = 18
- \displaystyle \frac{1}{2}(y - 6) = -5
- \displaystyle 3\left(x - \frac{2}{3}\right) = 7
- \displaystyle -\frac{2}{5}(x - 10) = 6
- 0.5(x + 1.2) = 2.4
Part 2: from words
- A club has 7 equal teams. Then 2 players leave each team, and 63 players are left. How many players were on each team at first?
- Ottilie trims a strip 1.5 cm wide from every edge of a square photo. The trimmed photo measures 48 cm all the way round. How long was a side of the photo before trimming?
- A fence is made of 10 sections, each a panel and a post 0.15 m wide. The fence is 22 m long. How wide is one panel?
- Each of three friends buys a ticket and a drink that costs 2.75 dollars. Together they pay 39.75 dollars. What does one ticket cost?
- A coach says: “I had 4 equal teams, then 3 new players joined each team, and now there are 50 players.” Show that the coach has made a mistake somewhere.
Reasoning
- Explain why dividing first and distributing first must give the same solution of p(x + q) = r.
- Suppose p, q and r are integers and p \neq 0. Show that p(x + q) = r has an integer solution exactly when p divides r.
- What happens when you try to solve 0(x + 3) = 5 and 0(x + 3) = 0? Explain why dividing first cannot be used.
- Write one story that leads to 4(x + 3) = 40 and another that leads to 4x + 3 = 40, solve both, and explain which words make the brackets.
Answers
- x = 6. Dividing: x + 3 = 9. Distributing: 5x + 15 = 45, so 5x = 30.
- n = 10. Dividing: n - 2 = 8. Distributing: 7n - 14 = 56, so 7n = 70.
- \displaystyle m = \frac{5}{3}. Dividing: \displaystyle m + 5 = \frac{20}{3}, so \displaystyle m = \frac{20}{3} - \frac{15}{3}. Distributing: 3m + 15 = 20, so 3m = 5. 20 is not a multiple of 3, so a fraction is unavoidable either way.
- 6(x + 4) = 90, so x + 4 = 15 and x = 11. A ticket costs 11 dollars. Check: six bundles of 15 dollars is 90 dollars.
- One side of the frame is 2 + x + 2 = x + 4, so 4(x + 4) = 72, x + 4 = 18 and x = 14. The photo is 14 cm on each side. Check: 4 \cdot 18 = 72.
- (a) 4(x + 2) = 52, so x + 2 = 13 and x = 11 dollars. (b) 4x + 2 = 52, so 4x = 50 and x = 12.5 dollars. Only (a) has a snack in every bundle.
- x = 11. For example: each of five friends buys a ticket and a snack that costs 6 dollars, and together they pay 85 dollars; find the ticket price. x + 6 = 17, so a ticket costs 11 dollars.
- x = -7. Divide by -4: x + 2 = -5. Check: -4(-5) = 20.
- y = 10. Divide by -6: y - 3 = 7. Check: -6 \cdot 7 = -42.
- x = 5. Divide by 5: x - 8 = -3. Check: 5(-3) = -15.
- n = -13. The - in front means -1, so divide by -1: n + 9 = -4. Check: -(-13 + 9) = -(-4) = 4.
- x = 16. Divide first, multiplying by \displaystyle \frac{4}{3}: x + 8 = 24. Distributing would give \displaystyle \frac{3}{4}x + 6 = 18, with a fraction still to remove.
- y = -4. Divide first, multiplying by 2: y - 6 = -10.
- x = 3. Distribute first, since \displaystyle 3 \cdot \frac{2}{3} = 2 is whole: 3x - 2 = 7, so 3x = 9.
- x = -5. Divide first, multiplying by \displaystyle -\frac{5}{2}: x - 10 = -15. Check: \displaystyle -\frac{2}{5}(-15) = 6.
- x = 3.6. Divide first: 2.4 \div 0.5 = 4.8, so x + 1.2 = 4.8.
- 7(x - 2) = 63, so x - 2 = 9 and x = 11. There were 11 players on each team. Check: 7 \cdot 9 = 63.
- Trimming takes 1.5 cm off each end of a side, so the trimmed side is x - 3. Then 4(x - 3) = 48, x - 3 = 12 and x = 15. The side was 15 cm.
- 10(x + 0.15) = 22, so x + 0.15 = 2.2 and x = 2.05. Each panel is 2.05 m wide.
- 3(x + 2.75) = 39.75, so x + 2.75 = 13.25 and x = 10.5. A ticket costs 10.50 dollars.
- 4(x + 3) = 50 gives x + 3 = 12.5 and x = 9.5. A team cannot have half a player, so the numbers in the coach’s sentence cannot all be true. The same thing shows without solving: after the new players join there are 4 equal teams of whole players, so the total must be a multiple of 4, and 50 is not.
- Each step on either path (dividing both sides by p \neq 0, replacing p(x + q) by the equivalent px + pq, subtracting from both sides) can be undone, so it gives an equation true for exactly the same values of x. Both paths start from p(x + q) = r and end at “x = a number”, so it is the same number. In letters, \displaystyle \frac{r}{p} - q = \frac{r - pq}{p}.
- Since p \neq 0, the only solution is \displaystyle x = \frac{r}{p} - q. Since q is an integer, x is an integer exactly when \displaystyle \frac{r}{p} is, which is exactly when p divides r.
- 0(x + 3) is 0 for every x. So 0(x + 3) = 5 says 0 = 5, false for every x: no solution. And 0(x + 3) = 0 says 0 = 0, true for every x. Dividing first would mean dividing by 0, which is undefined; that matches the fact that the left side no longer depends on x, so no single value can be picked out.
- For example: four friends each buy a ticket and a 3 dollar snack and pay 40 dollars, giving 4(x + 3) = 40 and x = 7; four friends buy four tickets and share one 3 dollar snack and pay 40 dollars, giving 4x + 3 = 40 and x = 9.25. The word “each” (a snack for every person) puts the 3 in every group, which is what the brackets say.