Tutorials › Linear Algebra › Solving Two Equations by Elimination

Linear Systems and Solution Sets · Tutorial 14 of 1000

Solving Two Equations by Elimination

Use scaled addition or subtraction to eliminate one variable, solve for the other, and check the pair in the original equations.

Beginner 10 min read

What You'll Learn

  • Choose a variable and identify its coefficients in both equations.
  • Scale equations so one variable has opposite coefficients.
  • Justify why adding or subtracting equations preserves solutions.
  • Recover the remaining variable by substituting into an original equation.
  • Interpret a contradiction or an identity produced by elimination.
  • Verify a proposed solution in both original equations.

The Idea Behind Elimination

In a system of two linear equations, each equation imposes a condition on the same pair of variables. Substitution solves one equation for a variable and uses that expression in the other. Elimination takes a different route: we add or subtract equations, sometimes after scaling them, so the terms involving one variable cancel. The resulting equation has only one variable, which can then be solved directly.

Throughout, let \(x\) and \(y\) be real variables, in that order. A solution to a system is an ordered pair \((x,y)\) that makes both equations true. For example, \(2x+y=7\) and \(x-y=2\) form a system; a value of \(x\) or \(y\) by itself is not a solution to the system.

Definition: In the elimination method, we combine equations—after multiplying one or both by suitable nonzero numbers—so that the coefficients of one variable add to zero. The resulting equation contains at most the other variable.

The cancellation is the key step. If the \(y\)-terms are \(3y\) and \(-3y\), adding the equations removes \(y\). If the terms are \(4x\) and \(4x\), subtracting one equation from the other removes \(x\). When the coefficients do not already match in this way, scale an equation first. Every operation should be applied to a whole equation, including its right-hand side.

Why Combining Equations Is Valid

Elimination is useful only if it keeps the original solution pairs. Multiplying an equation by a nonzero number is reversible: divide by that number to recover the original equation. Adding a multiple of one equation to another is reversible too: subtract the same multiple to undo the addition. These facts explain why elimination can simplify a system without losing its solutions.

Theorem: Multiplying an equation by a nonzero real number, or replacing one equation by itself plus a multiple of the other equation, preserves the set of solution pairs of a two-equation system.

Proof. Suppose the equations are \(E_1\) and \(E_2\), and a pair \((x,y)\) satisfies both. If \(E_1\) is multiplied by a nonzero number \(k\), the resulting equality still holds, because both sides of a true equality can be multiplied by \(k\). Conversely, if the scaled equation holds, division by \(k\ne0\) gives \(E_1\). Thus scaling preserves exactly the same solution pairs. Now replace \(E_2\) by \(E_2+cE_1\), where \(c\) is any real number. A pair satisfying the two original equations satisfies this new equation by addition. Conversely, if it satisfies \(E_1\) and \(E_2+cE_1\), subtracting \(cE_1\) from the new equation gives \(E_2\). So it satisfies the original pair of equations as well. In either operation, the solution pairs before and after are the same. \(\square\)

This justification also shows why multiplying an equation by zero is not an allowed scaling step. It would turn any equation into \(0=0\), which cannot in general be reversed to recover the original condition.

A Reliable Elimination Procedure

1
Choose a variable to remove.
Compare its two coefficients. Prefer coefficients that already add to zero or are easy to make opposites.
2
Scale if needed.
Multiply a whole equation by a nonzero number so that the chosen coefficients are opposites.
3
Add the equations.
Write out the addition so the cancellation and the new one-variable equation are visible.
4
Solve and substitute back.
Find the remaining variable, then use an original equation to find the eliminated variable.
5
Check both original equations.
Substitute the ordered pair into each equation, not just into the equation produced by elimination.

For instance, to cancel \(y\) from equations with \(y\)-coefficients \(b_1\) and \(b_2\), one can scale the equations to make these coefficients opposites, provided the coefficients are both nonzero. The same idea works for \(x\). If one coefficient is already zero, that variable is absent from that equation, so it may be simpler to eliminate the other variable instead. Always check the coefficients before choosing the operation.

Worked Example: Coefficients That Already Cancel

Solve the system \(2x+y=7\), \(x-y=2\).

The \(y\)-coefficients are \(1\) and \(-1\), so add the equations. The \(y\)-terms cancel, and the right-hand sides must be added as well:

$$ \begin{aligned} (2x+y)+(x-y)&=7+2,\\ 3x&=9,\\ x&=3. \end{aligned} $$

Substitute \(x=3\) into the original equation \(x-y=2\):

$$ 3-y=2,\qquad -y=-1,\qquad y=1. $$

The candidate solution is \((3,1)\). Check: in the first equation, \(2(3)+1=6+1=7\); in the second, \(3-1=2\). Both original equations hold, so the solution is \((3,1)\).

Worked Example: Scaling to Make Opposite Coefficients

