Solving systems of two linear equations: Three methods
A solution to a system has to make both equations true at the same time. We can find that shared point by substituting, eliminating a variable, or graphing. We’ll use one example for each method.
Recognize a linear system in two unknowns
A linear equation in two variables has the form , with constant coefficients and at least one of or nonzero. Terms involving , , or are not linear. For two such equations, a solution is an ordered pair that satisfies both.
Two lines can cross at one point, be distinct and parallel with no solution, or coincide with infinitely many solutions. Each example below has one intersection.
Substitution: Replace one variable with an expression
The first equation already gives in terms of . Substitute the entire expression for in the second equation, then distribute and combine like terms.
Now use the first equation to find . The solution is . In the second equation, , so the pair satisfies both equations.
Elimination: Make one pair of terms cancel
Rearrange the first equation as , then multiply it by so both equations have a term.
Subtract the second equation from this new equation. Subtract both sides of the second equation, so the two y-terms cancel.
Then . The solution is , and checking the other equation gives .
Graphing: Find where the two lines cross
Solve each equation for y. The first line has slope negative one third and y-intercept 4. The second has slope 2 and y-intercept negative 5.
The plotted crossing is approximately (3.86, 2.71). To find the exact values, set the two expressions for y equal.
The exact solution is . Substituting into the first equation gives , and the second gives .