Opening subject page...
Loading your content
Learn to find where two lines meet — using algebra, graphs, and smart inspection.
People have been solving problems with two unknowns for thousands of years. Whenever you have two pieces of information and two things you don't know, you're working with a system of equations. Ancient mathematicians figured this out long before modern algebra even existed!
The big question this lesson answers: if you have two equations and two unknowns, how do you find the values that make both equations true at the same time?
Before we dive into solving, let's nail down the vocabulary. A system of linear equations is a set of two (or more) equations that share the same variables. A solution to the system is any ordered pair (x, y) that makes every equation in the system true.
y = mx + b or ax + by = c. No exponents higher than 1, no curves.Every linear equation draws a straight line on the coordinate plane. When you graph two equations together, the point where the lines intersect is the solution. Let's look at the system y = 2x − 1 and y = −x + 5.
Notice the gold dot at (2, 3). Plug x = 2 into the first equation: y = 2(2) − 1 = 3. ✓ Plug x = 2 into the second: y = −(2) + 5 = 3. ✓ Both equations give y = 3 when x = 2, so (2, 3) is the solution.
Graphing is a great way to estimate a solution. You draw both lines and see roughly where they cross. But if the lines cross at a point like (1.37, 2.74), it's hard to read that exactly off a graph. That's why we also learn algebraic methods — they give us the exact answer.
There are three main ways to solve a system of equations: substitution, elimination, and inspection. Each one has its own strengths. Let's learn all three.
Substitution means solving one equation for a variable, then plugging that expression into the other equation. It works best when one equation is already solved for y (or x).
For example, with y = 2x − 1 and x + y = 5, the first equation already tells you what y equals. Substitute 2x − 1 in place of y in the second equation: x + (2x − 1) = 5. Now you have one equation with one unknown — much easier!
Elimination (also called the addition method) means adding or subtracting the two equations so that one variable cancels out. It works best when the coefficients (the numbers in front of x or y) match up nicely.
For instance, if you have 2x + y = 7 and 2x − y = 1, adding them gives 4x = 8. The y terms cancel because +y and −y add to zero. That's elimination in action!
Inspection means recognizing the answer without heavy algebra. Some systems are simple enough that you can spot the solution just by looking. This works well when the numbers are small or when the equations have a clear structure.
Inspection also helps you quickly see special cases. If both equations simplify to the same line (like y = 2x + 1 and 2y = 4x + 2), you know there are infinitely many solutions. If they have the same slope but different y-intercepts (like y = 3x + 1 and y = 3x + 5), they're parallel — no solution.
Not every system has exactly one answer. When you graph two lines, three things can happen. Understanding these three outcomes helps you make sense of your algebraic work too.
| Type | Graph Looks Like | Algebra Tells You | Example |
|---|---|---|---|
| One solution | Lines cross at one point | You find specific values for x and y | y = x + 1, y = −x + 3 → (1, 2) |
| No solution | Lines are parallel | You get a false statement like 0 = 5 | y = 2x + 1, y = 2x + 4 |
| Infinitely many | Lines lie on top of each other | You get a true statement like 0 = 0 | y = 3x − 2, 2y = 6x − 4 |
Here's how to spot these during algebra. If you eliminate a variable and get something like 0 = 5, stop — there's no solution. If you get 0 = 0, stop — there are infinitely many solutions (the equations describe the same line). If you get a normal number, like x = 4, that means there's exactly one solution, and you should keep going to find the other variable.
Let's solve this system using both substitution and elimination, so you can see how they compare.
x − y = 2 → x = y + 2(y + 2) in the first equation:3(y + 2) + 2y = 163y + 6 + 2y = 16 → 5y + 6 = 16 → 5y = 10 → y = 2x = y + 2:x = 2 + 2 = 43(4) + 2(2) = 12 + 4 = 16 ✓ and 4 − 2 = 2 ✓. The solution is (4, 2).3x + 2y = 16 and x − y = 22(x − y) = 2(2) → 2x − 2y = 43x + 2y = 16 + 2x − 2y = 45x = 20 → x = 44 − y = 2 → y = 2Each method has situations where it shines. Here's a side-by-side look to help you decide which tool to grab.
| Method | Best When… | Watch Out For… |
|---|---|---|
| Graphing | You want a visual estimate or to understand the system's big picture | Hard to read exact answers if the solution has fractions or decimals |
| Substitution | One equation is already solved for x or y (like y = 3x + 1) | Can get messy with large coefficients or lots of fractions |
| Elimination | Both equations are in standard form and coefficients match up easily | You might need to multiply first; don't forget to multiply the entire equation |
| Inspection | The system is simple, with small numbers or obvious patterns | Only works for easy systems — most real problems need algebra |
No matter which method you use, always check your answer by plugging the x and y values back into both original equations. If both equations are true, you've found the right solution.
Right now, you're learning to solve systems with two equations and two variables. But this is just the beginning! As you move into high school, you'll encounter bigger systems, new tools, and real-world applications that build directly on what you're learning here.
| What You Know Now | What Comes Next |
|---|---|
| 2 equations, 2 variables | 3 equations with 3 variables (x, y, and z) — same ideas, just bigger |
| Graphing on a 2D plane | Graphing in 3D — equations become planes, and the solution is where three planes meet |
| Substitution and elimination | Matrices and row reduction — a super-efficient way to solve many equations at once |
| Linear equations only | Systems with curves (parabolas, circles) — where a line meets a curve |
Systems of equations are used every day in science, business, and technology. When engineers design a bridge, they solve huge systems to calculate the forces on every beam. When economists predict prices, they set up systems that model supply and demand. The small 2×2 systems you're solving right now are the foundation for all of that.
Try these on your own. Work through each one on paper before clicking "Show Answer." Remember — checking your solution in both equations is the final step!
x + y = 8 and x − y = 2.y = 3x − 4 and 2x + y = 11.4x + 6y = 12 and 2x + 3y = 6. Try to solve it using elimination. What happens? How many solutions does this system have, and how can you tell?A system of linear equations is a pair of equations with two variables (usually x and y) that you solve at the same time. The solution is the ordered pair that makes both equations true. You can find it by graphing (drawing both lines and finding where they cross), by substitution (replacing one variable with an expression from the other equation), by elimination (adding or subtracting equations to cancel a variable), or by inspection (spotting the answer when the system is simple).
Every system has one of three outcomes: exactly one solution (the lines cross once), no solution (the lines are parallel), or infinitely many solutions (the lines are the same). When you solve algebraically, a false statement like 0 = 5 means no solution, while 0 = 0 means infinite solutions. Whichever method you choose, always check your answer by plugging back into both original equations. Master these skills now, and you'll have a solid foundation for algebra, geometry, and beyond!