Algebra

Systems of Equations

Last updated: March 2026 · Intermediate
Before you start

You should be comfortable with:

Real-world applications
💰
Retail & Finance

Discounts, tax, tips, profit margins

Electrical

Voltage drop, wire sizing, load balancing

A system of equations is a set of two or more equations with the same variables. The solution is the set of values that makes all the equations true at the same time. For two linear equations in two variables, the solution is the point where the two lines intersect.

What the Solution Looks Like Graphically

When you graph two linear equations on the same coordinate plane, three things can happen:

SituationLinesNumber of Solutions
The lines cross at one pointIntersectingExactly one solution
The lines are parallelNever touchNo solution
The lines are the same lineOverlap completelyInfinitely many solutions

Most systems you encounter will have exactly one solution — one intersection point.

Method 1: Substitution

Use substitution when one equation already has a variable isolated (or can easily be solved for one variable).

Steps:

  1. Solve one equation for one variable
  2. Substitute that expression into the other equation
  3. Solve the resulting one-variable equation
  4. Substitute back to find the other variable

Example 1

Solve the system:

y=3x1y = 3x - 1

2x+y=92x + y = 9

Step 1 — The first equation already gives yy in terms of xx.

Step 2 — Substitute 3x13x - 1 for yy in the second equation:

2x+(3x1)=92x + (3x - 1) = 9

Step 3 — Solve for xx:

5x1=95x - 1 = 9

5x=105x = 10

x=2x = 2

Step 4 — Substitute x=2x = 2 back into the first equation:

y=3(2)1=61=5y = 3(2) - 1 = 6 - 1 = 5

Answer: (x,y)=(2,5)(x, y) = (2, 5)

Check: Equation 1: 5=3(2)1=55 = 3(2) - 1 = 5 . Equation 2: 2(2)+5=4+5=92(2) + 5 = 4 + 5 = 9 . Both true.

Example 2

Solve the system:

x+4y=14x + 4y = 14

3x2y=03x - 2y = 0

Step 1 — Solve the first equation for xx:

x=144yx = 14 - 4y

Step 2 — Substitute into the second equation:

3(144y)2y=03(14 - 4y) - 2y = 0

4212y2y=042 - 12y - 2y = 0

4214y=042 - 14y = 0

Step 3 — Solve for yy:

14y=4214y = 42

y=3y = 3

Step 4 — Substitute back:

x=144(3)=1412=2x = 14 - 4(3) = 14 - 12 = 2

Answer: (x,y)=(2,3)(x, y) = (2, 3)

Method 2: Elimination

Use elimination when both equations are in standard form and neither variable is easily isolated. The idea is to add or subtract the equations to eliminate one variable.

Steps:

  1. Multiply one or both equations so that one variable has opposite coefficients
  2. Add the equations to eliminate that variable
  3. Solve for the remaining variable
  4. Substitute back to find the other variable

Example 3

Solve the system:

3x+2y=163x + 2y = 16

x2y=4x - 2y = -4

Step 1 — The yy-coefficients are already opposites (+2y+2y and 2y-2y).

Step 2 — Add the equations:

(3x+2y)+(x2y)=16+(4)(3x + 2y) + (x - 2y) = 16 + (-4)

4x=124x = 12

Step 3 — Solve for xx:

x=3x = 3

Step 4 — Substitute into the first equation:

3(3)+2y=163(3) + 2y = 16

9+2y=169 + 2y = 16

2y=72y = 7

y=3.5y = 3.5

Answer: (x,y)=(3,3.5)(x, y) = (3, 3.5)

Example 4: Requiring Multiplication First

Solve the system:

2x+3y=122x + 3y = 12

5x+2y=135x + 2y = 13

Step 1 — Multiply to create opposite coefficients for yy:

Multiply the first equation by 2 and the second by 3-3:

4x+6y=244x + 6y = 24

15x6y=39-15x - 6y = -39

Step 2 — Add:

4x+(15x)+6y+(6y)=24+(39)4x + (-15x) + 6y + (-6y) = 24 + (-39)

11x=15-11x = -15

x=1511x = \frac{15}{11}

This gives a fraction, which is fine. Now find yy by eliminating xx instead. Multiply the first equation by 5 and the second by 2-2:

10x+15y=6010x + 15y = 60

10x4y=26-10x - 4y = -26

Add:

11y=3411y = 34

y=3411y = \frac{34}{11}

Using elimination twice (once for each variable) avoids messy fraction substitution entirely.

Answer: (x,y)=(1511,3411)(x, y) = \left(\frac{15}{11}, \frac{34}{11}\right)

