Opening subject page...
Loading your content
Learn how to set up and solve systems of equations—one of the most powerful tools in all of math.
People have been solving problems with two unknowns for thousands of years. Long before algebra looked the way it does in your textbook, ancient mathematicians were figuring out how to share grain, build temples, and divide land. The idea of writing two equations and finding values that make both true at the same time is one of the oldest tricks in mathematics.
So here's the big question this lesson answers: When a real-world situation has two unknown quantities, how do you write two equations and solve them to find both unknowns?
Before we start solving, let's make sure the key vocabulary is crystal clear. A linear equation is an equation where the variables (like x and y) are only raised to the first power—no exponents, no square roots, no variables multiplied together. When you graph a linear equation, it always makes a straight line.
A system of equations is a set of two (or more) equations that share the same variables. A solution to the system is a pair of values—one for each variable—that makes both equations true at the same time.
When you graph each equation on the same coordinate plane, each equation draws a line. Every point on that line is a pair (x, y) that makes the equation true. The solution to the system is the point where the two lines intersect (cross each other). That point is the only (x, y) pair that satisfies both equations at once.
In the diagram above, the cyan line represents x + y = 6 and the pink line represents 2x − y = 3. They cross at the gold point (3, 3). Plug those numbers into either equation and they work: 3 + 3 = 6 ✓ and 2(3) − 3 = 3 ✓.
Not every system works out perfectly though. Sometimes the two lines are parallel (they never cross), which means there's no solution. And sometimes the two equations actually describe the same line, which means there are infinitely many solutions. For now, most problems you'll see have exactly one solution—one crossing point.
You've seen that the answer is where two lines meet. But drawing perfect graphs every time is slow and sometimes inaccurate. Algebra gives you two reliable methods to find exact answers: substitution and elimination.
The idea is simple: solve one equation for one variable, then substitute (plug) that expression into the other equation. This turns two equations with two unknowns into one equation with one unknown—something you already know how to solve!
With elimination, you add or subtract the two equations so that one variable cancels out. Sometimes you need to multiply one or both equations by a number first so the coefficients (the numbers in front of x or y) match up. Then add the equations and—poof—one variable disappears.
Which method should you use? It depends on the problem. If one equation already has a variable by itself (like y = 3x + 1), substitution is quick. If the equations are lined up nicely and the coefficients are easy to match, elimination can be faster.
Before we jump into a full worked example, let's look at the three things that can happen when you graph two lines, and how to translate a word problem into a system of equations.
| Situation | What You See on the Graph | What Happens Algebraically |
|---|---|---|
| One solution | Lines cross at exactly one point | You find specific values for x and y |
| No solution | Lines are parallel (same slope, different y-intercepts) | Variables cancel and you get a false statement like 0 = 5 |
| Infinitely many solutions | Lines overlap completely (same line) | Variables cancel and you get a true statement like 0 = 0 |
Real-world problems don't hand you nice equations. You have to build them from the story. Here's a simple process:
A school sold 200 tickets to a concert. Adult tickets cost $8 each and student tickets cost $5 each. The school collected $1,180 in total. How many of each type of ticket were sold?
a + s = 200 ← Equation 1. The total money collected is $1,180: 8a + 5s = 1180 ← Equation 2.s = 200 − a. Substitute this into Equation 2: 8a + 5(200 − a) = 1180 → 8a + 1000 − 5a = 1180 → 3a + 1000 = 1180 → 3a = 180 → a = 60s = 200 − a: s = 200 − 60 = 140Both methods always give you the same answer. The difference is about convenience. Here's a side-by-side comparison to help you decide which one to reach for first.
| Feature | Substitution | Elimination |
|---|---|---|
| Best when… | One variable is already isolated (e.g., y = 3x + 1) | Both equations are in standard form and coefficients are easy to match |
| Key move | Replace a variable with an expression from the other equation | Add or subtract equations to cancel a variable |
| Risk of mistakes | Distributing negatives incorrectly during substitution | Forgetting to multiply every term when scaling an equation |
| Works for all systems? | Yes | Yes |
| Speed (on average) | A bit faster when a variable is already alone | A bit faster when coefficients line up nicely |
Solving a system of two linear equations is just the beginning. Once you're comfortable with two unknowns, math opens up to three or more. In high school and beyond, you'll encounter systems with three equations and three unknowns, and eventually tools like matrices that let computers solve thousands of equations in seconds.
| What You're Learning Now | Where It Goes Next |
|---|---|
| 2 equations, 2 unknowns (x, y) | 3 equations, 3 unknowns (x, y, z) — Algebra 2 |
| Graphing lines on a plane | Graphing planes in 3D space — Precalculus |
| Substitution & elimination by hand | Matrix methods & technology-assisted solving — Linear Algebra |
| Systems with exact solutions | Systems of inequalities (shaded regions) — Algebra 1/2 |
Even in fields you might not expect—like biology, economics, and computer graphics—systems of equations are used every day. When you play a video game, the game engine is solving huge systems of equations to figure out where objects should appear on screen. The skill you're building right now is the foundation for all of that.
y = 2x + 1 and x + y = 103x + 2y = 16 and 3x − 2y = 8A system of two linear equations in two variables is a pair of equations that share the same unknowns. The solution is the ordered pair (x, y) that makes both equations true—graphically, it's the intersection point of the two lines. To set up a system from a word problem, you identify two unknowns, find two relationships from the information given, and write one equation for each relationship.
You can solve the system by substitution (isolate one variable and plug it into the other equation) or by elimination (add or subtract equations to cancel one variable). Always check your answer by plugging the values back into both original equations. A system can have one solution (lines cross), no solution (parallel lines), or infinitely many solutions (same line). Mastering this skill prepares you for more advanced algebra, real-world modeling, and eventually the powerful techniques of linear algebra.