On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Algebra Fundamentals · Grade 6-8

Systems of Equations

A system of equations is a set of equations that must be true at the same time.

{ax+by=cdx+ey=f

Quick Answer

A system of equations is a set of equations that must be true at the same time. Use one when a problem has two unknowns and gives two separate facts about them, such as how many tickets were sold and how much money came in. Each equation alone has endless solutions; the system's solution is the pair that fits both, which on a graph is the point where the two lines cross. You can find it by substitution, by elimination, or by graphing.

Why This Matters

Many real questions have two unknowns tied together: how many adult and child tickets, how much of two ingredients, when two phone plans cost the same. One equation can't settle them: a+s=8 is satisfied by 9 different whole-number pairs. A second, independent fact cuts that down to one answer, and knowing this tells you whether a problem gives enough information.

Intuitive Explanation

Suppose two numbers add to 10. They could be 1 and 9, 4 and 6, or 2.5 and 7.5: endless options, all lying on the line x+y=10. Now add a second fact: their difference is 4, so x−y=4. That line has endless options of its own. Only one pair appears on both lists, x=7 and y=3, the point (7,3) where the two lines cross.

You can find that point without drawing. With substitution, rewrite one equation to get one variable alone (y=10−x) and put it into the other: x−(10−x)=4, so 2x=14 and x=7. With elimination, add the two equations so that y cancels: (x+y)+(x−y)=10+4 gives 2x=14. Either way, put x=7 back in to get y=3, then check the pair in both equations.

Two lines don't always meet exactly once. x+y=5 and x+y=8 are parallel and never cross, so there is no solution: no two numbers can add to both 5 and 8. x+y=5 and 2x+2y=10 are the same line written twice, so every point on it works. And a problem that gives just one fact about two unknowns isn't a system at all; it needs more information.

Think of it like this. Two friends text you clues about where they're waiting. One says "I'm somewhere on Oak Street," the other "I'm somewhere on 5th Avenue," and they are standing together. Each clue alone allows a whole street; together they point to the one corner where the streets cross. Parallel streets never meet, just as parallel lines give no solution.

Core idea. A system solution is the place where all constraints agree.


When to Use

Set up a system when there are two unknowns and the problem gives two separate facts that must both hold, such as a count and a total cost, or two plans you want to compare to find when they are equal. Substitution is quickest when one variable is already alone; elimination works well when the coefficients line up. If there is only one fact, no single answer exists; if there is only one unknown, one equation is enough.

Tip. Ask: Does the answer need to make every equation true?

How to Recognize It

Before you set up two equations, count the unknowns and the separate facts the problem gives about them.

  1. Are there two different unknown amounts, like the number of adult tickets and the number of child tickets?

    If yes, give each its own letter. If there is really only one unknown, a single equation solves it, and a system only adds work.

  2. Does the problem give two separate facts linking them, such as a total count and a total cost?

    If yes, each fact becomes one equation, and together they can fix both values. With only one fact, like 'adults and children total 40', many pairs fit and there is no single answer.

  3. Is one of the letters already alone on one side, as in y=3x−1?

    If yes, substitute that expression into the other equation. If both equations look like ax+by=c and a pair of coefficients match or are opposites, add or subtract the equations to remove a letter.

  4. Does the question ask when two plans cost the same, or where two quantities meet?

    If yes, the crossing point of the two equations is the answer. If it only asks which plan is cheaper for one given number of months, evaluate both expressions instead.

Systems of Equations compared with Single linear equation and Linear function comparison

A single equation, a system and a comparison of two linear functions can all put two lines on one graph. Ask whether you need the exact point both conditions share, or only a description of each line's rate and start.

Systems of Equations

Meaning
Use this when two or more equations describe the same unknown quantities at once.
Key test
Does the answer need to make every equation true?
Formula
{ax+by=cdx+ey=f
Example
Adult tickets cost $10 and student tickets cost $6. A group buys 8 tickets for $68. How many of each?

Single linear equation

Meaning
One equality, usually one unknown in grade-level problems.
Key test
Use when one condition is enough.
Formula
3x+5=20
Example
One unknown

Linear function comparison

Meaning
Compares rules but may not require solving both exactly.
Key test
Use when describing rates or graphs.
Formula
y=mx+b
Example
Which grows faster?

Formula & Notation

{ax+by=cdx+ey=f
A linear system Ax=b with A∈Rm×n has solution set S={x∈Rn∣Ax=b}. S is nonempty iff rank(A)=rank([A∣b]); ∣S∣=1 iff additionally rank(A)=n.

How to read it: A solution to a system must satisfy every equation in the system at the same time.

Worked Examples

Example 1 — Ticket sales

Easy

Adult tickets cost $10 and student tickets cost $6. A group buys 8 tickets for $68. How many of each?
Show the steps and the answer
  1. Let a be the number of adult tickets and s the number of student tickets.

    Two different unknowns need two letters.

  2. Write one equation per fact: a+s=8 (the count) and 10a+6s=68 (the money).

    Each sentence of the problem gives one condition, and the answer has to satisfy both.

  3. Substitute s=8−a: 10a+6(8−a)=68, so 10a+48−6a=68, then 4a=20 and a=5.

    Replacing s leaves one equation with one unknown, which the usual steps can solve.

  4. Find s=8−5=3 and check the money: 10(5)+6(3)=50+18=68.

    The pair satisfies the cost equation too, not just the count used to find s.

Answer: 5 adult tickets and 3 student tickets

Takeaway: Two unknowns need two facts; substitute one equation into the other to get down to a single equation.

Example 2 — One condition only

Standard

Adult tickets and student tickets total 8. How many of each?
Show the steps and the answer
  1. Write the one fact: a+s=8.

    That is the only condition the problem gives.

  2. List the pairs that fit: (0,8), (1,7), (2,6), up to (8,0).

    Nine whole-number pairs work, so this fact alone can't choose between them.

  3. Name what's missing: a second fact, such as the total cost.

    With prices and a total, as in the ticket-sales example, the pairs narrow to one.

Answer: Not enough information

Takeaway: One equation in two unknowns describes a whole line of answers; a system needs as many independent facts as there are unknowns.

Example 3 — Find the mistake: stopping at x

Application

Solve the system y=2x+1 and y=−x+7. Omar writes: "2x+1=−x+7, so 3x=6 and x=2. The solution is x=2." Find what is missing and finish the solution.
Show the steps and the answer
  1. Check Omar's algebra: setting the right sides equal gives 3x=6, so x=2.

    Both equations give y, so where the lines cross their right sides must match; this part is correct.

  2. Find y from the first equation: y=2(2)+1=5.

    A solution to a two-variable system is a point, and a point needs both coordinates.

  3. Check in the second equation: y=−2+7=5.

    The same y comes out of both equations, so (2,5) lies on both lines.

Answer: (2,5), that is, x=2 and y=5

Takeaway: A two-variable system's answer is an ordered pair; after finding x, substitute to get y and check the pair in both equations.

Where You'll See It

  • Choosing a phone plan

    Plan A costs $20 a month plus $0.10 per minute; Plan B costs $35 with unlimited minutes. Solving C=20+0.1m together with C=35 gives m=150. Below 150 minutes a month Plan A is cheaper; above it, Plan B is.

  • Blending coffee beans

    A café mixes beans costing $8 per kg with beans costing $14 per kg to make 30 kg worth $12 per kg. From x+y=30 and 8x+14y=360, it needs x=10 kg of the cheaper beans and y=20 kg of the pricier ones.

  • Catching up on a bike

    Your sister walks at 5 km/h with a 3 km head start, and you cycle at 15 km/h. Her position is d=5t+3 and yours is d=15t; they match when 10t=3, so t=0.3 h, which is 18 minutes, 4.5 km from home.

Common Mistakes

  1. The slip: Solving only one equation and ignoring the other

    Instead: a system solution must satisfy all equations.

  2. The slip: Treating the intersection as just an x value

    Instead: for two-variable systems, the solution is an ordered pair.

  3. The slip: Using substitution or elimination without aligning variables

    Instead: keep equations equivalent at each step.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Solve the system x+y=10 and x−y=4.

    Hint: Add the two equations to remove y.

  2. Solve the system y=2x+1 and y=5x−8.

    Hint: Both equations equal y, so set them equal to each other.

  3. A farm has chickens and goats with 20 heads and 56 legs in total. How many of each animal are there?

    Hint: Write one equation for heads and one for legs.

  4. Solve the system 2x+3y=13 and 4x−y=5.

    Hint: Get y alone from the second equation, then substitute.

  5. Situation A: juice costs $2 and you spend $14; how many juices? Situation B: juice costs $2, water costs $1, and 9 drinks cost $14; how many of each? Which needs a system? Answer both.

    Hint: Count the unknowns in each situation.

  6. For x+y=9 and x−y=1, Kim adds the equations, gets x=5, and writes "Answer: x=5". What is missing?

    Hint: A solution to a two-variable system has two parts.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can a system of two linear equations have exactly two solutions?

No. Two straight lines can do only three things: cross once, never meet, or lie on top of each other. So a linear system has one solution, none, or infinitely many. If elimination leaves a true statement like 0=00 = 0, the equations describe the same line; a false one like 0=70 = 7 means parallel lines. With curves, two solutions become possible: a line can cut a circle twice.

Do I have to find both values if the question asks for only one?

Not always. If the question asks only for the number of adult tickets, eliminating the other letter gives it directly, and you could stop there. Still, finding both values and checking them in both original equations is the surest way to catch an arithmetic slip, because a wrong pair rarely fits two different equations by accident.

What if a problem has three unknowns?

Then you need three independent facts, so three equations. Eliminate the same letter from two different pairs of equations to get a two-by-two system, solve that, then work back to the third value. Each extra unknown needs one more fact, which is why logic puzzles with many unknowns give many clues. With three letters, each linear equation describes a flat plane, and the solution is the point where three planes meet.

Is graphing a good way to solve a system?

It shows the answer clearly but is often imprecise: if the lines cross at (2.4,3.7)(2.4, 3.7), a hand-drawn graph will rarely show that exactly. Use a graph to see how many solutions there are and roughly where, then use substitution or elimination for exact values. Graphing software changes this, because it can locate a crossing to many decimal places.

Learning Path

Systems of Equations

You are here

You need Linear Functions (each equation is a line) and Solving Linear Equations (the algebra steps) first. Systems add the idea of meeting several conditions at once, with substitution, elimination and graphing as three routes to the crossing point. Next, Linear Programming replaces the equations with inequalities and searches for the best point inside the region they share.

See Also