Not every system produces whole-number answers, and that is perfectly normal.

Special Cases

No Solution (Parallel Lines)

2x+y=52x + y = 5

2x+y=82x + y = 8

Subtracting the first from the second gives 0=30 = 3, which is a contradiction. The lines are parallel and never intersect. There is no solution.

Infinitely Many Solutions (Same Line)

x+2y=6x + 2y = 6

2x+4y=122x + 4y = 12

The second equation is just the first multiplied by 2. They represent the same line, so every point on that line is a solution.

Real-World Application: Retail — Comparing Two Pricing Models

A store manager is choosing between two suppliers for a product:

  • Supplier A: $3 per unit plus a $150 monthly fee: y=3x+150y = 3x + 150
  • Supplier B: $5 per unit with no monthly fee: y=5xy = 5x

At what quantity do both suppliers cost the same?

Set the equations equal:

3x+150=5x3x + 150 = 5x

150=2x150 = 2x

x=75x = 75

Find the cost:

y=5(75)=375y = 5(75) = 375

Answer: At 75 units, both suppliers cost $375. Below 75 units, Supplier B is cheaper (no monthly fee). Above 75 units, Supplier A is cheaper (lower per-unit cost). The manager should choose the supplier based on expected monthly volume.

Common Mistakes to Avoid

  1. Forgetting to multiply the entire equation. When multiplying to create opposite coefficients, every term on both sides must be multiplied — including the constant.
  2. Adding when you should subtract (or vice versa). If coefficients are the same sign, subtract the equations. If opposite signs, add.
  3. Stopping after finding one variable. The solution is an ordered pair — you need both xx and yy.
  4. Assuming no fraction answers. Real-world problems often have non-integer solutions.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Solve by substitution: y=2x+1y = 2x + 1 and 3x+y=113x + y = 11

Substitute: 3x+(2x+1)=113x + (2x + 1) = 11

5x+1=115x + 1 = 11

5x=105x = 10, so x=2x = 2

y=2(2)+1=5y = 2(2) + 1 = 5

Answer: (2,5)(2, 5)

Problem 2: Solve by elimination: 4x+y=104x + y = 10 and 2xy=22x - y = 2

Add the equations: 6x=126x = 12, so x=2x = 2

Substitute: 4(2)+y=10    y=24(2) + y = 10 \implies y = 2

Answer: (2,2)(2, 2)

Problem 3: Solve: x+y=7x + y = 7 and xy=3x - y = 3

Add the equations: 2x=102x = 10, so x=5x = 5

Substitute: 5+y=7    y=25 + y = 7 \implies y = 2

Answer: (5,2)(5, 2)

Problem 4: Determine if the system has no solution, one solution, or infinitely many: 6x3y=96x - 3y = 9 and 2xy=32x - y = 3

Multiply the second equation by 3: 6x3y=96x - 3y = 9

This is identical to the first equation. The equations represent the same line.

Answer: Infinitely many solutions.

Problem 5: An electrician buys resistors and capacitors. 5 resistors and 3 capacitors cost $12.50. 2 resistors and 7 capacitors cost $16.00. Find the cost of each component.

Let rr = cost of a resistor, cc = cost of a capacitor.

5r+3c=12.505r + 3c = 12.50

2r+7c=16.002r + 7c = 16.00

Multiply the first by 7 and the second by 3-3:

35r+21c=87.5035r + 21c = 87.50

6r21c=48.00-6r - 21c = -48.00

Add: 29r=39.5029r = 39.50, so r=39.50291.36r = \frac{39.50}{29} \approx 1.36

Wait — let us redo more carefully: r=39.5029r = \frac{39.50}{29}. Substitute: 5(39.5029)+3c=12.505\left(\frac{39.50}{29}\right) + 3c = 12.50

197.5029+3c=12.50\frac{197.50}{29} + 3c = 12.50

6.81+3c12.506.81 + 3c \approx 12.50

3c5.693c \approx 5.69, c1.90c \approx 1.90

Answer: Each resistor costs approximately $1.36 and each capacitor costs approximately $1.90.

Key Takeaways

  • A system of equations finds where two lines intersect — the values that satisfy both equations simultaneously
  • Substitution works best when one variable is already isolated
  • Elimination works best when equations are in standard form — multiply to create opposite coefficients, then add
  • Systems can have one solution (intersecting lines), no solution (parallel lines), or infinitely many solutions (same line)
  • Always check your solution in both original equations

Return to Algebra for more topics in this section.

Last updated: March 28, 2026