Homework · Free guide

Subtracting the Second Equation From the First: Solving Systems by Elimination

Direct answer

Subtracting the second equation from the first means subtracting left side from left side and right side from right side, term by term, so that matching coefficients cancel and one variable disappears. For 8x+3y=148x+3y=14 minus 4x+3y=84x+3y=8, the yy-terms cancel and the result is 4x=64x=6, leaving one variable to solve directly.

On this page
  1. The instruction, decoded
  2. Line by line: the subtraction, with the signs kept honest
  3. Interactive: subtract your own two equations
  4. When to subtract and when to add
  5. When the coefficients do not match: multiply first
  6. Worked 2x2 systems, start to finish
  7. Elimination vs substitution vs graphing: which to use on a test
  8. Sign errors that cost marks (and how to catch them)
  9. No solution and infinitely many: what elimination tells you
  10. Practice: ten systems with answers
  11. If the whole problem set is elimination

The instruction, decoded

A worksheet or a solved-answer page hands you that sentence — "subtract the second equation from the first" — without saying what it authorizes you to do. It means this: take the left side of the first equation minus the left side of the second, and the right side of the first minus the right side of the second, term by term. The goal is always the same: make one variable's combined coefficient hit zero.

Here's the exact pair currently sitting on Wyzant and Brainly answers: 8x+3y=148x+3y=14 and 4x+3y=84x+3y=8.

8x+3y&=14\\ -(4x+3y&=8)\\ \hline 4x+0y&=6 \end{aligned}$$ The $y$-terms cancel because both coefficients are $+3$. That leaves $4x=6$, so $x=1.5$. Substitute back into the first equation: $8(1.5)+3y=14 \rightarrow 12+3y=14 \rightarrow y=\dfrac23$. Check the second equation: $4(1.5)+3\left(\dfrac23\right)=6+2=8$ — it holds. This is exactly what Common Core standard HSA-REI.C.5 expects an Algebra 1 student to be able to do with a linear combination of two equations. ## Line by line: the subtraction, with the signs kept honest Most answers online state the rule and stop; the mechanics of *why* it's legal, and where it goes wrong, are the part worth slowing down for. ### Subtracting like terms only Subtracting equations from each other only ever combines matching terms: $x$-terms with $x$-terms, $y$-terms with $y$-terms, constants with constants. You never subtract an $x$-term from a $y$-term — each column of the stacked equations stays in its own lane, the same way subtracting like terms works in any algebra problem. ### Distributing the minus sign across the whole second equation The trap sits here. Subtracting the second equation from the first means distributing a minus sign across *every* term on both sides of that second equation, not just the first one you see. If the second equation carries a negative coefficient — say $-3y$ — then subtracting it means $4y-(-3y)=4y+3y=7y$, not $4y-3y$. Dropping that sign flip is the single most common way this technique goes wrong; the full worked case appears below under "a case that needs a sign flip." ### The result is still a true equation - why you are allowed to do this Subtracting equal quantities from both sides of a true equation always produces another true equation — that's the same rule that lets you add or subtract any number from both sides of a one-variable equation. Here, you're subtracting an entire equation (itself a claim about equal quantities) instead of a single number, which is why the result is still a valid, solvable equation. ## Interactive: subtract your own two equations ### Enter the coefficients Type in the six coefficients of a $2\times2$ system — $a_1, b_1, c_1$ for the first equation, $a_2, b_2, c_2$ for the second — and the stepper lines them up the way a textbook prints them, ready to subtract. ### Watch the sign on each term Each term's sign is tracked separately as the subtraction runs, so a coefficient that flips from negative to positive (or the reverse) is highlighted instead of silently corrected. ### See whether adding would have been the shorter route The stepper also states, in plain words, whether adding the two equations would have eliminated a variable in fewer moves than subtracting did. That add-or-subtract verdict is the one feature no static answer page provides.

Elimination stepper: enter a1, b1, c1, a2, b2, c2

Practice tool. The interactive version loads later; the worked example below is complete and needs no login.

Static preview

Interactive controls are not connected in this build. Use the worked example below.

Static example (what the tool shows before you enter your own system):

System: 8x+3y=148x+3y=14 and 4x+3y=84x+3y=8

Stacked subtraction:

