PrecalculusSystems of Equations and Matrices1 of 6
Systems of Equations and Matrices · 1

Systems of Linear Equations

One linear equation with two unknowns can leave a whole line of possible answers. A second equation can pin down the exact values when its line crosses the first at one point.

1

What a System Is and the Elimination Method

A system of equations is a set of equations that must all be true at the same time for the same unknowns. To solve a system like

2x+3y=125x−2y=11\displaystyle \begin{aligned} 2x + 3y &= 12 \\ 5x - 2y &= 11 \end{aligned}

we combine the two equations so that one of the unknowns cancels out, leaving a single equation with a single unknown.

What a System Is and the Elimination Method
$8\$8
2c+m=8\hspace{3.4em}\mathllap{2c + m} = \mathrlap{8}\hspace{1.2em}
$5\$5
c+m=5\hspace{3.4em}\mathllap{c + m} = \mathrlap{5}\hspace{1.2em}
c=?\hspace{3.4em}\mathllap{c} = \mathrlap{?}\hspace{1.2em}
Text solution
Scale both equations so the yy terms match in sizeBecause 3\elim{3} and 2\elim{2} both go into 6\elim{6}, we double the first equation and triple the second equation to turn the yy terms into opposite numbers, +6y\elim{+6y} and −6y\elim{-6y}.
2(2x+3y=12)  ⟹  4x+6y=243(5x−2y=11)  ⟹  15x−6y=33\displaystyle \begin{aligned} \op{2}(2x \elim{+ 3y} = 12) & \\ \implies 4x \elim{+ 6y} &= 24 \\[6pt] \op{3}(5x \elim{- 2y} = 11) & \\ \implies 15x \elim{- 6y} &= 33 \end{aligned}
Add the scaled equations straight down to eliminate yySince +6y\elim{+6y} and −6y\elim{-6y} have opposite signs, adding the two equations cancels out yy and leaves only xx.
(4x+6y)+(15x−6y)=24+3319x=57x=3\displaystyle \begin{aligned} (4x \elim{+ 6y}) + (15x \elim{- 6y}) &= 24 + 33 \\ 19x &= 57 \\ x &= \val{3} \end{aligned}
Substitute x=3x = \val{3} back into the first original equationPutting x=3x = \val{3} into either original equation lets us solve for the remaining unknown yy.
2(3)+3y=126+3y=123y=6y=2\displaystyle \begin{aligned} 2(\val{3}) + 3y &= 12 \\ 6 + 3y &= 12 \\ 3y &= 6 \\ y &= \val{2} \end{aligned}

So (3,2)\val{(3, 2)} is the single pair of numbers that makes both equations true at the same time.

2

The Substitution Method

Sometimes one of the unknowns is already sitting by itself on one side of the equals sign:

y=2x−13x+2y=12\displaystyle \begin{aligned} y &= \val{2x - 1} \\ 3x + 2\val{y} &= 12 \end{aligned}

Instead of rearranging terms into columns to use elimination, we can replace y\val{y} in the second equation with what it equals in the first.

The Substitution Method
y\displaystyle \hspace{4.2em}\mathllap{y} =2x−1\displaystyle = \mathrlap{\htmlClass{lc-blue}{2x - 1}}\hspace{3.4em}
3x+2y\displaystyle \hspace{4.2em}\mathllap{3x + 2\htmlClass{lc-blue}{y}} =12\displaystyle = \mathrlap{12}\hspace{3.4em}
(x, y)\displaystyle \hspace{4.2em}\mathllap{(x,\ y)} =  ?\displaystyle = \mathrlap{\;?}\hspace{3.4em}
Text solution
Swap y\val{y} in the second equation for 2x−1\val{2x - 1}Because the top equation says y\val{y} and 2x−1\val{2x - 1} have the exact same value, replacing y\val{y} with 2x−1\val{2x - 1} leaves an equation with only xx.
3x+2(2x−1)⏟y\displaystyle 3x + 2\underbrace{\val{(2x - 1)}}_{\val{y}} =12\displaystyle = 12
Expand the parentheses and solve for xxDistribute the 22 across 2x−1\val{2x - 1} and combine the xx terms on the left.
3x+4x−2=127x−2=127x=14x=2\displaystyle \begin{aligned} 3x + 4x - 2 &= 12 \\ 7x - 2 &= 12 \\ 7x &= 14 \\ x &= \val{2} \end{aligned}
Plug x=2x = \val{2} back into the first equation to find yyThe top equation already has yy by itself, so substituting x=2x = \val{2} gives yy right away.
y=2(2)−1y=4−1y=3\displaystyle \begin{aligned} y &= 2(\val{2}) - 1 \\ y &= 4 - 1 \\ y &= \val{3} \end{aligned}

