How to solve three linear equations in three variables by elimination
Three equations can look like a lot to keep track of at once. Let’s eliminate the same variable from two pairs of equations so we can work with a smaller system, then use that result to finish.
Eliminate the same variable twice
The coefficients in equations (1) and (3) are opposites, so adding them cancels . Adding equations (2) and (3) cancels again and gives a second equation in and .
Solve the smaller system and substitute back
Add the two new equations to cancel . Then put the value of into the first reduced equation and use and in original equation (1) to find .
The solution is . Substituting the three values into the original left sides gives , , and , which match all three right sides.
What happens when the equations are inconsistent?
The coefficient of is in equation (2). Multiply that equation by and subtract it from (1), then multiply equation (2) by and subtract it from (3).
The same expression would have to equal both and . Subtracting the equations gives , so the original system has no solution.
For more practice with the smaller system, see how to solve a system of two linear equations.