8x+3y&=14\\ -(4x+3y&=8)\\ \hline 4x+0y&=6 \end{aligned}$$ **Eliminated variable:** $y$ (both coefficients were $+3$, so subtracting canceled it) **Verdict:** Subtracting was the shorter route here. Since both $y$-coefficients share the same sign and magnitude, adding would have produced $12x+6y=22$ instead — nothing cancels, and a scaling step would still be needed. Subtract when the target coefficients match in sign; add when they're opposite.
When to subtract vs. add
Coefficients on the target variableMove
Same sign, same magnitudeSubtract
Opposite signs, same magnitudeAdd

Same sign, same coefficient: subtract

When both equations carry the same coefficient with the same sign — like the +3y+3y and +3y+3y above — subtracting cancels that variable directly.

Opposite signs, same magnitude: add

When the coefficients are equal in size but opposite in sign — like +3+3 and 3-3 — adding is what cancels them; subtracting would double the term instead of removing it.

The one-sentence decision rule

If the coefficients you're targeting share a sign, subtract; if they don't, add — either move exists to force that variable's combined coefficient to zero.

Adding and subtracting algebraic equations side by side on the same system

Take 3x+2y=73x+2y=7 and 3x+y=1-3x+y=-1, which share the solution x=1, y=2x=1,\ y=2. Adding them: (3x+(3x))+(2y+y)=7+(1)3y=6y=2(3x+(-3x))+(2y+y)=7+(-1) \rightarrow 3y=6 \rightarrow y=2; then 3x+2(2)=7x=13x+2(2)=7 \rightarrow x=1 — solved in two lines. Subtracting them instead: (3x(3x))+(2yy)=7(1)6x+y=8(3x-(-3x))+(2y-y)=7-(-1) \rightarrow 6x+y=8 — nothing cancels, because the xx-coefficients were opposite in sign to begin with. Run both on the same system and the correct choice is obvious immediately.

When the coefficients do not match: multiply first

This is where most students actually stall, and it's the step the elimination method needs before subtraction (or addition) can do anything.

Scaling one equation

For 2x+y=72x+y=7 and x+3y=11x+3y=11, the xx-coefficients are 2 and 1 — not equal, so subtracting as-is does nothing useful. Scale the second equation by 2: 2x+6y=222x+6y=22. Now subtract the first: (2x2x)+(6yy)=2275y=15y=3(2x-2x)+(6y-y)=22-7 \rightarrow 5y=15 \rightarrow y=3. Back-substitute: 2x+3=7x=22x+3=7 \rightarrow x=2. Check: 2+3(3)=112+3(3)=11 — confirmed.

Scaling both (least common multiple of the coefficients)

For 3x+2y=183x+2y=18 and 5x3y=115x-3y=11, neither coefficient matches the other on either variable. Scale to the least common multiple of the yy-coefficients, 6: multiply the first equation by 3 (9x+6y=549x+6y=54) and the second by 2 (10x6y=2210x-6y=22). The yy-terms are now opposite in sign and equal in magnitude, so add: 19x=76x=419x=76 \rightarrow x=4. Back-substitute: 3(4)+2y=18y=33(4)+2y=18 \rightarrow y=3. Check: 5(4)3(3)=209=115(4)-3(3)=20-9=11 — confirmed.

A worked 3x + 2y / 5x - 3y system

That's the full worked 3x+2y=18, 5x3y=113x+2y=18,\ 5x-3y=11 system above: scale both equations to a common yy-coefficient of 6, then combine. The linear combination that results — 19x=7619x=76 — is a direct application of what mathematicians call Gaussian elimination, run by hand on a two-variable case. A circuit with two loop currents produces the same shape of system; see physics homework help for a worked example using Kirchhoff's laws instead of arbitrary coefficients.

Worked 2x2 systems, start to finish

Solving systems algebraically always ends the same way: one variable eliminated, the other found by back-substitution, and both checked in the original equations — not the simplified ones.

A clean subtraction case

5x+2y=165x+2y=16 and 5x3y=15x-3y=1. The xx-coefficients match exactly, so subtract:

