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+3y5x−2y=12=11
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
Text solution
Scale both equations so the y terms match in sizeBecause 3 and 2 both go into 6, we double the first equation and triple the second equation to turn the y terms into opposite numbers, +6y and −6y.
2(2x+3y=12)⟹4x+6y3(5x−2y=11)⟹15x−6y=24=33
Add the scaled equations straight down to eliminate ySince +6y and −6y have opposite signs, adding the two equations cancels out y and leaves only x.
(4x+6y)+(15x−6y)19xx=24+33=57=3
Substitute x=3 back into the first original equationPutting x=3 into either original equation lets us solve for the remaining unknown y.
2(3)+3y6+3y3yy=12=12=6=2
So (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:
y3x+2y=2x−1=12
Instead of rearranging terms into columns to use elimination, we can replace y in the second equation with what it equals in the first.
The Substitution Method
y=2x−1
3x+2y=12
(x,y)=?
Text solution
Swap y in the second equation for 2x−1Because the top equation says y and 2x−1 have the exact same value, replacing y with 2x−1 leaves an equation with only x.
3x+2y(2x−1)=12
Expand the parentheses and solve for xDistribute the 2 across 2x−1 and combine the x terms on the left.
3x+4x−27x−27xx=12=12=14=2
Plug x=2 back into the first equation to find yThe top equation already has y by itself, so substituting x=2 gives y right away.
yyy=2(2)−1=4−1=3
So the solution to the system is (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+m2c+2m=5=12andx+y2x+2y=5=10
Parallel and Identical Lines
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.
Write the shared line of solutions using a parameter tFor the second system, only points on the line x+y=5 work, so we let y be any number t and solve for x in terms of t.
yx+t=5(x,y)=t⟹x=5−t=(5−t,t)
Every number chosen for t produces another valid point (5−t,t) along the line x+y=5.
one solution
no solution
0=−2
infinitely many solutions
0(x,y)=0=(5−t,t)
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=−2 for parallel lines, or 0=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 liters of a 35% acid solution by mixing a 20% acid solution with a 50% acid solution, and we want to find how many liters of each bottle to pour in.
Mixture Word Problems
Text solution
Write one equation for the total liquid and one for the pure acidCalling the liters from the 20% bottle x and the liters from the 50% bottle y, the total volume must equal 10 liters and the pure acid from both bottles must equal 35% of the 10 liters.
Total liquid:x+yPure acid:0.20x+0.50y=10=3.50.35(10)
Multiply the acid equation by 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.50y2x+5y=3.5)=35
Double the first equation and subtract to find y and xScaling x+y=10 to 2x+2y=20 matches the 2x in the acid equation so x cancels out.
(2x+5y)−(2x+2y)3yyx=35−20=15=5=10−5=5
So the chemist needs 5 liters of the 20% acid solution and 5 liters of the 50% acid solution, which makes sense because 35% is halfway between 20% and 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) where the planes meet:
(1)(2)(3)x+2y+z2x−y+3z3x+y−z=9=12=1
Systems of Three Linear Equations
Text solution
Eliminate z in two different pairs of equationsAdding (1) and (3) cancels +z and −z right away, and multiplying (3) by 3 before adding it to (2) cancels z a second time so both new equations contain only x and y.
Solve the two-variable system for xMultiply (4) by 2 and (5) by −3 to turn the y terms into +6y and −6y, then add straight down.
8x+6y−33x−6y−25xx=20=−45=−25=1
Work back up the equations to find y and zPlug x=1 into the two-variable equation (4) to get y, then plug both x=1 and y=2 into the three-variable equation (1) to get z.
4(1)+3y⟹3y⟹y(1)+2(2)+z⟹5+z⟹z=10=6=2=9=9=4
So the three planes meet at the single point (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)(2)(3)x+y+zx−y+3z3x+y+5z=6=4=16
When Three Planes Don't Meet at a Point
(1)3x+y+5z=6
(2)3x−y+3z=4
(3)3x+y+5z=16
(x,y,z)=?
Text solution
Eliminate y using two pairs of equationsBecause (2) has −y while (1) and (3) both have +y, adding (1)+(2) and (2)+(3) cancels out y twice.
(1)+(2):2x+4z(2)+(3):4x+8z=10(4)=20(5)
Combine the two x-z equationsMultiply (4) by −2 and add it to (5) to eliminate x.
−4x−8z4x+8z0=−20=20=0
(Had Equation (3) equaled 19 instead of 16, this step would have given the contradiction 0=3, telling us the three planes have no common point and there is no solution.)
Let z=t and work back up to write the shared 3D lineDivide (4) by 2 to get x+2z=5, set z=t, and substitute back into x+2z=5 and (1) to write every coordinate in terms of t.
zx+2t⟹x(5−2t)+y+t⟹5−t+y⟹y=t=5=5−2t=6=6=1+t
So all three planes meet along the 3D line (5−2t,1+t,t), where every choice of t (such as t=0 giving (5,1,0) or t=1 giving (3,2,1)) is a point on that shared line.
one solution
no solution
0=3
infinitely many solutions
0(x,y,z)=0=(5−2t,1+t,t)
Two intersecting planes meet along a line in 3D space. The system has a single solution (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=ax2+bx+c
that passes through three given points: (1,4),(2,9), and (3,18). Even though the curve has an x2 term, the (x,y) coordinates are already known, so the three unknowns we are solving for are the coefficients a,b, and c.
Finding a Parabola Through Three Points
Text solution
Plug each (x,y) point into y=ax2+bx+cReplacing x and y with the coordinates of (1,4),(2,9), and (3,18) turns x2 and x into ordinary numbers attached to a,b, and c.
At (1,4):a(1)2+b(1)+c⟹a+b+cAt (2,9):a(2)2+b(2)+c⟹4a+2b+cAt (3,18):a(3)2+b(3)+c⟹9a+3b+c=4=4(1)=9=9(2)=18=18(3)
Subtract pairs of equations to eliminate c twice, then eliminate bEvery equation ends with +c, so subtracting (1) from (2) and (2) from (3) cancels c right away, and subtracting the two resulting equations cancels b.
Work back up to find b and c, then write the quadratic equationPlug a=2 into (4) to find b, then plug both a=2 and b=−1 into (1) to find c.
3(2)+b⟹6+b⟹b2+(−1)+c⟹1+c⟹c=5=5=−1=4=4=3
Putting a=2,b=−1, and c=3 back into y=ax2+bx+c gives y=2x2−x+3, the exact parabola that passes through (1,4),(2,9), and (3,18).
Any three points with different x-coordinates determine one equation of the form y=ax2+bx+c. If the points lie on a line, a=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, a passes through zero and changes sign.
Three points with different x-coordinates determine one graph of the form y=ax2+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 1, like y=2x−1 inside 3x+2y=12⟹3x+2(2x−1)=12. Do not force substitution when every variable has a coefficient attached, such as 2x+3y=12 and 5x−2y=11, because isolating a variable creates fractions; instead use elimination by scaling the equations so one variable has matching opposites (+6y and −6y) and adding straight down.
Reducing 3 unknowns to 2 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, so subtracting pairs eliminates c. 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=−2 or 0=3, there is no solution. If it leaves a true statement like 0=0, use the remaining equations to find the solutions. In our examples those solutions form a line: set y=t in x+y=5 to get (5−t,t), or set z=t in x+2z=5 and x+y+z=6 to get (5−2t,1+t,t).
8
Practice
1
Solve the system of equations: y=3x−5 and 4x+3y=11.
Multiply the entire expression 3x−5 by 3; forgetting to distribute the 3 to −5 gives 4x+9x−5=11 and leads to the wrong answer (1316,−1317).
One variable is already by itself in the first equation. Which method avoids extra setup, and what replaces y in the second equation?
Substitute y=3x−5 into 4x+3y=11:
4x+3(3x−5)=11
Watch out: Multiply the entire expression 3x−5 by 3; forgetting to distribute the 3 to −5 gives 4x+9x−5=11 and leads to the wrong answer (1316,−1317).
4x+9x−1513xxy=11=26=2=3(2)−5=1
(2,1)
2
Solve the system of equations: 4x+3y=6 and 3x−2y=13.
Look at +3y and −2y: they already have opposite signs. What common number can both 3 and 2 reach by scaling the two equations?
Multiply the first equation by 2 and the second equation by 3 so the y terms become +6y and −6y:
8x+6y9x−6y=12=39
Watch out: Remember to multiply the right-hand side numbers 6 and 13 as well; leaving them unchanged as 6 and 13 gives 17x=19 and the wrong answer (1719,5110).
17xx4(3)+3y=6⟹12+3y=51=3=6⟹3y=−6⟹y=−2
(3,−2)
3
Solve the system of equations: 3x−2y=5 and 6x−4y=14.
How can you scale the first equation so its x term matches the 6x in the second equation?
Multiply the first equation by 2 to get 6x−4y=10, then subtract the second equation 6x−4y=14:
(6x−4y)−(6x−4y)0=10−14=−4
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=−4 is a contradiction rather than 0=0.
No solution (inconsistent system)
4
A chemist needs 12 liters of a 30% acid solution by mixing a 10% acid solution with a 40% acid solution. How many liters of each solution should they mix?
The right-hand side of the acid equation must be 30% of the 12 liters (0.30×12=3.6); writing just 0.30 without multiplying by 12 gives 4x+y=3 and leads to the impossible answer of −3 liters of the 40% solution and 15 liters of the 10% solution.
Call the liters of the 40% solution x and the liters of the 10% solution y. Write one equation for the total liters of liquid and a second equation for the liters of pure acid in the 12 liters.
Let x be the liters of the 40% solution and y be the liters of the 10% solution:
x+y0.40x+0.10y=12=0.30(12)=3.6
Watch out: The right-hand side of the acid equation must be 30% of the 12 liters (0.30×12=3.6); writing just 0.30 without multiplying by 12 gives 4x+y=3 and leads to the impossible answer of −3 liters of the 40% solution and 15 liters of the 10% solution.
Multiply the second equation by 10 to clear decimals and subtract x+y=12:
(4x+y)−(x+y)3xy=36−12=24⟹x=8=12−8=4
4 liters of the 10% acid solution and 8 liters of the 40% acid solution
5
Solve the system of equations: x+2y+z=3,2x−y+2z=11, and 3x+y−z=2.
Remember to double the right-hand side of (3) from 2 to 4 (forgetting to double it gives 8x+y=13 and the wrong answer (1.7,−0.6,2.5)).
Pick one variable to eliminate in two different pairs of equations. Look at how +z,+2z, and −z can pair up cleanly.
Eliminate z twice using the third equation 3x+y−z=2:
Watch out: If you eliminate z in the first pair, eliminate z in the second pair too, so the two resulting equations use the same variables. Remember to double the right-hand side of (3) from 2 to 4 (forgetting to double it gives 8x+y=13 and the wrong answer (1.7,−0.6,2.5)).
Multiply (5) by −3 and add it to (4) to eliminate y, then work back up:
Solve the system of equations: x+y+z=7,x−y+5z=5, and 3x+y+7z=19.
Eliminate y in two pairs using the second equation, then see what happens when you combine the two resulting equations in x and z.
Add (1)+(2) and (2)+(3) to eliminate y twice:
(1)+(2):2x+6z(2)+(3):4x+12z=12⟹x+3z=6(4)=24(5)
Multiply (4) by −4 and add to (5) to get 0=0. Set z=t in x+3z=6 and work back up to (1):
zx+3t=6(6−3t)+y+t=t⟹x=6−3t=7⟹6−2t+y=7
Watch out: When moving −2t to the right-hand side of 6−2t+y=7, add 2t to both sides; keeping the minus sign gives y=1−2t and the wrong answer (6−3t,1−2t,t).
y=1+2t
(6−3t,1+2t,t)
7
Find the quadratic equation y=ax2+bx+c whose parabola passes through the points (1,2),(2,4), and (3,4).
Plug each (x,y) point into y=ax2+bx+c to get three equations in a,b, and c, then subtract pairs to eliminate c twice.
Substitute (1,2),(2,4), and (3,4) into y=ax2+bx+c:
At (1,2):a+b+cAt (2,4):4a+2b+cAt (3,4):9a+3b+c=2(1)=4(2)=4(3)
Subtract (2)−(1) and (3)−(2) to eliminate c:
(2)−(1):3a+b(3)−(2):5a+b=2(4)=0(5)
Watch out: In (3)−(2), the right-hand sides subtract to 4−4=0. Subtracting (4)−(5) on one side while doing (5)−(4) on the other flips the sign of 2a=−2 to give a=1, leading to the wrong parabola y=x2−x+2.
Subtract (5)−(4) to eliminate b, then work back up: