Eliminating One Variable from a Two-Equation System

Elimination combines equations to remove terms while preserving the solution set under suitable operations.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace one system
  2. Consider the numerical pivot
  3. Write the linear combination that removes one unknown
  4. Inspect the pivot before dividing

Trace one system

For \(x+y=5\) and \(2x+y=8\), subtract the first equation from the second to obtain \(x=3\). Back substitution gives \(y=2\). Check both equations using their residuals.

Consider the numerical pivot

In floating point, dividing by a very small coefficient can magnify some errors. Larger systems commonly use a pivot rule. See partial pivoting.[1][2]

Write the linear combination that removes one unknown

For \(x+2y=8\) and \(3x+y=9\), subtract the second equation from three times the first. This gives \(5y=15\), so \(y=3\) and \(x=2\). Substitute both to verify the solution. See linear-system residuals.

3×equation one: 3x+6y=24
Subtract equation two: 5y=15
y=3, x=2
Verify: 2+6=8 and 6+3=9

Inspect the pivot before dividing

Parallel equations can give zero times the remaining variable, with either consistency or contradiction depending on the right side. Near-zero pivots can make computations sensitive. Test a uniquely solvable and a dependent pair.

References

  1. Tobin A. Driscoll and Richard J. Braun, Fundamentals of Numerical Computation ↩
  2. Nicholas J. Higham, Accuracy and Stability of Numerical Algorithms ↩