So the solution to the system is (2,3)\val{(2, 3)}.

3

Parallel and Identical Lines

On a coordinate grid, each of these linear equations is a straight line of points that work for that equation, and the solutions to the system are the points shared by the two lines. What happens to the algebra when we try to solve a system where the two lines never cross, or where both equations are the exact same line?

c+m=52c+2m=12andx+y=52x+2y=10\displaystyle \begin{aligned} c + m &= 5 \\ 2c + 2m &= 12 \end{aligned} \qquad \text{and} \qquad \begin{aligned} x + y &= 5 \\ 2x + 2y &= 10 \end{aligned}
Parallel and Identical Lines
2c+m=82c + m = 8
c+m=5c + m = 5
2\htmlClass{lc-mute}{2}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
6\htmlClass{lc-mute}{6}
8\htmlClass{lc-mute}{8}
8\htmlClass{lc-mute}{8}
c\htmlClass{lc-mute}{c}
m\htmlClass{lc-mute}{m}
Always one crossing point?\text{Always one crossing point?}
Text solution
Scale the first equation to match the second and subtractDoubling the top equation in either system makes both variable terms match the bottom equation at the same time, so all variables cancel out in a single step.
First system:(2c+2m=10)−(2c+2m=12)  ⟹  0=−2(contradiction: no solution⏟inconsistent system)Second system:(2x+2y=10)−(2x+2y=10)  ⟹  0=0(always true: infinitely many solutions⏟dependent system)\displaystyle \begin{aligned} &\text{First system:} \\ &(\elim{2c + 2m} = 10) - (\elim{2c + 2m} = 12) \\ &\quad \implies 0 = -2 \quad (\text{contradiction: } \\ &\qquad \underbrace{\text{no solution}}_{\text{inconsistent system}}) \\[10pt] &\text{Second system:} \\ &(\elim{2x + 2y} = 10) - (\elim{2x + 2y} = 10) \\ &\quad \implies 0 = 0 \quad (\text{always true: } \\ &\qquad \underbrace{\text{infinitely many solutions}}_{\text{dependent system}}) \end{aligned}
Write the shared line of solutions using a parameter t\param{t}For the second system, only points on the line x+y=5x + y = 5 work, so we let yy be any number t\param{t} and solve for xx in terms of t\param{t}.
y=tx+t=5  ⟹  x=5−t(x,y)=(5−t,t)\displaystyle \begin{aligned} y &= \param{t} \\ x + \param{t} = 5 &\implies x = \val{5 - \param{t}} \\ (x, y) &= \val{(5 - \param{t}, \param{t})} \end{aligned}

Every number chosen for t\param{t} produces another valid point (5−t,t)\val{(5 - \param{t}, \param{t})} along the line x+y=5x + y = 5.

one solution
2c+m=82c + m = 8
c+m=5c + m = 5
(3, 2)\htmlClass{lc-blue}{(3,\ 2)}
c\htmlClass{lc-mute}{c}
m\htmlClass{lc-mute}{m}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
no solution
c+m=5c + m = 5
2c+2m=122c + 2m = 12
c\htmlClass{lc-mute}{c}
m\htmlClass{lc-mute}{m}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
0=−20 = -2
infinitely many solutions
x+y=52x+2y=10\begin{aligned} x + y &= 5 \\ 2x + 2y &= 10 \end{aligned}
(3, 2)\htmlClass{lc-blue}{(3,\ 2)}
(3.5, 1.5)\htmlClass{lc-blue}{(3.5,\ 1.5)}
(4, 1)\htmlClass{lc-blue}{(4,\ 1)}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
0=0(x, y)=(5−t, t)\begin{aligned} 0 &= 0 \\ (x,\ y) &= \htmlClass{lc-blue}{(5 - \htmlClass{lc-orange}{t},\ \htmlClass{lc-orange}{t})} \end{aligned}

Two lines on a flat grid cross at a single point whenever their slopes are different. When their slopes match, eliminating the variables leaves either a false statement like 0=−20 = -2 for parallel lines, or 0=00 = 0 when both equations describe the same line.

Two lines on a flat grid either cross at one point, are distinct parallel lines that never cross, or sit right on top of each other and share every point.
4

Mixture Word Problems

Now let's set up a system from a description rather than given equations. A chemist needs 10 liters10\text{ liters} of a 35%35\% acid solution by mixing a 20%20\% acid solution with a 50%50\% acid solution, and we want to find how many liters of each bottle to pour in.

Mixture Word Problems
20%20\%
10 L10\text{ L}
35%35\%
50%50\%
??
??
Text solution
Write one equation for the total liquid and one for the pure acidCalling the liters from the 20%20\% bottle xx and the liters from the 50%50\% bottle yy, the total volume must equal 10 liters10\text{ liters} and the pure acid from both bottles must equal 35%35\% of the 10 liters10\text{ liters}.
Total liquid:x+y=10Pure acid:0.20x+0.50y=0.35(10)⏟3.5\displaystyle \begin{aligned} \text{Total liquid:} & \\ x + y &= 10 \\[6pt] \text{Pure acid:} & \\ \acid{0.20x} + \acid{0.50y} &= \underbrace{\acid{0.35(10)}}_{\acid{3.5}} \end{aligned}
Multiply the acid equation by 10\op{10} to clear the decimalsMoving the decimal point one place to the right turns the decimals into whole numbers before we eliminate.
10(0.20x+0.50y=3.5)2x+5y=35\displaystyle \begin{aligned} \op{10}(\acid{0.20x} + \acid{0.50y} &= \acid{3.5}) \\ \elim{2x} + 5y &= 35 \end{aligned}
Double the first equation and subtract to find yy and xxScaling x+y=10x + y = 10 to 2x+2y=20\elim{2x} + 2y = 20 matches the 2x\elim{2x} in the acid equation so xx cancels out.
(2x+5y)−(2x+2y)=35−203y=15y=5x=10−5=5\displaystyle \begin{aligned} (\elim{2x} + 5y) & \\ {}- (\elim{2x} + 2y) &= 35 - 20 \\ 3y &= 15 \\ y &= \val{5} \\ x &= 10 - \val{5} = \val{5} \end{aligned}

So the chemist needs 5 liters5\text{ liters} of the 20%20\% acid solution and 5 liters5\text{ liters} of the 50%50\% acid solution, which makes sense because 35%35\% is halfway between 20%20\% and 50%50\%.

5

Systems of Three Linear Equations

In this system, each linear equation represents a plane in 3D space. We'll use the three equations to find the single point (x,y,z)(x, y, z) where the planes meet:

(1)x+2y+z=9(2)2x−y+3z=12(3)3x+y−z=1\displaystyle \begin{aligned} (1) & & x + 2y + z &= 9 \\ (2) & & 2x - y + 3z &= 12 \\ (3) & & 3x + y - z &= 1 \end{aligned}
Systems of Three Linear Equations
Text solution
Eliminate zz in two different pairs of equationsAdding (1)(1) and (3)(3) cancels +z\elim{+z} and −z\elim{-z} right away, and multiplying (3)(3) by 3\op{3} before adding it to (2)(2) cancels zz a second time so both new equations contain only xx and yy.
(1)+(3):(x+2y+z)+(3x+y−z)=9+1  ⟹  4x+3y=10(4)(2)+3⋅(3):(2x−y+3z)+(9x+3y−3z)=12+3  ⟹  11x+2y=15(5)\displaystyle \begin{aligned} \op{(1) + (3)}: & \\ (x + 2y \elim{+ z}) & \\ {}+ (3x + y \elim{- z}) &= 9 + 1 \\ \implies 4x + 3y &= 10 \quad (4) \\[10pt] \op{(2) + 3\cdot(3)}: & \\ (2x - y \elim{+ 3z}) & \\ {}+ (9x + 3y \elim{- 3z}) &= 12 + 3 \\ \implies 11x + 2y &= 15 \quad (5) \end{aligned}
Solve the two-variable system for xxMultiply (4)(4) by 2\op{2} and (5)(5) by −3\op{-3} to turn the yy terms into +6y\elim{+6y} and −6y\elim{-6y}, then add straight down.
8x+6y=20−33x−6y=−45−25x=−25x=1\displaystyle \begin{aligned} 8x \elim{+ 6y} &= 20 \\ -33x \elim{- 6y} &= -45 \\ \hline -25x &= -25 \\ x &= \val{1} \end{aligned}
Work back up the equations to find yy and zzPlug x=1x = \val{1} into the two-variable equation (4)(4) to get yy, then plug both x=1x = \val{1} and y=2y = \val{2} into the three-variable equation (1)(1) to get zz.
4(1)+3y=10  ⟹  3y=6  ⟹  y=2(1)+2(2)+z=9  ⟹  5+z=9  ⟹  z=4\displaystyle \begin{aligned} 4(\val{1}) + 3y &= 10 \\ \implies 3y &= 6 \\ \implies y &= \val{2} \\[6pt] (\val{1}) + 2(\val{2}) + z &= 9 \\ \implies 5 + z &= 9 \\ \implies z &= \val{4} \end{aligned}

