Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Solve Word Problems with Linear Systems

Many problems hide a linear system: several unknown amounts, and several conditions that each add them up in a fixed way. Name the unknowns, write one linear equation per condition, and let elimination do the rest.

Recognize the problem

Trigger words: how much of each, mixture, total, flow into and out of, junction, balance the equation, passes through the points. Several unknown quantities are tied together by conditions that are sums of multiples of them, with no products or powers of the unknowns.

Set it up

  1. 1. UnknownsGive each unknown quantity its own letter, with units: litres of each solution, cars per hour on each street, molecules of each compound, coefficients of a polynomial.
  2. 2. EquationsWrite one equation per condition: per total, per junction (inflow equals outflow), per chemical element (atoms on the left equal atoms on the right), per given point.
  3. 3. Standard formMove every unknown to the left side and every number to the right, in the same order of unknowns in every equation.
  4. 4. MatrixWrite the augmented matrix. Count equations and unknowns: fewer independent equations than unknowns means free variables.
  5. 5. ConstraintsNote what the answer must satisfy: amounts not negative, flows within street capacity, whole numbers of molecules.
→Now solve it: How to solve a system by Gaussian eliminationRow-reduce the augmented matrix by Gaussian elimination. If a free variable remains, write the parametric solution and use the constraints to pick or limit it.
Interpret the result. Translate each unknown back into words with its units. With a free parameter, say which values are allowed (for example t≥0t \geq 0 for a flow) or pick the one the question wants (the smallest whole numbers in a chemical equation). Put the answer back into the original wording to check every condition.

Worked examples

Example 1 · a mixture

2 unknowns
mix 10%10\% and 30%30\% acid to get 2020 L of 25%25\% acid
xx, yy litres of each
x+y=20, 0.1x+0.3y=0.25⋅20=5x + y = 20,\ 0.1x + 0.3y = 0.25 \cdot 20 = 5
volume, then pure acid
R2−0.1R1R_2 - 0.1R_1: 0.2y=30.2y = 3
eliminate xx
y=15y = 15 L of 30%30\%, x=5x = 5 L of 10%10\%

Example 2 · a parabola through three points

interpolation
y=ax2+bx+cy = ax^2 + bx + c through (1,2),(2,3),(3,6)(1, 2), (2, 3), (3, 6)
one equation per point
a+b+c=2, 4a+2b+c=3, 9a+3b+c=6a + b + c = 2,\ 4a + 2b + c = 3,\ 9a + 3b + c = 6
unknowns a,b,ca, b, c
subtract in pairs: 3a+b=1, 5a+b=33a + b = 1,\ 5a + b = 3
cc eliminated
a=1, b=−2, c=3a = 1,\ b = -2,\ c = 3: y=x2−2x+3y = x^2 - 2x + 3
check (3,6)(3, 6): 9−6+39 - 6 + 3

Example 3 · traffic around a block

network flow
loop A→B→C→D→AA \to B \to C \to D \to A, cars/h: 400400 in at AA, 300300 out at BB, 200200 in at CC, 300300 out at DD
x1,…,x4x_1, \dots, x_4 on the four streets
x1−x4=400, x1−x2=300, x2−x3=−200, x3−x4=300x_1 - x_4 = 400,\ x_1 - x_2 = 300,\ x_2 - x_3 = -200,\ x_3 - x_4 = 300
inflow equals outflow at A, B, C, D
reduction leaves a zero row; x4=tx_4 = t is free
one condition is redundant
x1=400+t, x2=100+t, x3=300+t, x4=t, t≥0x_1 = 400 + t,\ x_2 = 100 + t,\ x_3 = 300 + t,\ x_4 = t,\ t \geq 0
flows cannot be negative

Example 4 · balancing a chemical equation

homogeneous
a C3H8+b O2→c CO2+d H2Oa\,\text{C}_3\text{H}_8 + b\,\text{O}_2 \to c\,\text{CO}_2 + d\,\text{H}_2\text{O}
one unknown per compound
C: 3a=c3a = c, H: 8a=2d8a = 2d, O: 2b=2c+d2b = 2c + d
atoms balance per element
a=ta = t: c=3t, d=4t, b=5tc = 3t,\ d = 4t,\ b = 5t
3 equations, 4 unknowns
t=1t = 1: C3H8+5 O2→3 CO2+4 H2O\text{C}_3\text{H}_8 + 5\,\text{O}_2 \to 3\,\text{CO}_2 + 4\,\text{H}_2\text{O}
smallest whole numbers
Solve your own setup in the linear systems calculator.

See it happen

Each condition in the story removes one degree of freedom from the unknowns. With as many independent conditions as unknowns the answer is pinned to one point. A network or a chemical equation usually has one condition fewer than it seems, because the last junction or element is implied by the others, so a free parameter survives and the real-world constraints decide its value. The linear system solutions visualizer shows the three possible outcomes.

Common mistakes

Mixing percentages and amounts

✗ 10x+30y=2510x + 30y = 25
✓ equate amounts of pure acid: 0.1x+0.3y=0.25⋅200.1x + 0.3y = 0.25 \cdot 20

Inflow and outflow on the wrong sides

✗ at AA: x1+x4=400x_1 + x_4 = 400
✓ in =400+x4= 400 + x_4, out =x1= x_1, so x1−x4=400x_1 - x_4 = 400

Stopping at a fractional chemical answer

✗ choosing d=1d = 1 and answering a=14, b=54, c=34a = \frac{1}{4},\ b = \frac{5}{4},\ c = \frac{3}{4}
✓ multiply through by 44: a=1, b=5, c=3, d=4a = 1,\ b = 5,\ c = 3,\ d = 4

Too few points for the degree

✗ a unique parabola through two points
✓ a degree-nn polynomial needs n+1n + 1 points with different xx values
Different xx values make the coefficient determinant nonzero (Vandermonde determinant).