Part I — Algebra · Chapter 2
Linear Equations
An equation is a question: for which values of the unknowns is this true? Solving it means replacing the question with an easier one that has the same answers.
A bat and a ball cost $\$1.10$ together. The bat costs $\$1.00$ more than the ball. How much does the ball cost?
- 10 cents
- 5 cents
- There is not enough information
Most people's first answer is wrong. By §2.4 you will be able to settle it in two lines.
You should be comfortable with the rules of addition and multiplication and with division as multiplication by an inverse (Chapter 1). Every move in this chapter is one of those rules applied to both sides at once.
Three quick ones from earlier chapters, to wake up what this chapter stands on. They are not scored. If one doesn't come to you, its solution says where to look.
Compute $-3 - (-8)$.
Answer: $5$
$-3 - (-8) = -3 + 8 = 5$, since the opposite of $-8$ is $8$. See §1.2.
What is the multiplicative inverse of $\dfrac47$?
Answer: $\dfrac74$
$\frac47 \cdot \frac74 = \frac{28}{28} = 1$. Dividing by a number means multiplying by its inverse — see §1.6. That is how the unknown gets freed in this chapter.
Expand $3(x - 2)$.
Answer: $3x - 6$
Distributivity: $3(x - 2) = 3x - 6$. The commonest slip is $3x - 2$, multiplying only the first term. See §1.3.
2.1 One unknown
A linear equation in the unknown $x$ is one that can be written $ax + b = 0$ with $a$ and $b$ numbers. "Linear" means: $x$ appears to the first power only — no $x^2$, no $\frac1x$, no $\sqrt{x}$.
A solution is a number which, substituted for $x$, makes the statement true. To solve is to find all of them. Only two moves are ever needed, and both are safe because both can be undone:
- Add the same number to both sides. If $u = v$ then $u + c = v + c$; and adding $-c$ brings you back. Nothing is gained or lost.
- Multiply both sides by the same nonzero number. If $u = v$ then $cu = cv$; multiplying by $c^{-1}$ brings you back — which is exactly why $c \neq 0$ is required.
Multiplying both sides by $0$ turns any equation into $0 = 0$, which is true for every $x$ and tells you nothing. The step cannot be undone, so it loses information. This is the same prohibition as in Chapter 1: $0$ has no inverse.
Wrong turn. Dividing by a letter that might be zero
Solve $3x = 5x$.
- The tempting move. Both sides have a factor of $x$, so divide by it: $3 = 5$.
- That is false, so the equation appears to have no solution at all.
- The check. Try $x = 0$ in the original: the left side is $0$, the right side is $0$. It solves the equation. So "no solution" is wrong — and notice the damage was done by a step that looked like tidying up.
- The repair. Collect on one side instead of dividing: $3x - 5x = 0$, so $-2x = 0$, and dividing by $-2$ — a number known not to be zero — gives $x = 0$. That is the whole solution set. $\blacksquare$
Dividing by $x$ silently assumes $x \neq 0$, and so throws away the very solution that was there. The two permitted moves are safe precisely because they can be undone; this one cannot. When a factor you want to cancel contains an unknown, move everything to one side rather than dividing.
Example 1. Solving with the reason for every step
Solve $5x - 3 = 2x + 9$.
- Add $-2x$ to both sides: $3x - 3 = 9$. Move 1, collecting the unknown on one side.
- Add $3$ to both sides: $3x = 12$.
- Multiply both sides by $\frac13$ — legal, since $\frac13 \neq 0$: $x = 4$.
- Check by substituting into the original equation: $5(4) - 3 = 17$ and $2(4) + 9 = 17$. ✓
The check is not optional politeness. It is the only step that catches an arithmetic slip, and it costs ten seconds.
Solve $4x + 7 = 2x - 5$.
Answer: $x = -6$
Add $-2x$ to both sides: $2x + 7 = -5$. Add $-7$: $2x = -12$. Multiply by $\frac12$: $x = -6$. Check in the original: $4(-6) + 7 = -17$ and $2(-6) - 5 = -17$ ✓.
Clearing fractions. The same two moves, with fractions in the way
Solve $\dfrac{x}{2} + \dfrac13 = \dfrac{x}{3} + 2$.
- The denominators are $2$ and $3$. Multiply both sides by $6$ — legal, since $6 \neq 0$ — and distribute: $6\cdot\frac{x}{2} + 6\cdot\frac13 = 6\cdot\frac{x}{3} + 6 \cdot 2$, that is $3x + 2 = 2x + 12$. Every term gets multiplied, on both sides. Missing one is the usual error.
- Add $-2x$ to both sides: $x + 2 = 12$.
- Add $-2$: $x = 10$.
- Check in the original, fractions and all: $\frac{10}{2} + \frac13 = \frac{16}{3}$ and $\frac{10}{3} + 2 = \frac{16}{3}$ ✓. $\blacksquare$
Multiplying through by a common denominator is Move 2 used to tidy up before starting. It changes how the equation looks, not which numbers solve it.
Not every linear equation has exactly one solution. Consider what happens when the unknown disappears:
| Equation | Reduces to | Solutions |
|---|---|---|
| $3x + 1 = 7$ | $x = 2$ | exactly one |
| $2x + 5 = 2x + 5$ | $0 = 0$ | every number — an identity |
| $2x + 5 = 2x + 1$ | $5 = 1$ | none — a contradiction |
Those three outcomes — one, all, none — are the only possibilities, and the same trichotomy will reappear for systems in a moment. When the unknown cancels out, read the surviving numerical statement: if it is true, every number is a solution; if it is false, none is.
How many solutions does $3(x + 2) = 3x + 6$ have?
- Exactly one.
- None.
- Every number is a solution.
- Exactly two.
Answer: every number
The left side expands to $3x + 6$ — the same as the right. Adding $-3x$ leaves $6 = 6$, which is true whatever $x$ is. So every number is a solution: the equation is an identity.
Put these lines in order to solve $5x - 3 = 2x + 9$.
- Add $-2x$ to both sides: $3x - 3 = 9$.
- Add $3$ to both sides: $3x = 12$.
- Multiply both sides by $\frac13$: $x = 4$.
- Check: $5(4) - 3 = 17$ and $2(4) + 9 = 17$.
Answer: $x = 4$
Collect the $x$ terms, then the constants, then free $x$ — and finish by checking in the original equation.
2.2 Equations in two unknowns
One equation in two unknowns, such as $x + y = 5$, has infinitely many solutions — a solution is now a pair $(x, y)$, and pairs like $(0,5)$, $(2,3)$, $(-1,6)$ all qualify. To pin the pair down you generally need two equations at once:
A solution of the system is a pair satisfying both equations. The method is elimination: combine the two equations so that one unknown vanishes, leaving one equation in one unknown — which we already know how to solve.
Replacing one equation of a system by (that equation) $+$ $c \times$ (another equation) does not change the solution set. Any pair satisfying both originals satisfies the combination; and the move is undone by subtracting $c$ times the same equation.
Example 2. Elimination
Solve $\;\begin{aligned} 2x + 3y &= 12\\ x - y &= 1\end{aligned}$
- Multiply the second equation by $3$: $3x - 3y = 3$. The $y$-coefficients are now $+3$ and $-3$.
- Add the two equations. The $y$ terms cancel: $(2x + 3y) + (3x - 3y) = 12 + 3$, that is $5x = 15$.
- So $x = 3$.
- Back-substitute into either original equation — the simpler one, $x - y = 1$: $3 - y = 1$, so $y = 2$.
- Check in both originals: $2(3) + 3(2) = 12$ ✓ and $3 - 2 = 1$ ✓. The solution is $(x,y) = (3,2)$. $\blacksquare$
Your turn, with help. Elimination, one step at a time
Solve $\;\begin{aligned} 3x + y &= 10\\ x - 2y &= 1\end{aligned}$ The first step is done; try each later one before opening it.
- Multiply the first equation by $2$: $6x + 2y = 20$. The $y$-coefficients are now $+2$ and $-2$.
-
Add the two equations
$(6x + 2y) + (x - 2y) = 20 + 1$, so $7x = 21$ and $x = 3$.
-
Back-substitute to find $y$
Into the first original equation: $3(3) + y = 10$, so $y = 1$.
-
Check in both originals
$3(3) + 1 = 10$ ✓ and $3 - 2(1) = 1$ ✓. The solution is $(3, 1)$. $\blacksquare$
Solve $\;\begin{aligned} 2x + y &= 7\\ x - y &= 2\end{aligned}$ and give the value of $x$.
Answer: $x = 3$
Adding the two equations eliminates $y$ at once: $3x = 9$, so $x = 3$. Then $3 - y = 2$ gives $y = 1$. Check: $2(3) + 1 = 7$ ✓ and $3 - 1 = 2$ ✓.
Before reading on, try to solve $\;x + y = 2,\;\; x + y = 5\;$ by elimination. What happens — and what is it telling you?Try it, then open
Subtracting the first equation from the second removes $x$ and $y$ together and leaves $0 = 3$. That is false whatever $x$ and $y$ are, so no pair satisfies both equations. Which is what the equations said all along: two numbers cannot add up to $2$ and to $5$.
So elimination does not always end with a value. The next few lines work out exactly when it does.
When does elimination fail to produce an answer? Exactly when the unknown cancels out completely. Multiply the first equation by $a_2$, the second by $a_1$, and subtract; the $x$ terms vanish and you are left with
Everything now depends on the single number $a_1b_2 - a_2b_1$.
- If $a_1b_2 - a_2b_1 \neq 0$: divide, and there is exactly one solution.
- If $a_1b_2 - a_2b_1 = 0$ and the right-hand side is also $0$: the two equations say the same thing, and there are infinitely many solutions.
- If $a_1b_2 - a_2b_1 = 0$ but the right-hand side is not: you have derived $0 = (\text{something nonzero})$, so there is no solution.
When everything cancels. The two exceptional cases, worked
Solve (a) $\;\begin{aligned} 2x - 4y &= 6\\ -x + 2y &= -3\end{aligned}$ and (b) $\;\begin{aligned} 2x - 4y &= 6\\ -x + 2y &= 1\end{aligned}$
- (a) Add $2 \times$ the second equation to the first: $(2x - 4y) + 2(-x + 2y) = 6 + 2(-3)$, which is $0 = 0$.
- True, and no help: the second equation is the first multiplied by $-\frac12$, so the system really contains one fact, not two. Every pair with $2x - 4y = 6$ — that is, $x = 3 + 2y$ for any $y$ at all — is a solution: $(3,0)$, $(5,1)$, $(1,-1)$, … Infinitely many.
- (b) The same move gives $(2x - 4y) + 2(-x + 2y) = 6 + 2(1)$, which is $0 = 8$.
- False for every $x$ and $y$. The left sides are still multiples of each other, but the right sides are not, so the two equations contradict one another. No solution. $\blacksquare$
In both cases $a_1b_2 - a_2b_1 = (2)(2) - (-1)(-4) = 0$. The determinant tells you that you are in an exceptional case; the right-hand sides decide which one.
That number $a_1b_2 - a_2b_1$ has a name — the determinant of the system — and a geometric meaning we will meet in Chapter 16. Geometrically, each equation describes a line (Chapter 10); the three cases are lines crossing once, the same line twice, and parallel lines.
For which value of $k$ does the system $\;x + 2y = 3,\;\; 2x + ky = 5\;$ have no solution?
Answer: $k = 4$
$a_1b_2 - a_2b_1 = (1)(k) - (2)(2) = k - 4$, which is zero when $k = 4$. Then the second equation is $2x + 4y = 5$, while doubling the first gives $2x + 4y = 6$ — the same left side with a different right side. Contradiction, so no solution.
Change the sliders until the system has no solution, then press Check.
Answer: any two parallel, distinct lines
For example $x + y = 5$ and $2x + 2y = 1$. Doubling the first gives $2x + 2y = 10$, which contradicts the second, so no pair $(x, y)$ satisfies both.
2.3 Equations in three unknowns
Nothing new happens — only bookkeeping. With three unknowns you use one equation to eliminate one unknown from the others, reducing to a $2\times2$ system, then solve that and work backwards. Being systematic is the whole skill.
Example 3. A 3 × 3 system
Solve $\;\begin{aligned} x + y + z &= 6 \\ 2x - y + z &= 3 \\ x + 2y - z &= 2 \end{aligned}$
- Eliminate $x$ from equations 2 and 3 using equation 1. Equation 2 minus $2\times$ equation 1: $(2x - y + z) - 2(x + y + z) = 3 - 12$, i.e. $-3y - z = -9$. Equation 3 minus equation 1: $y - 2z = -4$.
- Now a $2\times2$ system in $y, z$: $\begin{aligned} -3y - z &= -9 \\ y - 2z &= -4 \end{aligned}$
- Eliminate $y$: add $3\times$ the second equation to the first: $(-3y - z) + 3(y - 2z) = -9 + (-12)$, giving $-7z = -21$, so $z = 3$.
- Back-substitute into $y - 2z = -4$: $y - 6 = -4$, so $y = 2$.
- Back-substitute into equation 1: $x + 2 + 3 = 6$, so $x = 1$.
- Check all three originals: $1+2+3 = 6$ ✓, $2 - 2 + 3 = 3$ ✓, $1 + 4 - 3 = 2$ ✓. So $(x,y,z) = (1,2,3)$. $\blacksquare$
Write each new system on its own line, aligned in columns, and label which equation you combined with which. Most errors in this chapter are transcription errors, not misunderstandings — and an aligned layout makes them visible. The same trichotomy holds: if every unknown cancels and you are left with a true statement, there are infinitely many solutions; with a false one, none.
The picture also has one more dimension. An equation in two unknowns describes a line; an equation in three unknowns, such as $x + y + z = 6$, describes a plane, a flat sheet in space, made of all the points $(x, y, z)$ that satisfy it. (Coordinates in space are set up properly in Chapter 8; here it is enough to picture them.) Three equations are three planes, and a solution is a point lying on all three. Again there are three outcomes: the planes cross at one point, they share a whole line, or they have no point in common.
Two lines with no common point must be parallel. Can three planes have no common point when no two of them are parallel?Decide, then open
Yes. Picture three walls of a tent that is open at both ends: any two walls meet along an edge, but the three edges run side by side, so no point lies on all three walls. Nothing like this happens with two unknowns, which is why "no solution" is no longer the same as "parallel". The figure below lets you build it.
Choose equation 3 so that the system has no solution although no two planes are parallel, then press Check.
Answer: for example $3x + 2z = 4$
Adding equations 1 and 2 gives $(x + y + z) + (2x - y + z) = 6 + 3$, that is $3x + 2z = 9$. Take equation 3 to be $3x + 2z = 4$: the same left side with a right side that disagrees. Then equation 1 $+$ equation 2 $-$ equation 3 leaves $0 = 5$, false for every $x$, $y$, $z$, so there is no solution.
No left side is a multiple of another, so no two planes are parallel, and each pair meets in a line. The three lines are parallel to one another: they run side by side and never meet. Any other right side than $9$ works too, and so does the left side of any other combination that uses both equations 1 and 2, such as $-x + 2y$ (equation 1 $-$ equation 2), with a right side other than $3$.
2.4 Turning words into equations
The mathematics above is mechanical. The genuinely difficult step is the translation, and it has a reliable procedure:
- Name the unknowns with letters, and write down what each letter means, including its units. Vagueness here is fatal later.
- Find one equation per independent fact in the problem. A system in three unknowns needs three facts.
- Solve, then interpret: convert the numbers back into a sentence answering the question actually asked.
Example 4. From sentences to symbols
A movie theater sells adult tickets at $\$9$ and child tickets at $\$5$. One showing sold 120 tickets and took in $\$868$. How many of each were sold?
- Name: let $a$ = number of adult tickets, $c$ = number of child tickets.
- Fact one, the count: $a + c = 120$.
- Fact two, the money (in dollars): $9a + 5c = 868$.
- Eliminate $c$: multiply the first equation by $5$ and subtract from the second: $(9a + 5c) - 5(a + c) = 868 - 600$, so $4a = 268$ and $a = 67$.
- Then $c = 120 - 67 = 53$.
- Check: $67 + 53 = 120$ ✓, and $9(67) + 5(53) = 603 + 265 = 868$ ✓. Answer: 67 adult and 53 child tickets. $\blacksquare$
A group buys $8$ tickets. Adult tickets cost $\$12$ and child tickets $\$7$, and the bill comes to $\$76$. How many adults are in the group?
Answer: $4$ adults
Let $a$ be the number of adults and $c$ the number of children. Then $a + c = 8$ and $12a + 7c = 76$. Subtract $7 \times$ the first from the second: $5a = 76 - 56 = 20$, so $a = 4$ and $c = 4$. Check: $4 + 4 = 8$ ✓ and $48 + 28 = 76$ ✓.
Practice
For systems, give the answer as the requested single number — that keeps the checking unambiguous. Always verify your full solution in the original equations.
Solve $7x - 5 = 3x + 11$ for $x$.
Answer: $x = 4$
Add $-3x$: $4x - 5 = 11$. Add $5$: $4x = 16$. Multiply by $\frac14$: $x = 4$. Check: $7(4) - 5 = 23$ and $3(4) + 11 = 23$ ✓.
Solve $3(x + 4) = 5(x - 2)$ for $x$.
Answer: $x = 11$
Distributivity gives $3x + 12 = 5x - 10$. Add $-3x$ to both sides: $12 = 2x - 10$. Add $10$: $22 = 2x$. Multiply by $\frac12$: $x = 11$.
Check in the original: $3(11 + 4) = 45$ and $5(11 - 2) = 45$ ✓.
How many solutions does $4x + 7 = 4x - 2$ have?
- Exactly one.
- Infinitely many — every number is a solution.
- None.
- Exactly two.
Answer: none
Adding $-4x$ to both sides leaves $7 = -2$, which is false. No value of $x$ can make the original true, so the solution set is empty. Compare $4x + 7 = 4x + 7$, which reduces to $7 = 7$ — true for every $x$.
Solve $\;\begin{aligned} 3x + 2y &= 16 \\ x - y &= 2 \end{aligned}$ and give the value of $x$.
Answer: $x = 4$
Multiply the second equation by $2$: $2x - 2y = 4$. The $y$-coefficients are now $+2$ and $-2$, so adding the two equations eliminates $y$: $$(3x + 2y) + (2x - 2y) = 16 + 4 \quad\Longrightarrow\quad 5x = 20,$$ so $x = 4$. Back-substituting into $x - y = 2$ gives $y = 2$.
Check in both originals: $3(4) + 2(2) = 16$ ✓ and $4 - 2 = 2$ ✓.
For which value of $k$ does the system $\;\begin{aligned} 2x + 3y &= 7 \\ 4x + ky &= 1 \end{aligned}$ fail to have exactly one solution?
Answer: $k = 6$
Elimination leaves the coefficient $a_1b_2 - a_2b_1 = 2k - 12$. Exactly one solution requires this to be nonzero, so the exceptional value is $2k - 12 = 0$, i.e. $k = 6$.
With $k = 6$ the second equation reads $4x + 6y = 1$, which is $2\times$ the left-hand side of the first but with right-hand side $1$ instead of $14$ — a contradiction, so in this case there is no solution rather than infinitely many.
Solve $\;\begin{aligned} x + y + z &= 4 \\ 2x - y + 3z &= 14 \\ x + 2y - z &= -3 \end{aligned}$ and give the value of $z$.
Answer: $z = 3$
Eliminate $x$ using equation 1. Equation 2 minus $2\times$ equation 1: $$(2x - y + 3z) - 2(x + y + z) = 14 - 8 \quad\Longrightarrow\quad -3y + z = 6.$$ Equation 3 minus equation 1: $$(x + 2y - z) - (x + y + z) = -3 - 4 \quad\Longrightarrow\quad y - 2z = -7.$$
From the second, $y = 2z - 7$. Substitute into the first: $-3(2z - 7) + z = 6$, so $-5z + 21 = 6$, giving $z = 3$. Then $y = -1$, and equation 1 gives $x = 4 - (-1) - 3 = 2$.
Check all three: $2 - 1 + 3 = 4$ ✓, $4 + 1 + 9 = 14$ ✓, $2 - 2 - 3 = -3$ ✓.
The sum of two numbers is $20$ and their difference is $8$. What is the larger number?
Answer: $14$
Let $x$ be the larger and $y$ the smaller. Then $x + y = 20$ and $x - y = 8$. Adding the two equations eliminates $y$: $2x = 28$, so $x = 14$, and then $y = 6$. Check: $14 + 6 = 20$ ✓, $14 - 6 = 8$ ✓.
A stand sells coffee at $\$3$ and tea at $\$2$. It sold $50$ drinks and took in $\$135$. How many coffees were sold?
Answer: $35$ coffees
Let $c$ = coffees, $t$ = teas. Then $c + t = 50$ and $3c + 2t = 135$. Subtract $2\times$ the first from the second: $(3c + 2t) - 2(c + t) = 135 - 100$, so $c = 35$, and $t = 15$. Check: $35 + 15 = 50$ ✓ and $3(35) + 2(15) = 105 + 30 = 135$ ✓.
Which of these operations on an equation can change its set of solutions?
- Adding $-7$ to both sides.
- Multiplying both sides by $x - 1$.
- Multiplying both sides by $\frac{1}{2}$.
- Swapping the two sides.
Answer: multiplying both sides by $x - 1$
The multiplier $x - 1$ is $0$ when $x = 1$, so the step can manufacture $x = 1$ as a spurious extra solution — and it cannot be undone, because you cannot divide by something that might be zero. The other three moves are reversible and therefore safe. This is why every solution must be checked in the original equation.
Planes 1 and 2 are $x + y + z = 6$ and $2x - y + z = 3$. Change equation 3 so that the three planes share a whole line, then press Check.
Answer: for example $3y + z = 9$
Build equation 3 from the other two, both sides together. Twice equation 1 minus equation 2 is $$(2x + 2y + 2z) - (2x - y + z) = 12 - 3 \quad\Longrightarrow\quad 3y + z = 9.$$ Every point on planes 1 and 2 satisfies this automatically, so it adds no information, and eliminating with it ends in $0 = 0$. The solutions are all the points of the line where planes 1 and 2 meet, among them $(1, 2, 3)$ and $(3, 3, 0)$: check $3(2) + 3 = 9$ ✓ and $3(3) + 0 = 9$ ✓.
Other combinations work the same way: equation 1 $+$ equation 2 gives $3x + 2z = 9$, and equation 1 $-$ equation 2 gives $-x + 2y = 3$. Change only the right side and the line is lost: the system then has no solution.
Recap
Name the unknown: let the ball cost $b$ dollars. The bat then costs $b + 1$, and the first sentence says $b + (b + 1) = 1.10$. So $2b = 0.10$ and $b = 0.05$: the ball costs 5 cents and the bat $\$1.05$. The tempting answer fails the check — a 10-cent ball means a $\$1.10$ bat and a total of $\$1.20$. Writing the equation is what protects you from the answer that merely sounds right.
- Solving = replacing an equation by a simpler one with the same solutions. The safe moves are: add anything to both sides; multiply both sides by something nonzero; add a multiple of one equation of a system to another.
- Elimination reduces a system in $n$ unknowns to one in $n-1$ unknowns. Repeat, then back-substitute.
- Every linear system has exactly one solution, infinitely many, or none. For a $2\times2$ system the number $a_1b_2 - a_2b_1$ decides which.
- In word problems: name the unknowns with units, extract one equation per fact, solve, then answer the question in words.
- Check in the original equations, always.