So the three planes meet at the single point (1,2,4)\val{(1, 2, 4)} in 3D space.

6

When Three Planes Don't Meet at a Point

Three planes in 3D space do not have to meet at a single point: they can miss each other entirely, or all three can pass through the same line. Let's see how elimination tells us which case we have in the system

(1)x+y+z=6(2)x−y+3z=4(3)3x+y+5z=16\displaystyle \begin{aligned} (1) & & x + y + z &= 6 \\ (2) & & x - y + 3z &= 4 \\ (3) & & 3x + y + 5z &= 16 \end{aligned}
When Three Planes Don't Meet at a Point
(1)3x+y+5z\displaystyle \hspace{8.4em}\mathllap{\mathrlap{(1)}\hspace{1.7em}\phantom{3}x + y + \phantom{5}z} =6\displaystyle = \mathrlap{6}\hspace{1.6em}
(2)3x−y+3z\displaystyle \hspace{8.4em}\mathllap{\mathrlap{(2)}\hspace{1.7em}\phantom{3}x - y + 3z} =4\displaystyle = \mathrlap{4}\hspace{1.6em}
(3)3x+y+5z\displaystyle \hspace{8.4em}\mathllap{\mathrlap{(3)}\hspace{1.7em}3x + y + 5z} =16\displaystyle = \mathrlap{16}\hspace{1.6em}
(x, y, z)\displaystyle \hspace{8.4em}\mathllap{(x,\ y,\ z)} =  ?\displaystyle = \mathrlap{\;?}\hspace{1.6em}
Text solution
Eliminate yy using two pairs of equationsBecause (2)(2) has −y\elim{-y} while (1)(1) and (3)(3) both have +y\elim{+y}, adding (1)+(2)\op{(1) + (2)} and (2)+(3)\op{(2) + (3)} cancels out yy twice.
(1)+(2):2x+4z=10(4)(2)+(3):4x+8z=20(5)\displaystyle \begin{aligned} \op{(1) + (2)}: \quad 2x + 4z &= 10 \quad (4) \\ \op{(2) + (3)}: \quad 4x + 8z &= 20 \quad (5) \end{aligned}
Combine the two xx-zz equationsMultiply (4)(4) by −2\op{-2} and add it to (5)(5) to eliminate xx.
−4x−8z=−204x+8z=200=0\displaystyle \begin{aligned} \elim{-4x - 8z} &= -20 \\ \elim{4x + 8z} &= 20 \\ \hline 0 &= 0 \end{aligned}
(Had Equation (3)(3) equaled 1919 instead of 1616, this step would have given the contradiction 0=30 = 3, telling us the three planes have no common point and there is no solution.)
Let z=tz = \param{t} and work back up to write the shared 3D lineDivide (4)(4) by 2\op{2} to get x+2z=5x + 2z = 5, set z=tz = \param{t}, and substitute back into x+2z=5x + 2z = 5 and (1)(1) to write every coordinate in terms of t\param{t}.
z=tx+2t=5  ⟹  x=5−2t(5−2t)+y+t=6  ⟹  5−t+y=6  ⟹  y=1+t\displaystyle \begin{aligned} z &= \param{t} \\[6pt] x + 2\param{t} &= 5 \\ \implies x &= \val{5 - 2\param{t}} \\[6pt] \val{(5 - 2\param{t})} + y + \param{t} &= 6 \\ \implies 5 - \param{t} + y &= 6 \\ \implies y &= \val{1 + \param{t}} \end{aligned}

So all three planes meet along the 3D line (5−2t,1+t,t)\val{(5 - 2\param{t}, 1 + \param{t}, \param{t})}, where every choice of t\param{t} (such as t=0\param{t} = 0 giving (5,1,0)\val{(5, 1, 0)} or t=1\param{t} = 1 giving (3,2,1)\val{(3, 2, 1)}) is a point on that shared line.

one solution
no solution
0=30 = 3
infinitely many solutions
0=0(x, y, z)=(5−2t, 1+t, t)\begin{aligned} 0 &= 0 \\ (x,\ y,\ z) &= \htmlClass{lc-blue}{(5 - 2\htmlClass{lc-orange}{t},\ 1 + \htmlClass{lc-orange}{t},\ \htmlClass{lc-orange}{t})} \end{aligned}

Two intersecting planes meet along a line in 3D space. The system has a single solution (x,y,z)\val{(x, y, z)} when the third plane cuts across that line, no solution when the third plane misses it, and a whole line of solutions when the third plane passes right through it.

