To solve a system of equations, find the values of the unknowns that make every equation true at the same time. The substitution method solves one equation for a variable and plugs that expression into the other equation; the elimination method adds or subtracts the equations, after multiplying them if needed, so that one variable cancels. Either way you end up with a single equation in one unknown, which you already know how to solve. After this lesson you will be able to use both methods, read a solution off a graph, recognize systems with no solution or infinitely many solutions, set up word problems, and handle a 3×3 system or a line meeting a parabola. In the UK the same topic is called simultaneous equations, and the methods are identical.
What is a system of linear equations?
A system of equations is a set of two or more equations that share the same unknowns and have to hold together. In Algebra 1 the standard case is two linear equations in two unknowns, written one above the other and joined by a brace:
On its own, the first equation has infinitely many solutions, such as \((1, 6)\), \((3, 2)\) and \((4, 0)\). The second equation works like a filter: only the pairs that also satisfy \(x - y = 1\) survive.
How do you check a solution?
Plug the pair into each original equation. For \((3, 2)\) you get \(2 \cdot 3 + 2 = 8\) and \(3 - 2 = 1\). Both statements are true, so \((3, 2)\) is a solution. The pair \((1, 6)\) passes the first test, because \(2 \cdot 1 + 6 = 8\), but fails the second, because \(1 - 6 = -5 \neq 1\). Passing one equation is not enough; a solution must pass all of them.
Always check in the original equations, not in a rearranged version that may already contain your mistake.
The graphing method
Every linear equation in two unknowns describes a straight line: the set of all points whose coordinates satisfy it. A solution of the system has to lie on both lines at once, so it is their intersection point. To solve by graphing, rewrite each equation in slope-intercept form \(y = mx + b\), draw both lines and read off where they cross.
For our system, \(2x + y = 8\) becomes \(y = -2x + 8\), and \(x - y = 1\) becomes \(y = x - 1\). The lines meet at \((3, 2)\).
Graphing builds intuition and shows at a glance how many solutions there are, but it is only as precise as your drawing. If the lines cross at \(\left(\tfrac{13}{7}, \tfrac{5}{7}\right)\), as \(y = 2x - 3\) and \(y = -5x + 10\) do, no sketch will reveal those fractions. For exact answers you need algebra: substitution or elimination.
How does the substitution method work?
Substitution turns two equations into one by replacing a variable with an expression equal to it. It is the natural choice when a variable is already isolated, as in \(y = 4x - 7\), or has coefficient 1 or \(-1\).
- Solve one equation for one variable. Pick a variable with coefficient 1 or \(-1\) if there is one.
- Substitute that expression into the other equation. You now have one equation in one unknown.
- Solve that equation.
- Plug the value back into the expression from step 1 to get the second variable.
- Check the pair in both original equations.
Here is the method on the system
In the first equation \(x\) has coefficient 1, so solve for it: \(x = 2y + 1\). Now replace \(x\) in the second equation with this expression, in parentheses: \(3(2y + 1) + 4y = 23\). Expand and collect like terms: \(6y + 3 + 4y = 23\), so \(10y = 20\) and \(y = 2\). Back-substitute: \(x = 2 \cdot 2 + 1 = 5\). Finally check: \(5 - 2 \cdot 2 = 1\) and \(3 \cdot 5 + 4 \cdot 2 = 15 + 8 = 23\). Both are true, so the solution is \((5, 2)\).
Why is this allowed? For every solution of the system, \(x\) and \(2y + 1\) are the same number, so swapping one for the other inside the second equation cannot change which pairs work.
How does the elimination method work?
Elimination (also called the addition method or the linear combination method) rests on a simple fact: if \(A = B\) and \(C = D\), then \(A + C = B + D\). If you first arrange for one variable to have opposite coefficients, such as \(+6y\) and \(-6y\), adding the equations makes that variable disappear.
- Write both equations in standard form \(ax + by = c\), with the variables lined up in columns.
- Choose the variable to eliminate. Multiply one or both equations by suitable numbers so that its coefficients become opposites.
- Add the equations. One variable cancels.
- Solve for the remaining variable.
- Substitute that value into either original equation to find the other variable, then check.
Take the system
Nothing cancels yet. The y-coefficients are 2 and \(-3\), and their least common multiple is 6, so multiply the first equation by 3 and the second by 2:
Add the equations: the y-terms cancel and \(19x = 95\), so \(x = 5\). Substitute into the first original equation: \(3 \cdot 5 + 2y = 7\), so \(2y = -8\) and \(y = -4\). Check in the second one: \(5 \cdot 5 - 3 \cdot (-4) = 25 + 12 = 37\). The solution is \((5, -4)\).
Eliminating \(x\) instead (multiply by 5 and by \(-3\)) gives \(19y = -76\), the same \(y = -4\); remove whichever variable needs smaller multipliers.
If a variable already has equal coefficients, such as \(4x\) in both equations, subtract the equations instead (or multiply one by \(-1\) and add).
Substitution or elimination: which should you use?
- Use substitution when a variable is already isolated, like \(y = 3x - 2\), or has coefficient 1 or \(-1\).
- Use elimination when all the coefficients are larger than 1, or when one variable already has equal or opposite coefficients in the two equations.
- Use graphing to estimate, to see how many solutions there are, or when the question asks for a graph.
- In word problems, a "how many in total" equation such as \(a + b = 40\) makes substitution quick: \(a = 40 - b\).
How many solutions can a system of equations have?
Two lines in a plane can cross once, never meet, or lie on top of each other. That is why a system of two linear equations has exactly one solution, no solution, or infinitely many solutions, and never exactly two or three.
One solution: the lines intersect
Lines with different slopes always cross in exactly one point. Elimination ends with a single value such as \(x = 5\). Textbooks call such a system consistent and independent.
No solution: parallel lines
Look at the system
Multiply the first equation by 2 to get \(4x - 2y = 6\), then subtract the second equation. Both variables vanish and you are left with \(0 = 4\), a false statement. In slope-intercept form the equations are \(y = 2x - 3\) and \(y = 2x - 1\): the same slope 2 but different y-intercepts, so the lines are parallel. Such a system is called inconsistent.
Infinitely many solutions: the same line
Now take
The second equation is just the first one multiplied by 2. Elimination (twice the first minus the second) gives \(0 = 0\), which says nothing new. Both equations describe the line \(y = 2 - \frac{x}{3}\), and every point on it is a solution: \((0, 2)\), \((3, 1)\), \((6, 0)\), \((-3, 3)\) and so on. Write the answer as "all pairs with \(x + 3y = 6\)" or as \((6 - 3t,\ t)\) for any real \(t\). This system is consistent and dependent.
How to spot each case before you solve
For a system \(a_1x + b_1y = c_1\), \(a_2x + b_2y = c_2\), compare the coefficients:
- If \(a_1b_2 - a_2b_1 \neq 0\), the x- and y-coefficients are not proportional, and there is exactly one solution.
- If \(a_1b_2 - a_2b_1 = 0\) but the constants do not follow the same ratio, for example \(\frac{a_1}{a_2} = \frac{b_1}{b_2} \neq \frac{c_1}{c_2}\), there is no solution.
- If all three ratios are equal, \(\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}\), the equations are multiples of each other and there are infinitely many solutions.
The ratios need nonzero denominators; the cross-product test \(a_1b_2 - a_2b_1\) always works. For the parallel lines above, \(2 \cdot (-2) - 4 \cdot (-1) = 0\) and \(\frac{2}{4} = \frac{-1}{-2} = \frac{1}{2}\), but \(\frac{3}{2} \neq \frac{1}{2}\), so there is no solution. With slopes: different slopes, one solution; same slope and different intercepts, none; same slope and intercept, infinitely many.
Systems of equations examples, step by step
The first four examples practice the two methods and the three cases. Examples 5 to 8 are word problems of the kind seen on Algebra 1 tests, the SAT and GCSE papers.
Example 1: Substitution when y is already isolated
Solve the system
Solution. The first equation already gives \(y\), so substitute it into the second: \(4x - 3(2x + 3) = -13\). Expanding gives \(4x - 6x - 9 = -13\), so \(-2x = -4\) and \(x = 2\). Then \(y = 2 \cdot 2 + 3 = 7\). Check in the second equation: \(4 \cdot 2 - 3 \cdot 7 = 8 - 21 = -13\). Correct.
Answer: \((2, 7)\).
Example 2: Elimination by subtracting
Solve the system
Solution. Multiply the second equation by 2 so that both equations contain \(4x\): \(4x + 10y = 24\). Subtract the first equation from this one, term by term: \((4x + 10y) - (4x + 3y) = 24 - 10\), so \(7y = 14\) and \(y = 2\). Substitute into the second original equation: \(2x + 5 \cdot 2 = 12\), so \(2x = 2\) and \(x = 1\). Check in the first: \(4 \cdot 1 + 3 \cdot 2 = 10\). Correct.
Answer: \((1, 2)\).
Example 3: A system with fractions
Solve the system
Solution. Clear the fractions first. Multiply the first equation by 6, the least common denominator of 2 and 3: \(3x + 2y = 24\). Multiply the second by 12: \(3x - 2y = 0\). The y-coefficients are already opposites, so add: \(6x = 24\) and \(x = 4\). From \(3 \cdot 4 + 2y = 24\) you get \(2y = 12\) and \(y = 6\). Check in the original equations: \(\frac{4}{2} + \frac{6}{3} = 2 + 2 = 4\) and \(\frac{4}{4} - \frac{6}{6} = 1 - 1 = 0\). Correct.
Answer: \((4, 6)\).
Clear decimals the same way: \(0.3x + 0.25y = 2\) times 100 is \(30x + 25y = 200\).
Example 4: One solution, no solution or infinitely many?
Decide how many solutions each system has, and solve it if the solution is unique.
- (a) \(6x - 4y = 10\) and \(9x - 6y = 15\)
- (b) \(6x - 4y = 10\) and \(9x - 6y = 12\)
- (c) \(6x - 4y = 10\) and \(9x + 6y = 3\)
Solution. (a) The ratios are \(\frac{6}{9} = \frac{2}{3}\), \(\frac{-4}{-6} = \frac{2}{3}\) and \(\frac{10}{15} = \frac{2}{3}\). All equal: both equations simplify to \(3x - 2y = 5\). Infinitely many solutions.
(b) The coefficient ratios are still \(\frac{2}{3}\), but \(\frac{10}{12} = \frac{5}{6}\). Simplified: \(3x - 2y = 5\) and \(3x - 2y = 4\), a contradiction. No solution.
(c) Here \(a_1b_2 - a_2b_1 = 6 \cdot 6 - 9 \cdot (-4) = 36 + 36 = 72 \neq 0\), so there is exactly one solution. Multiply the first equation by 3 and the second by 2: \(18x - 12y = 30\) and \(18x + 12y = 6\). Adding gives \(36x = 36\), so \(x = 1\). Then \(6 - 4y = 10\), so \(-4y = 4\) and \(y = -1\). Check: \(9 \cdot 1 + 6 \cdot (-1) = 3\). Correct.
Answer: (a) infinitely many solutions, (b) no solution, (c) exactly one solution, \((1, -1)\).
How to set up a word problem as a system
Most word-problem mistakes happen while writing the equations. A routine helps:
- Name the unknowns with letters that remind you what they stand for, and say what units they are in: "let \(a\) be the number of adult tickets".
- Find two independent facts. Usually one counts things and the other measures them (cost, acid, value, distance).
- Write one equation per fact, with matching units.
- Solve the system with whichever method is quicker.
- Answer the question actually asked, with units, and check that it makes sense: whole tickets, positive amounts, realistic speeds.
Example 5: Ticket sales
A school play sold 220 tickets and took in 1,460 dollars. An adult ticket costs 9 dollars and a student ticket costs 5 dollars. How many tickets of each kind were sold?
Solution. Let \(a\) be the number of adult tickets and \(s\) the number of student tickets. Counting tickets gives \(a + s = 220\); counting money gives \(9a + 5s = 1460\). From the first equation \(s = 220 - a\). Substitute: \(9a + 5(220 - a) = 1460\), so \(9a + 1100 - 5a = 1460\), which gives \(4a = 360\) and \(a = 90\). Then \(s = 220 - 90 = 130\). Check: \(9 \cdot 90 + 5 \cdot 130 = 810 + 650 = 1460\). Correct.
Quick intuition: 220 student tickets would bring \(5 \cdot 220 = 1100\) dollars, and each adult ticket adds 4 dollars more, so the extra 360 dollars mean \(360 \div 4 = 90\) adults.
Answer: 90 adult tickets and 130 student tickets.
Example 6: A mixture problem
A lab technician needs 20 liters of a 25% acid solution. She has a 10% solution and a 35% solution. How many liters of each should she mix?
Solution. Let \(x\) be the liters of the 10% solution and \(y\) the liters of the 35% solution. The volumes add up: \(x + y = 20\). So does the pure acid: \(0.10x + 0.35y = 0.25 \cdot 20 = 5\). Multiply the acid equation by 20 to clear the decimals: \(2x + 7y = 100\). Substitute \(x = 20 - y\): \(2(20 - y) + 7y = 100\), so \(40 + 5y = 100\), \(5y = 60\) and \(y = 12\). Then \(x = 8\). Check the acid: \(0.10 \cdot 8 + 0.35 \cdot 12 = 0.8 + 4.2 = 5\) liters. Correct.
If you are unsure how "25% of 20 liters" turns into 5 liters, see the lesson on calculating percentages.
Answer: 8 liters of the 10% solution and 12 liters of the 35% solution.
Example 7: A coin problem
A jar contains only dimes (10 cents) and quarters (25 cents): 40 coins worth 6.55 dollars in total. How many of each coin are there?
Solution. Work in cents so that every number is whole: 6.55 dollars is 655 cents. Let \(d\) be the number of dimes and \(q\) the number of quarters. Then \(d + q = 40\) and \(10d + 25q = 655\). Substitute \(d = 40 - q\): \(10(40 - q) + 25q = 655\), so \(400 + 15q = 655\), \(15q = 255\) and \(q = 17\). Then \(d = 23\). Check: \(10 \cdot 23 + 25 \cdot 17 = 230 + 425 = 655\). Correct.
Answer: 23 dimes and 17 quarters.
Example 8: A boat with and against the current
A motorboat travels 48 km upstream in 4 hours. The return trip of 48 km downstream takes 3 hours. Assuming both speeds stay constant, find the speed of the boat in still water and the speed of the current.
Solution. Let \(b\) be the boat's speed in still water and \(c\) the speed of the current, both in km/h. Upstream the current slows the boat, so its speed is \(b - c = 48 \div 4 = 12\). Downstream the current helps, so \(b + c = 48 \div 3 = 16\). The c-coefficients are already opposites, so add the equations: \(2b = 28\) and \(b = 14\). Then \(c = 16 - 14 = 2\). Check: \(14 - 2 = 12\) and \(14 + 2 = 16\). Correct.
Answer: the boat travels at 14 km/h in still water and the current flows at 2 km/h.
How do you solve a 3×3 system or a linear–quadratic system?
Both methods carry over to larger systems and to systems with a quadratic equation.
Three equations in three unknowns
A linear equation in \(x\), \(y\) and \(z\) describes a plane in space, and in the typical case three planes meet in a single point. The strategy is to shrink the problem: eliminate the same variable twice, using two different pairs of equations. That leaves a system of two equations in two unknowns, which you solve as before, and then you back-substitute to find the third variable.
Example 9: A system of three equations
Solve the system
Solution. Eliminate \(z\). Adding the first two equations cancels it immediately: \(3x + y = 8\). For a second equation without \(z\), multiply the first equation by 2 and add the third: \((2x + 4y - 2z) + (3x + y + 2z) = -2 + 12\), so \(5x + 5y = 10\), that is \(x + y = 2\). Now solve the 2×2 system \(3x + y = 8\), \(x + y = 2\): subtracting gives \(2x = 6\), so \(x = 3\) and \(y = 2 - 3 = -1\). Back-substitute into the first equation, rearranged as \(z = x + 2y + 1\): \(z = 3 - 2 + 1 = 2\). Check the other two equations: \(2 \cdot 3 - (-1) + 2 = 9\) and \(3 \cdot 3 + (-1) + 2 \cdot 2 = 12\). Correct.
Answer: \((3, -1, 2)\).
Linear–quadratic systems
When one equation is quadratic, such as a parabola \(y = ax^2 + bx + c\) or a circle \(x^2 + y^2 = r^2\), elimination by adding rarely helps. Use substitution: solve the linear equation for one variable, substitute into the quadratic, and solve the quadratic equation that results, with factoring or the quadratic formula. A line can meet a parabola in two points, touch it in one point (a tangent line), or miss it entirely, and the discriminant of that quadratic equation tells you which.
Example 10: A line and a parabola
Find the points where the line \(y = x + 1\) meets the parabola \(y = x^2 - 2x - 3\).
Solution. Both expressions equal \(y\), so set them equal: \(x^2 - 2x - 3 = x + 1\). Move everything to one side: \(x^2 - 3x - 4 = 0\). Factor: \((x - 4)(x + 1) = 0\), so \(x = 4\) or \(x = -1\). Use the linear equation for the y-values: \(y = 5\) and \(y = 0\). Check on the parabola: \(16 - 8 - 3 = 5\) and \(1 + 2 - 3 = 0\). Correct.
Answer: \((-1, 0)\) and \((4, 5)\).
The discriminant of \(x^2 - 3x - 4 = 0\) is \(9 + 16 = 25 > 0\), which confirms two crossing points. For the line \(y = x + k\) the discriminant is \(21 + 4k\), so the line \(y = x - \frac{21}{4}\) is tangent to the parabola, at \(\left(\tfrac{3}{2}, -\tfrac{15}{4}\right)\). A circle such as \(x^2 + y^2 = 25\) is handled by exactly the same substitution.
Common mistakes with systems of equations
- Multiplying only the left side of an equation before eliminating.
- Losing a sign when subtracting: subtracting \(-3y\) means adding \(3y\).
- Stopping after one variable. The question may even ask for \(x + y\).
- Reading \(0 = 0\) as "\(x = 0\)", or \(0 = 4\) as an arithmetic error. Both are answers: infinitely many solutions and no solution.
- Mixing units in word problems: minutes with hours, cents with dollars, 25 with 0.25.
Frequently asked questions
Can a system of linear equations have exactly two solutions?
No. Two lines that share two points are the same line, so the system would have infinitely many solutions. Exactly two solutions are possible only when an equation is nonlinear, as in Example 10.
Are "simultaneous equations" the same as systems of equations?
Yes. UK GCSE and A-level courses say "simultaneous equations", and a linear–quadratic system is often called "non-linear simultaneous equations". IB courses say "systems of linear equations" and allow a graphing calculator.
Cheat sheet
- A solution is a pair \((x, y)\) satisfying every equation: the intersection of the lines.
- Substitution: isolate a variable, substitute it (in parentheses) into the other equation, solve, back-substitute, check.
- Elimination: multiply every term so one variable has opposite coefficients, add, solve, back-substitute, check.
- \(a_1b_2 - a_2b_1 \neq 0\): one solution. \(0 = \text{nonzero}\): no solution (parallel lines). \(0 = 0\): infinitely many (same line).
- Word problems: one equation counts things, the other measures them; keep units consistent.
- 3×3 systems: eliminate the same variable twice to get a 2×2 system.
- Line and parabola: substitute the linear equation into the quadratic; the discriminant gives two, one or no intersection points.
Practice
Try these problems from the systems of equations practice set. Each has a hint and a full worked solution.
- Elimination warm-up: opposite coefficients
- Substitution when y is already isolated
- A system with fractions: find the product xy
- Cinema tickets for adults and children
- Mixing two coffees to hit a target price
- River boat: find the speed of the current
- Value of k for which the system has no solution
- Three equations in three unknowns
For more topics, browse all English math lessons.