Solve the system \(3x+2y=8\), \(5x-3y=7\).

The \(y\)-coefficients \(2\) and \(-3\) are not opposites. Multiply the first equation by \(3\) and the second by \(2\). These are nonzero scalings, so they preserve the solutions:

$$ \begin{aligned} 9x+6y&=24,\\ 10x-6y&=14. \end{aligned} $$

Add the scaled equations. The \(y\)-terms cancel:

$$ 19x=38,\qquad x=2. $$

Substitute \(x=2\) into the original first equation:

$$ 3(2)+2y=8,\qquad 6+2y=8,\qquad 2y=2,\qquad y=1. $$

The candidate is \((2,1)\). Check: \(3(2)+2(1)=6+2=8\), and \(5(2)-3(1)=10-3=7\). It satisfies both original equations.

Worked Example: Subtracting After Scaling

Solve the system \(4x-3y=1\), \(2x+5y=7\).

To cancel \(x\), multiply the second equation by \(2\), giving \(4x+10y=14\). Subtract the first equation from this scaled equation. Subtract every term on the left and the right:

$$ \begin{aligned} (4x+10y)-(4x-3y)&=14-1,\\ 13y&=13,\\ y&=1. \end{aligned} $$

Use the original second equation to find \(x\):

$$ 2x+5(1)=7,\qquad 2x+5=7,\qquad 2x=2,\qquad x=1. $$

The candidate is \((1,1)\). Check: \(4(1)-3(1)=4-3=1\), and \(2(1)+5(1)=2+5=7\). Both original equations hold.

What the Eliminated Equation Tells You

Sometimes combining equations does not produce a nonzero coefficient on the remaining variable. Two important outcomes are \(0=0\) and a false equality such as \(0=1\). They have different meanings, which can be read directly from the definition of a solution.

Proposition: If a valid elimination step produces a false numerical equality, the original system has no solution. If it produces \(0=0\), that resulting equation imposes no condition on the variables; the other equation must still be considered.

Proof. The elimination step preserves the solution pairs by the theorem above. If it produces a false equality such as \(0=1\), no values of \(x\) and \(y\) can satisfy that equality, since its two sides are unequal. Therefore no pair satisfies the transformed system, and preservation of solutions means no pair satisfies the original system. If it produces \(0=0\), that equality is true for every pair, so it rules out no pairs and selects none by itself. The other equation remains a condition on any solution; consequently \(0=0\) alone does not determine a solution pair. \(\square\)

Worked Example: Elimination Produces a Contradiction

Consider \(x+y=2\) and \(2x+2y=5\). Multiply the first equation by \(2\) and subtract it from the second:

$$ \begin{aligned} (2x+2y)-(2x+2y)&=5-4,\\ 0&=1. \end{aligned} $$

The equation \(0=1\) is false, so there is no pair that satisfies both equations. As a direct check on the reasoning, any pair satisfying \(x+y=2\) would have \(2x+2y=4\), not \(5\). The contradiction is a consequence of the original system, not an arithmetic mistake in solving for a variable.

Common Mistakes and a Careful Check

Do not cancel terms while forgetting to scale the right-hand side. A common incorrect step in the system \(3x+2y=8\), \(5x-3y=7\) is to multiply the first equation by \(3\) but write \(9x+6y=8\). That is not the result of multiplying the whole equation by \(3\): the right-hand side must also be multiplied. The correct equation is \(9x+6y=24\). Keeping the equality balanced is what makes the step reversible and valid.

Do not stop after finding one variable. In the first worked example, \(x=3\) is not the solution pair; the system asks for values of both \(x\) and \(y\). Substitution into an original equation gives \(y=1\). Then checking both original equations confirms that the pair works.

Check signs in subtraction. In the third example, subtracting \(4x-3y\) from \(4x+10y\) gives \(4x+10y-4x+3y=13y\). The sign of the term \(-3y\) changes because the entire expression is subtracted. Writing the subtraction before simplifying helps prevent a sign error.

A dependable solution therefore has three visible parts: a valid cancellation, a calculation of both variable values, and substitution of the resulting pair into both original equations. Elimination is not complete merely because an equation with one variable has been obtained; the final check is what confirms the pair satisfies the original constraints.

Check Your Understanding

For each system, show the cancellation and verify any proposed pair in the original equations.

  1. Solve \(x+2y=8\), \(x-2y=0\) by eliminating \(y\).
  2. Solve \(2x+3y=7\), \(4x-y=5\) by choosing a variable to eliminate.
  3. In \(3x-y=4\), \(6x-2y=8\), what equation results if you multiply the first equation by \(2\) and subtract it from the second? What does that result tell you by itself?
  4. Eliminate a variable from \(x+y=3\), \(2x+2y=8\). Explain why the resulting equation prevents a solution.
  5. Identify and correct the error: multiplying \(2x-y=4\) by \(3\) gives \(6x-3y=4\).

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon