Skip to main content

Systems of Equations

A single equation like 2x+3=11 2x + 3 = 11 pins down one unknown. But the real world rarely hands you one relationship at a time. A store owner knows the total number of items sold and the total revenue. A chemist knows the target concentration and the target volume. Each fact is an equation, and the unknowns must satisfy all of them at once. A system of equations is exactly that: two or more equations that share the same variables, where a solution must make every equation true simultaneously.

Learning to solve systems is one of the great payoffs of algebra, because it turns tangled word problems — "How much of each? At what price? When do they break even?" — into a mechanical, reliable procedure. This page teaches you the three core techniques, how to handle three variables at once, how to recognize when a system has no solution or infinitely many, and where these ideas come from.

Learning Objectives

  • Solve two-variable linear systems by graphing, substitution, and elimination, and choose the best method for a given system.
  • Extend elimination to three-variable systems and solve them step by step.
  • Classify a system as consistent (one solution), inconsistent (no solution), or dependent (infinitely many solutions).
  • Set up and solve real-world systems, including mixture and break-even problems.
  • Explain the historical origin of systematic elimination, from ancient China to Gauss.

Quick Answer

A system of equations is a set of equations sharing the same variables; its solution is the set of values that satisfies all of them at once. For two linear equations, the solution is the point where their lines intersect. Three standard methods find it: graphing (read off the intersection), substitution (solve one equation for a variable, plug into the other), and elimination (add or subtract scaled equations to cancel a variable). A system is consistent if it has at least one solution, inconsistent if the lines are parallel and never meet, and dependent if the equations describe the same line, giving infinitely many solutions. Elimination generalizes to any number of variables and is the basis of Gaussian elimination.

Where It Came From

Systems of equations are ancient, and the need was intensely practical: dividing harvests, pricing grain, and distributing resources fairly. The oldest surviving systematic treatment appears in the Chinese classic The Nine Chapters on the Mathematical Art (Jiuzhang Suanshu), compiled roughly around 200 BCE to 100 CE from even older material. Its eighth chapter, Fangcheng ("rectangular arrays"), poses problems like: three bundles of good grain, two of medium, and one of poor yield a known total measure — and several such conditions must hold together.

The Chinese mathematicians' insight was revolutionary. Instead of juggling the equations rhetorically, they laid the coefficients out as a rectangular array of numbers on a counting board and manipulated the columns by adding and subtracting multiples of one column from another until each unknown could be read off directly. This is, essentially, matrix elimination — invented nearly two thousand years before matrices were formally defined in Europe. The motivation was never abstract: it was the arithmetic of agriculture, taxation, and engineering.

The method was rediscovered and refined many times. In the 19th century Carl Friedrich Gauss used systematic elimination to solve the normal equations arising when he fit orbits to astronomical observations (famously predicting the location of the asteroid Ceres). His name became attached to the procedure — Gaussian elimination — even though the core idea had circulated for millennia. The lesson is that the technique earns its keep whenever many measured facts must be reconciled into a few unknown quantities.

Method 1: Graphing — Seeing the Solution

Every linear equation in two variables graphs as a straight line. A solution to a two-equation system is a point (x,y) (x, y) lying on both lines — their intersection. Graphing makes the meaning of a solution vivid, even if it is not always precise.

Consider the system:

y=2x1 y = 2x - 1 y=x+5 y = -x + 5

The first line has slope 2 2 and yy-intercept 1-1; the second has slope 1-1 and yy-intercept 5 5. Plotting both, they cross at a single point. To confirm it algebraically, set the two expressions for yy equal:

2x1=x+5 2x - 1 = -x + 5 3x=6    x=2 3x = 6 \implies x = 2

Then y=2(2)1=3 y = 2(2) - 1 = 3. The intersection is (2,3) (2, 3). Check in the second equation: 2+5=3-2 + 5 = 3. Correct.

Graphing's strength is intuition — you see whether lines meet once, never (parallel), or everywhere (identical). Its weakness is precision: a solution like (2.37,1.86) (2.37, -1.86) is hard to read off a hand-drawn graph, which is why the algebraic methods below matter.

Method 2: Substitution — One Variable at a Time

Substitution works beautifully when one equation is already solved for a variable, or is easy to rearrange. The plan: isolate one variable, substitute its expression into the other equation, solve the resulting single-variable equation, then back-substitute.

Solve:

3x+y=10 3x + y = 10 2x3y=8 2x - 3y = -8

The first equation gives yy cheaply: y=103x y = 10 - 3x. Substitute into the second:

2x3(103x)=8 2x - 3(10 - 3x) = -8 2x30+9x=8 2x - 30 + 9x = -8 11x=22    x=2 11x = 22 \implies x = 2

Back-substitute: y=103(2)=4 y = 10 - 3(2) = 4. Solution: (2,4) (2, 4). Check the second equation: 2(2)3(4)=412=8 2(2) - 3(4) = 4 - 12 = -8. Correct.

Substitution shines when a coefficient is 1 1 or 1-1; it can get messy with awkward fractions, in which case elimination is cleaner.

Method 3: Elimination — Cancel and Conquer

Elimination (also called the addition method) exploits a simple fact: you can add equal things to equal things. If you scale equations so that one variable has opposite coefficients, adding the equations makes that variable vanish.

Solve:

4x+3y=10 4x + 3y = 10 3x2y=7 3x - 2y = -7

To eliminate yy, make its coefficients 6 6 and 6-6. Multiply the first equation by 2 2 and the second by 3 3:

8x+6y=20 8x + 6y = 20 9x6y=21 9x - 6y = -21

Add them:

17x=1    x=117 17x = -1 \implies x = -\tfrac{1}{17}

Hmm — that is ugly, which usually signals a transcription slip. Let me use cleaner numbers to show the method reliably. Solve instead:

5x+2y=16 5x + 2y = 16 3x2y=8 3x - 2y = 8

The yy-coefficients are already opposites. Add directly:

8x=24    x=3 8x = 24 \implies x = 3

Substitute into the first: 5(3)+2y=16    2y=1    y=12 5(3) + 2y = 16 \implies 2y = 1 \implies y = \tfrac{1}{2}. Solution: (3,12) (3, \tfrac{1}{2}). Check the second: 3(3)2(12)=91=8 3(3) - 2(\tfrac{1}{2}) = 9 - 1 = 8. Correct.

Elimination is the most systematic method — it never requires dividing until the last step, it scales to many variables, and it is what computers use.

Three-Variable Systems

With three unknowns you need three equations, and the solution (when unique) is a single point (x,y,z) (x, y, z) where three planes meet. The strategy is to eliminate one variable to reduce the problem to a familiar two-variable system.

Solve:

x+y+z=6 x + y + z = 6 2xy+z=3 2x - y + z = 3 x+2yz=2 x + 2y - z = 2

Step 1 — eliminate zz. Subtract equation 1 from equation 2:

(2xy+z)(x+y+z)=36    x2y=3 (2x - y + z) - (x + y + z) = 3 - 6 \implies x - 2y = -3

Add equation 1 and equation 3 (the zz terms cancel):

(x+y+z)+(x+2yz)=6+2    2x+3y=8 (x + y + z) + (x + 2y - z) = 6 + 2 \implies 2x + 3y = 8

Step 2 — solve the two-variable system:

x2y=3 x - 2y = -3 2x+3y=8 2x + 3y = 8

From the first, x=2y3 x = 2y - 3. Substitute: 2(2y3)+3y=8    4y6+3y=8    7y=14    y=2 2(2y - 3) + 3y = 8 \implies 4y - 6 + 3y = 8 \implies 7y = 14 \implies y = 2. Then x=2(2)3=1 x = 2(2) - 3 = 1.

