Chapter 0 ยท Preparing for Geometry
Solving Systems of Linear Equations
Find where two lines meet by graphing, substitution or elimination, and learn how to choose the method that fits.
You already know that the graph of a linear equation in two variables is a line. Now you will work with two such equations at once.
A system of linear equations is a set of linear equations in the same variables that must all be true at the same time. In this lesson, each system has two equations in and . A solution of a system is an ordered pair that makes every equation in the system true.
For example, is a solution of the system and , because and . The pair is not a solution. It makes true, but , not . One true equation is not enough.
Key concept
A solution is a point on both lines
The graph of an equation is the set of all points whose coordinates make the equation true. So a point lies on a line exactly when its coordinates make that line's equation true.
This means the solutions of a system of two linear equations are exactly the points that lie on both lines. Graphing, substitution and elimination are three ways to find those same points.
To solve a system by graphing, draw both lines on one coordinate plane and look for a point they share. In the figure below, the horizontal axis is the -axis and the vertical axis is the -axis.
Slope is the change in over the change in , for a nonzero change in . A horizontal line has slope , and a vertical line has undefined slope.
Take the system and . Line A is , with slope , and it passes through Point A at . Line B is , with slope , and it passes through Point B at . The lines appear to cross at Point C, which looks like . A drawing only suggests this. It cannot prove exact coordinates. So call a candidate: a possible solution that you must test in both equations.
Worked example
Solve by graphing
Given the system and , find its solution by graphing.
Graph the first equation. The form y = mx + b describes a nonvertical line with slope m and y-intercept b, the y-value where the line meets the y-axis. So this line, Line A, has slope 2 and passes through (0, -1).
Graph the second equation the same way. This line, Line B, has slope -1 and passes through (0, 5).
The lines appear to cross at (2, 3). That makes (2, 3) a candidate, not yet a solution, because a drawing cannot prove exact values.
Test the candidate in the first equation by replacing x with 2. The result is 3, the y-value of the candidate, so the equation is true.
Test the candidate in the second equation the same way. The result is again 3, so this equation is true too.
Both equations are true at (2, 3), so it is a solution by the definition of a solution. It is the only one. The slopes 2 and -1 differ, so these are two different lines. The Line Postulate says that through any two points there is exactly one line, so two different lines cannot share a second point.
Answer
The system has exactly one solution, , the point where the two lines meet.
Two lines do not always meet at exactly one point. If two equations describe the same line, every point on it is a solution, so the system has infinitely many solutions. If the lines are different and parallel, the system has no solution.
Parallel lines are lines in the same plane that never meet. The Parallel Slopes Theorem says that two different nonvertical lines are parallel exactly when their slopes are equal. It works in both directions: equal slopes give parallel lines, and parallel lines have equal slopes. So different slopes mean the lines are not parallel, and they must meet.
The next figure, with the same axes, shows as Line A, through Point A at , and as Line B, through Point B at . Each equation has the form , so both lines are nonvertical. Both slopes are and the -intercepts differ, so these are two different lines with equal slopes. By the direction "equal slopes give parallel lines," they are parallel. That reason comes from the equations, not from how the picture looks, and it means this system has no solution.
A graph shows what a solution means, but it cannot always give exact values. The lines and meet at , since both equations give when . No one can read those exact values from a drawing. Algebra can find them.
Substitution rests on the substitution property of equality: if two quantities are equal, you may replace one with the other in any equation. At a solution, and stand for the same numbers in both equations. So if one equation says , you may write in place of in the other equation. That leaves one equation in one variable, which you already know how to solve.
The plan: get one variable alone, replace it in the other equation, solve, find the second variable, then check the pair in both original equations. If getting a variable alone means dividing by its coefficient, the number that multiplies it, that number must be nonzero. Each step follows from the one before, so any solution must have the values you find. The check confirms that those values work.
Worked example
Solve by substitution
Given the system and , find its solution by substitution.
The second equation says y and x - 1 are equal. By the substitution property of equality, replace y with x - 1 in the first equation. Keep the parentheses, because 3 multiplies all of x - 1.
Use the distributive property, then combine like terms.
Add 3 to both sides, by the addition property of equality.
Divide both sides by 5, by the division property of equality. This is allowed because 5 is not zero.
Replace x with 3 in the second equation to find y, by the substitution property of equality.
Check (3, 2) in both original equations. Both are true, so (3, 2) is a solution by the definition of a solution.
Answer
The solution of the system is .
Elimination removes one variable by adding the two equations. It rests on the addition property of equality: if and , then . At a solution, both equations are true, so the sum of the left sides equals the sum of the right sides.
When a variable's coefficients in the two equations are opposites, such as and , their sum is , so adding the equations makes that variable disappear.
If no coefficients are opposites yet, multiply both sides of one equation, or of each one, by a nonzero number, using the multiplication property of equality. The number must be nonzero, because multiplying by turns any equation into and erases its line. A nonzero multiplier keeps the same line.
Worked example
Solve by elimination
Given the system and , find its solution by elimination.
The y coefficients are 2 and -1, which are not opposites. Multiply both sides of the second equation by 2, by the multiplication property of equality. Because 2 is nonzero, the line does not change.
Add this equation to the first, by the addition property of equality. The y terms cancel because 2y + (-2y) = 0.
Divide both sides by 7, by the division property of equality. This is allowed because 7 is not zero.
Replace x with 4 in the original second equation, by the substitution property of equality. Subtract 8 from both sides, then divide both sides by -1, which is not zero.
Check (4, 2) in both original equations. Both are true, so (4, 2) is a solution by the definition of a solution.
Answer
The solution of the system is .
Sometimes both variables disappear as you use substitution or elimination. The statement left over tells you which case you have.
Try substitution on and . By the substitution property of equality, replacing gives . Subtracting from both sides, by the subtraction property of equality, leaves . Any solution would have to make this statement true. It is false, so the system has no solution, which agrees with the parallel lines above.
Now try and . Replacing the same way gives , and the distributive property makes this . Subtracting from both sides leaves , which is true for every . Dividing by the nonzero number gives , so both equations describe the same line, and every point on it is a solution.
To compare slopes in the table below, solve each equation for . That divides by the coefficient of , which must be nonzero. If that coefficient is , the line is vertical, like .
| How the lines relate | How to tell from the equations | How the algebra ends | Number of solutions |
|---|---|---|---|
They meet at one point | Different slopes, or exactly one line is vertical | One value for each variable | Exactly one |
Different parallel lines | Equal slopes and different -intercepts, or two different vertical lines | A false statement, such as | None |
The same line | Equal slopes and equal -intercepts, or the same vertical line | A statement that is always true, such as | Infinitely many |
All three methods look for the same points, so you may choose the one that fits the form of the equations.
- Graphing shows how the lines relate, but it gives only a candidate to test.
- Substitution is quick when a variable is alone or has a coefficient of or .
- Elimination is quick when a variable's coefficients are opposites or can become opposites with a nonzero multiplier.
These are guides, not rules. In the table below, test each listed solution in both of its equations.
| System | What you notice | Good choice | Solution |
|---|---|---|---|
and | is already alone | Substitution | |
and | The coefficients, and , are opposites | Elimination | |
and | Both lines are easy to draw, and you want to see how they relate | Graphing, then test the candidate |
Worked example
Choose a method and solve
Given: a rectangle has a perimeter of cm, and its length is cm less than times its width. Find its length and width.
Let L be the length and W the width, in centimeters. Side lengths are positive, so L > 0 and W > 0. Opposite sides of a rectangle are congruent and perimeter is the sum of the side lengths, so the perimeter is 2L + 2W. The second given fact gives L directly.
Choose a method. L is already alone, so substitution fits best: graphing would give only a candidate, and elimination would need rearranging first. By the substitution property of equality, replace L with 3W - 4 in the first equation.
Use the distributive property, then combine like terms.
Add 8 to both sides, by the addition property of equality. Then divide both sides by 8, which is not zero, by the division property of equality.
Replace W with 9 in the second equation, by the substitution property of equality.
Check both equations and the geometric condition. Both equations are true and both lengths are positive, so the values fit the rectangle.
Answer
The rectangle has a length of cm and a width of cm.
A solution of a system is a point on both lines, so it must make both equations true. Graphing shows where to look, and substitution and elimination give exact values. Choose the method that fits the form of the equations, then test your answer in both of them.