How to solve a system of equations by elimination

When two equations share the same variables, we can combine them to make one variable disappear. Then we have one equation to solve, and we can use that result to find the other variable.

Line up the terms and choose a variable to eliminate

Write each equation in the order x term, y term, equals sign, constant. If needed, multiply every term on both sides of one or both equations by a nonzero number. Then add the equations if the coefficients are opposites, or subtract if they are the same.

After one variable cancels, solve for the other. Substitute that result into an original equation and check the ordered pair in both equations.

Add when the coefficients are opposites

3x+4y=12-3x+2y=18

Adding the left sides cancels 3x and -3x. Add the right sides too, then divide by 6.

6y=12+18=30y=5

Substitute y=5 into the first equation and solve for x.

3x+4(5)=123x=-8x=-83

The solution is (-8/3,5). In the second equation, -3(-8/3)+2(5)=8+10=18, so it works there too.

Multiply first, then subtract

y=3x-4-x+2y=12

Rearrange the first equation to -3x+y=-4. Multiply it by 2 so the y terms will match. Then subtract the second equation from the new first equation.

-6x+2y=-8-x+2y=12
-6x-(-x)=-8-12-5x=-20x=4

Use y=3x-4 to get y=3(4)-4=8. The solution is (4,8), and the second equation checks because -4+2(8)=12.

Read the result if both variables cancel

If elimination gives a false equation such as 0=5, the two lines are parallel and there’s no solution. If it gives a true equation such as 0=0, both equations describe the same line and every point on that line is a solution.