Step 3 — back-substitute into equation 1: 1+2+z=6    z=3 1 + 2 + z = 6 \implies z = 3. Solution: (1,2,3) (1, 2, 3).

Check equation 2: 2(1)2+3=3 2(1) - 2 + 3 = 3. Correct. Check equation 3: 1+2(2)3=2 1 + 2(2) - 3 = 2. Correct.

Consistent, Inconsistent, and Dependent Systems

Not every system has exactly one solution. Geometrically, two lines can meet once, never, or coincide.

  • Consistent and independent: lines intersect at one point → exactly one solution.
  • Inconsistent: parallel lines, same slope, different intercepts → no solution. Algebra collapses to a false statement like 0=5 0 = 5.
  • Dependent (consistent): the two equations are the same line → infinitely many solutions. Algebra collapses to a true statement like 0=0 0 = 0.

Inconsistent example. Try to solve x+2y=4 x + 2y = 4 and x+2y=9 x + 2y = 9 by subtracting: 0=5 0 = -5, which is impossible. No solution — the lines are parallel.

Dependent example. Solve x+2y=4 x + 2y = 4 and 2x+4y=8 2x + 4y = 8. The second is exactly twice the first. Subtracting twice the first from the second gives 0=0 0 = 0, always true. Every point on the line x+2y=4 x + 2y = 4 is a solution, so we write the solution set parametrically: let y=t y = t, then x=42t x = 4 - 2t.

Real-World Applications

Break-even analysis. A workshop's cost to produce xx handmade lamps is C=800+15x C = 800 + 15x (fixed plus per-unit), and revenue from selling them is R=35x R = 35x. Break-even is where cost equals revenue:

35x=800+15x    20x=800    x=40 35x = 800 + 15x \implies 20x = 800 \implies x = 40

At 40 40 lamps, both cost and revenue equal $1400. Below 40 the shop loses money; above 40 it profits. This is a system where one equation is cost, the other revenue, and the intersection is the break-even point.

Mixture problems. A pharmacist needs 100 100 mL of a 30% 30\% saline solution, mixing a 20% 20\% solution (xx mL) with a 50% 50\% solution (yy mL). Two facts give two equations — total volume and total salt:

x+y=100 x + y = 100 0.20x+0.50y=0.30(100)=30 0.20x + 0.50y = 0.30(100) = 30

From the first, x=100y x = 100 - y. Substitute: 0.20(100y)+0.50y=30    200.20y+0.50y=30    0.30y=10    y=33.3 0.20(100 - y) + 0.50y = 30 \implies 20 - 0.20y + 0.50y = 30 \implies 0.30y = 10 \implies y = 33.\overline{3}. So y33.3 y \approx 33.3 mL of the 50% 50\% solution and x66.7 x \approx 66.7 mL of the 20% 20\% solution.

Other domains: balancing chemical equations, computing electrical currents with Kirchhoff's laws, fitting supply-and-demand curves in economics, and traffic-flow modeling all reduce to solving systems.

Common Mistakes

Mistake 1: Solving each equation separately. Students sometimes solve equation 1 for its "answer" and equation 2 for its "answer" independently. Why it is wrong: a system's solution must satisfy all equations at once; a single equation in two variables has infinitely many solutions on its own. Correction: always combine the equations (substitute or eliminate) so both constraints act together.

Mistake 2: Forgetting to distribute the negative during elimination or substitution. When substituting y=103x y = 10 - 3x into 3y-3y, writing 31033x-3 \cdot 10 - 3 \cdot 3x instead of 3(103x)=30+9x-3(10 - 3x) = -30 + 9x flips a sign. Why it is wrong: the distributive law applies to every term inside the parentheses, including sign changes. Correction: wrap the substituted expression in brackets and distribute carefully.

Mistake 3: Misreading no-solution and infinite-solution cases. Getting 0=0 0 = 0 and declaring "no solution," or getting 0=7 0 = 7 and declaring "x=0x = 0." Why it is wrong: 0=0 0 = 0 is always true (infinitely many solutions, dependent), while 0=7 0 = 7 is never true (no solution, inconsistent). Correction: memorize that a true numeric identity means dependent, and a false one means inconsistent.

Comparison and Connections

The three methods solve the same problem but suit different situations.

MethodBest whenWatch out for
GraphingYou want intuition or an approximate answerImprecise for non-integer solutions
SubstitutionA variable has coefficient 1 1 or 1-1Messy fractions with awkward coefficients
EliminationCoefficients align neatly or system is largeMust scale both equations carefully

Elimination connects directly to matrices and Gaussian elimination: writing only the coefficients as an augmented array and row-reducing is elimination in compact form. Systems also relate to linear inequalities (regions instead of lines) and to determinants via Cramer's rule, an alternative solution formula. Contrast a system with a single quadratic equation: there you find where one curve meets the xx-axis, whereas a system finds where two graphs meet each other.

Practice Questions

Recall

State what it means for an ordered pair to be a solution of a system of two equations.

Answer: The pair makes both equations true simultaneously; graphically it lies on both lines.

Understanding

A system reduces to 0=4 0 = 4 after elimination. Classify it and explain.

Answer: Inconsistent — no solution. The false statement means the lines are parallel and never intersect.

Application

Solve by elimination: 2x+5y=1 2x + 5y = 1 3x5y=14 3x - 5y = 14

Guidance: Add the equations: 5x=15    x=3 5x = 15 \implies x = 3. Then 2(3)+5y=1    5y=5    y=1 2(3) + 5y = 1 \implies 5y = -5 \implies y = -1. Solution (3,1) (3, -1).

Analysis

A vendor sells adult tickets at $8 and child tickets at $5. She sells 200 200 tickets for $1360 total. How many of each? Set up and solve a system.

Guidance: Let aa = adult, cc = child. Then a+c=200 a + c = 200 and 8a+5c=1360 8a + 5c = 1360. Substitute c=200a c = 200 - a: 8a+5(200a)=1360    3a+1000=1360    a=120 8a + 5(200 - a) = 1360 \implies 3a + 1000 = 1360 \implies a = 120, so c=80 c = 80. Verify: 8(120)+5(80)=960+400=1360 8(120) + 5(80) = 960 + 400 = 1360. Correct.

FAQ

Which method should I use on a test? If a variable is already isolated or has coefficient 1 1, use substitution. Otherwise elimination is usually fastest and least error-prone. Graphing is best only when asked for a visual or an estimate.

Do I always need the same number of equations as variables? For a unique solution, generally yes — three variables need three independent equations. Fewer equations usually leave infinitely many solutions; more can create inconsistency or redundancy.

Can a system have exactly two solutions? Not a linear system — two lines meet zero, one, or infinitely many times, never exactly twice. Exactly two solutions can happen with nonlinear systems, such as a line crossing a parabola.

How do I know if I made an arithmetic error versus finding a real no-solution case? A genuine inconsistent system gives a clean false identity like 0=3 0 = 3. If you get something odd mid-calculation, recheck your scaling and sign distribution first before concluding no solution.

What's the point of three-variable systems if two-variable ones are easier? Many real problems have three or more unknowns — think of a budget split across three categories with three constraints. The elimination strategy scales, which is exactly why Gaussian elimination and matrices exist.

Quick Revision

  • A solution satisfies all equations at once; for two variables it is the intersection point.
  • Substitution: isolate a variable, plug in, solve, back-substitute.
  • Elimination: scale equations so one variable cancels when added.
  • Three variables: eliminate one variable twice to get a two-variable system, then back-substitute.
  • 0=0 0 = 0 → dependent (infinitely many); 0=k 0 = k (nonzero) → inconsistent (none); otherwise one solution.
  • Break-even: set cost = revenue. Mixture: one volume equation + one concentration equation.

Prerequisites

  • Linear inequalities and their solution regions
  • Matrices and Gaussian elimination (see Linear Algebra)

Next Topics