How to solve a system of three equations by elimination

Three equations can look like a lot to work with at once. If we eliminate the same variable from two different pairs, we get a system with just two variables. Let’s solve that smaller system and use it to get back to the third variable.

Eliminate the same variable twice

A solution to a system in x, y, and z is an ordered triple that makes all three equations true. Number the equations so we can keep track of which ones we’re combining.

(1)-x-5y+z=17(2)-5x-5y+5z=5(3)2x+5y-3z=-10

Equations 1 and 3 have opposite coefficients on y. Add them to get x-2z=7. Equations 2 and 3 also have opposite coefficients on y, so adding those gives -3x+2z=-5.

Solve the two-variable system and substitute back

The new equations have opposite coefficients on z. Adding them gives -2x=2, so x=-1. Use x-2z=7 to find z, then put both values into equation 1 to find y.

-1-2z=7⇒z=-4-(-1)-5y+(-4)=17-5y=20⇒y=-4

The solution is (-1,-4,-4). Substituting this triple into the three left sides gives 17, 5, and -10, which match the three right sides.

Recognize when the system has no solution

This time we’ll multiply before subtracting so the a-terms cancel.

(1)3a-3b+4c=-23(2)a+2b-3c=25(3)4a-b+c=25

Subtract three times equation 2 from equation 1. Then subtract four times equation 2 from equation 3. Both operations eliminate a.

(1)-3(2)⇒-9b+13c=-98(3)-4(2)⇒-9b+13c=-75

The same expression would need to equal -98 and -75. Subtracting the equations gives 0=-23, so there’s no triple that satisfies the system. If instead a subtraction gives 0=0, that equation adds no new restriction. Use the remaining equations to see which values can vary.