5x+2y&=16\\ -(5x-3y&=1)\\ \hline 0x+5y&=15 \end{aligned}$$ $y=3$. Back-substitute: $5x+2(3)=16 \rightarrow 5x=10 \rightarrow x=2$. Check both: $5(2)+2(3)=16$ ✓ and $5(2)-3(3)=10-9=1$ ✓. ### A case that needs a sign flip $5x+4y=7$ and $5x-3y=21$. The $x$-coefficients match, so subtract — carefully, since the second equation's $y$-term is negative: $$\begin{aligned} 5x+4y&=7\\ -(5x-3y&=21)\\ \hline 0x+7y&=-14 \end{aligned}$$ Note the $y$-row: $4y-(-3y)=7y$, not $4y-3y$ — the sign flip is the whole trick. So $y=-2$. Back-substitute: $5x+4(-2)=7 \rightarrow 5x=15 \rightarrow x=3$. Check both: $5(3)+4(-2)=15-8=7$ ✓ and $5(3)-3(-2)=15+6=21$ ✓. ### A case that needs scaling $2x+3y=13$ and $4x-y=19$. Neither variable's coefficients match, so scale the second equation by $-3$ first: $-12x+3y=-57$. Now the $y$-coefficients match, so subtract: $$\begin{aligned} 2x+3y&=13\\ -(-12x+3y&=-57)\\ \hline 14x+0y&=70 \end{aligned}$$ $x=5$. Back-substitute: $2(5)+3y=13 \rightarrow 3y=3 \rightarrow y=1$. Check both: $2(5)+3(1)=13$ ✓ and $4(5)-1=19$ ✓. ### Back-substituting to get the second variable In every case above, elimination only finds one variable. Take that value straight back into either *original* equation — whichever has simpler numbers — and solve normally for the second variable, exactly as shown three times over. ### Checking the pair in both original equations The pair isn't confirmed until both original equations accept it, not just the one used for back-substitution. All three worked systems above check clean in both equations — that double check is what separates a finished answer from a guessed one. ## Elimination vs substitution vs graphing: which to use on a test
Choosing a method under time pressure
SituationBest method
Coefficients on one variable already match or scale easilyElimination
One equation already has a variable isolated (like x=y+4x=y+4)Substitution
You just need a rough visual check, not a graded answerGraphing

Pick elimination when coefficients line up

If a quick glance shows matching or easily-scaled coefficients, elimination is usually the fastest route on paper.

Pick substitution when a variable is already isolated

For x=y+4x=y+4 and x+y=10x+y=10, the substitution method is faster than elimination: substitute directly, (y+4)+y=102y=6y=3(y+4)+y=10 \rightarrow 2y=6 \rightarrow y=3, then x=7x=7.

Graphing: fine for a check, slow for a grade

For x+y=5x+y=5 and xy=1x-y=1, the graphing method shows two lines crossing at (3,2)(3,2) — a useful sanity check, but plotting two lines by hand is rarely faster than either algebraic method on a timed test. Finding where two lines cross is also the coordinate-geometry skill covered in geometry help.

Sign errors that cost marks (and how to catch them)

Four sign errors that cost marks
ErrorWhat it looks like on paperWrong result it producesHow to catch it
Forgetting to subtract the constantKeeps the first equation's constant unchanged instead of subtracting the second2y=112y=11 instead of 2y=42y=4Substitute the "solution" back — it fails one original equation
Subtracting only the left sideCancels the matching variable but leaves the other variable's coefficient untouched5x+2y=45x+2y=4 instead of 2y=42y=4The variable that should have vanished is still sitting in the result
Losing the minus on a negative coefficientWrites 4y3y4y-3y instead of 4y(3y)4y-(-3y)y=14y=-14 instead of y=2y=-2Re-check the sign of every term in the second equation before subtracting
Distributing the minus sign across only part of the equationFlips the sign on the variable terms but not the constant, or the reverseA result off by exactly twice the missed termRewrite the subtraction as adding the negative of every term, one at a time

Scroll horizontally to compare all columns.

Forgetting to subtract the constant

Using 5x+3y=115x+3y=11 and 5x+y=75x+y=7: subtracting correctly gives 2y=42y=4, so y=2y=2. Forgetting to subtract algebraic equations' constants correctly — leaving 2y=112y=11 — hands back y=5.5y=5.5, which fails the check against either original equation.

Subtracting only the left side

The same pair, subtracted incorrectly by canceling only the yy-terms and leaving the xx-terms untouched, produces 5x+2y=45x+2y=4 — a line, not a solved value, because a variable that should have vanished didn't.

Losing the minus on a negative coefficient

This is the sign-flip trap from the worked system above: 4y(3y)4y-(-3y) must become 7y7y, not yy. Losing that minus sign is the single most common way to subtract algebraic equations with variables incorrectly.

The 30-second check that catches all three

Substitute both values back into both original equations, not the simplified ones. If either fails, the error happened during the subtraction step, not the back-substitution — go back and re-check every sign in the second equation before touching anything else.

No solution and infinitely many: what elimination tells you

When both variables vanish and you get 0 = 5