Two planes already meet along a line, so the solutions to the system depend on whether the third plane cuts across that line, runs parallel to it, or passes right through it.
7

Finding a Parabola Through Three Points

Three-variable linear systems also let us find the equation of a parabola

y\displaystyle y =ax2+bx+c\displaystyle = ax^2 + bx + c

that passes through three given points: (1,4)\val{(1, 4)}, (2,9)\val{(2, 9)}, and (3,18)\val{(3, 18)}. Even though the curve has an x2x^2 term, the (x,y)(x, y) coordinates are already known, so the three unknowns we are solving for are the coefficients aa, bb, and cc.

Finding a Parabola Through Three Points
y=ax2+bx+cy = ax^2 + bx + c
(1, 4)\htmlClass{lc-blue}{(1,\ 4)}
(2, 9)\htmlClass{lc-blue}{(2,\ 9)}
(3, 18)\htmlClass{lc-blue}{(3,\ 18)}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
5\htmlClass{lc-mute}{5}
10\htmlClass{lc-mute}{10}
15\htmlClass{lc-mute}{15}
20\htmlClass{lc-mute}{20}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
a, b, c=  ?a,\ b,\ c = \;?
Text solution
Plug each (x,y)(x, y) point into y=ax2+bx+cy = ax^2 + bx + cReplacing xx and yy with the coordinates of (1,4)\val{(1, 4)}, (2,9)\val{(2, 9)}, and (3,18)\val{(3, 18)} turns x2x^2 and xx into ordinary numbers attached to aa, bb, and cc.
At (1,4):a(1)2+b(1)+c=4  ⟹  a+b+c=4(1)At (2,9):a(2)2+b(2)+c=9  ⟹  4a+2b+c=9(2)At (3,18):a(3)2+b(3)+c=18  ⟹  9a+3b+c=18(3)\displaystyle \begin{aligned} \text{At }\val{(1, 4)}: & \\ a(\val{1})^2 + b(\val{1}) + c &= \val{4} \\ \implies a + b + c &= 4 \quad (1) \\[6pt] \text{At }\val{(2, 9)}: & \\ a(\val{2})^2 + b(\val{2}) + c &= \val{9} \\ \implies 4a + 2b + c &= 9 \quad (2) \\[6pt] \text{At }\val{(3, 18)}: & \\ a(\val{3})^2 + b(\val{3}) + c &= \val{18} \\ \implies 9a + 3b + c &= 18 \quad (3) \end{aligned}
Subtract pairs of equations to eliminate cc twice, then eliminate bbEvery equation ends with +c\elim{+c}, so subtracting (1)(1) from (2)(2) and (2)(2) from (3)(3) cancels cc right away, and subtracting the two resulting equations cancels bb.
(2)−(1):(4a+2b+c)−(a+b+c)=9−4  ⟹  3a+b=5(4)(3)−(2):(9a+3b+c)−(4a+2b+c)=18−9  ⟹  5a+b=9(5)(5)−(4):(5a+b)−(3a+b)=9−5  ⟹  2a=4  ⟹  a=2\displaystyle \begin{aligned} \op{(2) - (1)}: & \\ (4a + 2b \elim{+ c}) & \\ {}- (a + b \elim{+ c}) &= 9 - 4 \\ \implies 3a + b &= 5 \quad (4) \\[10pt] \op{(3) - (2)}: & \\ (9a + 3b \elim{+ c}) & \\ {}- (4a + 2b \elim{+ c}) &= 18 - 9 \\ \implies 5a + b &= 9 \quad (5) \\[10pt] \op{(5) - (4)}: & \\ (5a \elim{+ b}) & \\ {}- (3a \elim{+ b}) &= 9 - 5 \\ \implies 2a &= 4 \\ \implies a &= \val{2} \end{aligned}
Work back up to find bb and cc, then write the quadratic equationPlug a=2a = \val{2} into (4)(4) to find bb, then plug both a=2a = \val{2} and b=−1b = \val{-1} into (1)(1) to find cc.
3(2)+b=5  ⟹  6+b=5  ⟹  b=−12+(−1)+c=4  ⟹  1+c=4  ⟹  c=3\displaystyle \begin{aligned} 3(\val{2}) + b &= 5 \\ \implies 6 + b &= 5 \\ \implies b &= \val{-1} \\[6pt] \val{2} + (\val{-1}) + c &= 4 \\ \implies 1 + c &= 4 \\ \implies c &= \val{3} \end{aligned}

Putting a=2a = \val{2}, b=−1b = \val{-1}, and c=3c = \val{3} back into y=ax2+bx+cy = ax^2 + bx + c gives y=2x2−x+3y = \val{2}x^2 \val{-} x + \val{3}, the exact parabola that passes through (1,4)\val{(1, 4)}, (2,9)\val{(2, 9)}, and (3,18)\val{(3, 18)}.

Any three points with different xx-coordinates determine one equation of the form y=ax2+bx+cy = ax^2 + bx + c. If the points lie on a line, a=0a = 0 and the graph is that line. Otherwise, the graph is a parabola. As the third point moves vertically across the line connecting the other two, aa passes through zero and changes sign.

Three points with different x-coordinates determine one graph of the form y=ax2+bx+cy = ax^2 + bx + c. It is a parabola unless the points lie on a line.

Key concepts

To find a unique solution to a linear system, we need enough independent equations. Elimination can reduce the system one variable at a time, after which we can work back up to find the remaining values.

Choosing between Substitution and Elimination

Use substitution when a variable is already by itself or has a coefficient of 11, like y=2x−1y = \val{2x - 1} inside 3x+2y=12  ⟹  3x+2(2x−1)=123x + 2\val{y} = 12 \implies \\ 3x + 2\val{(2x - 1)} = 12. Do not force substitution when every variable has a coefficient attached, such as 2x+3y=122x + 3y = 12 and 5x−2y=115x - 2y = 11, because isolating a variable creates fractions; instead use elimination by scaling the equations so one variable has matching opposites (+6y\elim{+6y} and −6y\elim{-6y}) and adding straight down.

Reducing 33 unknowns to 22 unknowns

In these examples, pick one variable and eliminate it in two pairs that include all three original equations. For the parabola, every equation ends in +c\elim{+c}, so subtracting pairs eliminates cc. Once you have solved for one unknown, substitute back upward to find the others.

When all variables cancel out at once

If elimination leaves a contradiction like 0=−20 = -2 or 0=30 = 3, there is no solution. If it leaves a true statement like 0=00 = 0, use the remaining equations to find the solutions. In our examples those solutions form a line: set y=ty = \param{t} in x+y=5x + y = 5 to get (5−t,t)\val{(5 - \param{t}, \param{t})}, or set z=tz = \param{t} in x+2z=5x + 2z = 5 and x+y+z=6x + y + z = 6 to get (5−2t,1+t,t)\val{(5 - 2\param{t}, 1 + \param{t}, \param{t})}.

8

Practice

1

Solve the system of equations: y=3x−5y = 3x - 5 and 4x+3y=114x + 3y = 11.

One variable is already by itself in the first equation. Which method avoids extra setup, and what replaces yy in the second equation?

Substitute y=3x−5y = \val{3x - 5} into 4x+3y=114x + 3\val{y} = 11:
4x+3(3x−5)\displaystyle 4x + 3\val{(3x - 5)} =11\displaystyle = 11
Watch out: Multiply the entire expression 3x−5\val{3x - 5} by 33; forgetting to distribute the 33 to −5-5 gives 4x+9x−5=114x + 9x - 5 = 11 and leads to the wrong answer (1613,−1713)\left(\frac{16}{13}, -\frac{17}{13}\right).
4x+9x−15=1113x=26x=2y=3(2)−5=1\displaystyle \begin{aligned} 4x + 9x - 15 &= 11 \\ 13x &= 26 \\ x &= \val{2} \\ y &= 3(\val{2}) - 5 = \val{1} \end{aligned}
(2,1)(2, 1)
2

Solve the system of equations: 4x+3y=64x + 3y = 6 and 3x−2y=133x - 2y = 13.

Look at +3y+3y and −2y-2y: they already have opposite signs. What common number can both 33 and 22 reach by scaling the two equations?

Multiply the first equation by 2\op{2} and the second equation by 3\op{3} so the yy terms become +6y\elim{+6y} and −6y\elim{-6y}:
8x+6y=129x−6y=39\displaystyle \begin{aligned} 8x \elim{+ 6y} &= 12 \\ 9x \elim{- 6y} &= 39 \end{aligned}
Watch out: Remember to multiply the right-hand side numbers 66 and 1313 as well; leaving them unchanged as 66 and 1313 gives 17x=1917x = 19 and the wrong answer (1917,1051)\left(\frac{19}{17}, \frac{10}{51}\right).
17x=51x=34(3)+3y=6  ⟹  12+3y=6  ⟹  3y=−6  ⟹  y=−2\displaystyle \begin{aligned} 17x &= 51 \\ x &= \val{3} \\ 4(\val{3}) + 3y = 6 \implies 12 + 3y &= 6 \implies 3y = -6 \implies y = \val{-2} \end{aligned}
(3,−2)(3, -2)
3