x+2y=8x+2y=8 and x+2y=3x+2y=3. Subtracting: (xx)+(2y2y)=830=5(x-x)+(2y-2y)=8-3 \rightarrow 0=5 — a false statement. Both variables vanished and nothing survived to solve for, so this is an inconsistent system: no solution exists.

When both vanish and you get 0 = 0

x+2y=8x+2y=8 and 2x+4y=162x+4y=16. Scale the first equation by 2: 2x+4y=162x+4y=16. Subtracting: (2x2x)+(4y4y)=16160=0(2x-2x)+(4y-4y)=16-16 \rightarrow 0=0 — always true. This is a consistent, dependent system: the two equations describe the same line, so there are infinitely many solutions. A market's supply and demand curves are the more familiar version of a two-equation system; see accounting, finance and economics homework for that application, and statistics homework help for the least-squares systems behind a regression line.

Practice: ten systems with answers

Ten systems to solve by elimination (cover the right column and try each one first)
#SystemTypeAnswer
1x+y=10, xy=2x+y=10,\ x-y=2Clean subtractionx=6, y=4x=6,\ y=4
23x+y=9, 3xy=33x+y=9,\ 3x-y=3Clean subtractionx=2, y=3x=2,\ y=3
32x+3y=7, 2xy=12x+3y=7,\ 2x-y=-1Sign flipx=0.5, y=2x=0.5,\ y=2
4x+2y=8, 3x+2y=16x+2y=8,\ 3x+2y=16Clean subtractionx=4, y=2x=4,\ y=2
54x+y=15, x+y=64x+y=15,\ x+y=6Clean subtractionx=3, y=3x=3,\ y=3
62x+5y=11, 2x5y=92x+5y=11,\ 2x-5y=-9Needs addingx=0.5, y=2x=0.5,\ y=2
7x+y=4, 2x+2y=8x+y=4,\ 2x+2y=8DependentInfinitely many solutions
8x+y=3, x+y=7x+y=3,\ x+y=7InconsistentNo solution
93x2y=4, x+2y=83x-2y=4,\ x+2y=8Needs addingx=3, y=2.5x=3,\ y=2.5
102x+y=8, x+3y=92x+y=8,\ x+3y=9Needs scalingx=3, y=2x=3,\ y=2

Scroll horizontally to compare all columns.

If the whole problem set is elimination

Twenty systems, each one a fresh set of coefficients to check for signs and scaling, is close to ninety minutes of careful arithmetic — and one dropped sign on system 14 costs the same mark as skipping it outright. That's the point where a lot of students go looking to do my math homework instead of rechecking every sign by hand.

GradeDraft's math homework desk solves systems problem sets, from clean-subtraction items through the scaling and sign-flip cases above, with the elimination shown line by line the same way it's shown here, priced from $25 per problem after a quick look at the set.

If a single equation is the sticking point rather than a pair, start with what value makes a single equation true. Once x2x^2 shows up in one of the equations, see forms of quadratic equations. Students working the CPM curriculum should also see CPM Core Connections systems problems, which drills this exact elimination method in that textbook's own notation. Free lessons on CK-12 and Homework.Study.com walk through the same mechanics if you want more practice before checking your own work here.

Common questions about adding and subtracting equations

What is the result of subtracting the second equation from the first?

A new, simpler equation in which one variable's coefficient has been reduced to zero — the matching terms cancel, leaving a single-variable equation you can solve directly and then back-substitute.

When do you add equations and when do you subtract them?

Subtract when the coefficients on the variable you want to eliminate have the same sign; add when they have opposite signs and the same magnitude. Either move is aimed at the same goal: forcing that variable's combined coefficient to zero.

How do you subtract two equations?

Subtract the left side of the second equation from the left side of the first, and the right side of the second from the right side of the first, term by term, keeping every sign — including the ones on negative coefficients and constants.

Why does subtracting eliminate a variable?

Because subtracting equal coefficients from each other always produces zero. If both equations share the exact same coefficient on a variable, subtracting cancels that variable's term entirely, leaving one equation with only the other variable in it.

What if the coefficients do not match?

Scale one or both equations first — multiply every term in an equation by the same number — until the target variable's coefficients match in magnitude. Then subtract or add as usual, as shown in the "multiply first" section above.

Is elimination faster than substitution on a test?

Usually, when the coefficients already match or scale in one step. When a variable is already isolated — like x=y+4x=y+4 — substitution is typically faster, since elimination would need an unnecessary scaling step first.