Solve the system of equations: 3x−2y=53x - 2y = 5 and 6x−4y=146x - 4y = 14.

How can you scale the first equation so its xx term matches the 6x6x in the second equation?

Multiply the first equation by 2\op{2} to get 6x−4y=10\elim{6x - 4y} = 10, then subtract the second equation 6x−4y=14\elim{6x - 4y} = 14:
(6x−4y)−(6x−4y)=10−140=−4\displaystyle \begin{aligned} (\elim{6x - 4y}) - (\elim{6x - 4y}) &= 10 - 14 \\ 0 &= -4 \end{aligned}
Watch out: Don't assume that every variable cancelling out automatically means infinitely many solutions; check whether the remaining statement is true or false, because 0=−40 = -4 is a contradiction rather than 0=00 = 0.
No solution (inconsistent system)
4

A chemist needs 12 liters12\text{ liters} of a 30%30\% acid solution by mixing a 10%10\% acid solution with a 40%40\% acid solution. How many liters of each solution should they mix?

Call the liters of the 40%40\% solution xx and the liters of the 10%10\% solution yy. Write one equation for the total liters of liquid and a second equation for the liters of pure acid in the 12 liters12\text{ liters}.

Let xx be the liters of the 40%40\% solution and yy be the liters of the 10%10\% solution:
x+y=120.40x+0.10y=0.30(12)=3.6\displaystyle \begin{aligned} x + y &= 12 \\ \acid{0.40x} + \acid{0.10y} &= \acid{0.30(12)} = \acid{3.6} \end{aligned}
Watch out: The right-hand side of the acid equation must be 30%30\% of the 12 liters12\text{ liters} (0.30×12=3.6\acid{0.30 \times 12} = \acid{3.6}); writing just 0.300.30 without multiplying by 1212 gives 4x+y=34x + y = 3 and leads to the impossible answer of −3 liters-3\text{ liters} of the 40%40\% solution and 15 liters15\text{ liters} of the 10%10\% solution.
Multiply the second equation by 10\op{10} to clear decimals and subtract x+y=12x + \elim{y} = 12:
(4x+y)−(x+y)=36−123x=24  ⟹  x=8y=12−8=4\displaystyle \begin{aligned} (4x \elim{+ y}) - (x \elim{+ y}) &= 36 - 12 \\ 3x &= 24 \implies x = \val{8} \\ y &= 12 - \val{8} = \val{4} \end{aligned}
4 liters4\text{ liters} of the 10%10\% acid solution and 8 liters8\text{ liters} of the 40%40\% acid solution
5

Solve the system of equations: x+2y+z=3x + 2y + z = 3, 2x−y+2z=112x - y + 2z = 11, and 3x+y−z=23x + y - z = 2.

Pick one variable to eliminate in two different pairs of equations. Look at how +z+z, +2z+2z, and −z-z can pair up cleanly.

Eliminate zz twice using the third equation 3x+y−z=23x + y \elim{- z} = 2:
(1)+(3):(x+2y+z)+(3x+y−z)=3+2  ⟹  4x+3y=5(4)(2)+2⋅(3):(2x−y+2z)+(6x+2y−2z)=11+4  ⟹  8x+y=15(5)\displaystyle \begin{aligned} \op{(1) + (3)}: \quad (x + 2y \elim{+ z}) + (3x + y \elim{- z}) &= 3 + 2 \implies 4x + 3y = 5 \quad (4) \\ \op{(2) + 2\cdot(3)}: \quad (2x - y \elim{+ 2z}) + (6x + 2y \elim{- 2z}) &= 11 + 4 \implies 8x + y = 15 \quad (5) \end{aligned}
Watch out: If you eliminate zz in the first pair, eliminate zz in the second pair too, so the two resulting equations use the same variables. Remember to double the right-hand side of (3)(3) from 22 to 44 (forgetting to double it gives 8x+y=138x + y = 13 and the wrong answer (1.7,−0.6,2.5)(1.7, -0.6, 2.5)).
Multiply (5)(5) by −3\op{-3} and add it to (4)(4) to eliminate yy, then work back up:
(4x+3y)+(−24x−3y)=5−45  ⟹  −20x=−40  ⟹  x=28(2)+y=15  ⟹  16+y=15  ⟹  y=−12+2(−1)+z=3  ⟹  z=3\displaystyle \begin{aligned} (4x \elim{+ 3y}) + (-24x \elim{- 3y}) &= 5 - 45 \implies -20x = -40 \implies x = \val{2} \\ 8(\val{2}) + y = 15 &\implies 16 + y = 15 \implies y = \val{-1} \\ \val{2} + 2(\val{-1}) + z = 3 &\implies z = \val{3} \end{aligned}
(2,−1,3)(2, -1, 3)
6

Solve the system of equations: x+y+z=7x + y + z = 7, x−y+5z=5x - y + 5z = 5, and 3x+y+7z=193x + y + 7z = 19.

Eliminate yy in two pairs using the second equation, then see what happens when you combine the two resulting equations in xx and zz.

Add (1)+(2)\op{(1) + (2)} and (2)+(3)\op{(2) + (3)} to eliminate yy twice:
(1)+(2):2x+6z=12  ⟹  x+3z=6(4)(2)+(3):4x+12z=24(5)\displaystyle \begin{aligned} \op{(1) + (2)}: \quad 2x + 6z &= 12 \implies x + 3z = 6 \quad (4) \\ \op{(2) + (3)}: \quad 4x + 12z &= 24 \quad (5) \end{aligned}
Multiply (4)(4) by −4\op{-4} and add to (5)(5) to get 0=00 = 0. Set z=tz = \param{t} in x+3z=6x + 3z = 6 and work back up to (1)(1):
z=tx+3t=6  ⟹  x=6−3t(6−3t)+y+t=7  ⟹  6−2t+y=7\displaystyle \begin{aligned} z &= \param{t} \\ x + 3\param{t} = 6 &\implies x = \val{6 - 3\param{t}} \\ \val{(6 - 3\param{t})} + y + \param{t} &= 7 \implies 6 - 2\param{t} + y = 7 \end{aligned}
Watch out: When moving −2t-2\param{t} to the right-hand side of 6−2t+y=76 - 2\param{t} + y = 7, add 2t2\param{t} to both sides; keeping the minus sign gives y=1−2ty = 1 - 2\param{t} and the wrong answer (6−3t,1−2t,t)(6 - 3\param{t}, 1 - 2\param{t}, \param{t}).
y\displaystyle y =1+2t\displaystyle = \val{1 + 2\param{t}}
(6−3t,1+2t,t)(6 - 3t, 1 + 2t, t)
7

Find the quadratic equation y=ax2+bx+cy = ax^2 + bx + c whose parabola passes through the points (1,2)(1, 2), (2,4)(2, 4), and (3,4)(3, 4).

Plug each (x,y)(x, y) point into y=ax2+bx+cy = ax^2 + bx + c to get three equations in aa, bb, and cc, then subtract pairs to eliminate cc twice.

Substitute (1,2)\val{(1, 2)}, (2,4)\val{(2, 4)}, and (3,4)\val{(3, 4)} into y=ax2+bx+cy = ax^2 + bx + c:
At (1,2):a+b+c=2(1)At (2,4):4a+2b+c=4(2)At (3,4):9a+3b+c=4(3)\displaystyle \begin{aligned} \text{At }\val{(1, 2)}: \quad a + b + c &= 2 \quad (1) \\ \text{At }\val{(2, 4)}: \quad 4a + 2b + c &= 4 \quad (2) \\ \text{At }\val{(3, 4)}: \quad 9a + 3b + c &= 4 \quad (3) \end{aligned}
Subtract (2)−(1)\op{(2) - (1)} and (3)−(2)\op{(3) - (2)} to eliminate cc:
(2)−(1):3a+b=2(4)(3)−(2):5a+b=0(5)\displaystyle \begin{aligned} \op{(2) - (1)}: \quad 3a + b &= 2 \quad (4) \\ \op{(3) - (2)}: \quad 5a + b &= 0 \quad (5) \end{aligned}
Watch out: In (3)−(2)\op{(3) - (2)}, the right-hand sides subtract to 4−4=04 - 4 = 0. Subtracting (4)−(5)\op{(4) - (5)} on one side while doing (5)−(4)\op{(5) - (4)} on the other flips the sign of 2a=−22a = -2 to give a=1a = 1, leading to the wrong parabola y=x2−x+2y = x^2 - x + 2.
Subtract (5)−(4)\op{(5) - (4)} to eliminate bb, then work back up:
(5a+b)−(3a+b)=0−2  ⟹  2a=−2  ⟹  a=−13(−1)+b=2  ⟹  b=5(−1)+5+c=2  ⟹  c=−2\displaystyle \begin{aligned} (5a \elim{+ b}) - (3a \elim{+ b}) &= 0 - 2 \implies 2a = -2 \implies a = \val{-1} \\ 3(\val{-1}) + b = 2 &\implies b = \val{5} \\ (\val{-1}) + \val{5} + c = 2 &\implies c = \val{-2} \end{aligned}
y=−x2+5x−2y = -x^2 + 5x - 2