Systems of Equations

Study Sheet

Systems of Equations

Everything you need: graphing, substitution, elimination, special cases, inequalities, and word problems.

What Is a System of Equations?

Concept
The Big Idea

A system of equations is two (or more) equations that we want to be true at the same time. Each linear equation is a line on the coordinate plane.

A solution to the system is an ordered pair (x,y)(x,y) that makes every equation true. Graphically, it is the point where the lines cross.

One linear equation has a whole line of solutions. A system puts two of them side by side and asks which pair satisfies BOTH at once — which is why its picture is the place where two lines meet. Substitution replaces one variable by an expression the first equation says it equals; elimination adds multiples of the equations so that a variable cancels. Both are legal for the same reason: neither changes which pairs make the statements true. The answer is one point, no point (parallel lines), or every point on one line (the same line written twice), and the algebra says which: if every variable disappears, what is left is either false (no solution) or true (infinitely many).

Each equation alone is satisfied by a whole line of points: x+y=6x + y = 6 holds for (0,6)(0, 6), (1,5)(1, 5), (2.5,3.5)(2.5, 3.5) and infinitely many more. Asking for both equations at once keeps only the points on both lines. Two different non-parallel lines share exactly one point, which is why a typical system has exactly one solution.

We usually write a system with a curly brace:

{x+y=6x−y=2\begin{cases} x + y = 6 \\ x - y = 2 \end{cases}

This means: find the one pair (x,y)(x,y) that fits both equations.

Example
Checking a proposed solution
xy−1123456−3−2−1123456(4, 2)x + y = 6x − y = 2
The only point on both lines: (4,2)(4, 2).

Is (4,2)(4,2) a solution of the system above?

  • First equation: x+y=4+2=6x+y = 4+2 = 6. ✓
  • Second equation: x−y=4−2=2x-y = 4-2 = 2. ✓

Both are true, so (4,2)(4,2) is the solution. If even one equation failed, it would not be a solution.

Side note
Where it goes wrong

Checking a proposed solution in only one equation: (5,1)(5, 1) satisfies x+y=6x + y = 6, so "it is the solution." It fails x−y=2x - y = 2 (5−1=45 - 1 = 4). A point on one line only is not a solution of the system.

Tip

Remember: A solution must satisfy all equations. Always plug your answer back into both equations to check.

Try it
Try it: check both

Which of (1,4)(1, 4), (3,−2)(3, -2), (2,1)(2, 1) solves {3x−y=5x+2y=4\begin{cases} 3x - y = 5 \\ x + 2y = 4 \end{cases}?

Show the answer

(1,4)(1, 4): 3−4=−1≠53 - 4 = -1 \ne 5, out. (3,−2)(3, -2): 9+2=11≠59 + 2 = 11 \ne 5, out. (2,1)(2, 1): 6−1=56 - 1 = 5 and 2+2=42 + 2 = 4, both true. The solution is (2,1)(2, 1).

Method 1: Solving by Graphing

Concept
How Graphing Works

Graph both lines on the same axes. The intersection point (x,y)(x,y) is the solution, because that point lies on both lines at once.

Steps: (1) Put each equation in slope-intercept form y=mx+by = mx + b if helpful. (2) Plot each line using its yy-intercept and slope (or a small table of points). (3) Read off the point where they cross. (4) Check by substituting.

A graph is a picture of every solution of one equation. Drawing two graphs on the same axes and looking for a shared point is therefore the definition of a system's solution made visible. Its weakness is precision: a crossing at (73,54)(\tfrac{7}{3}, \tfrac{5}{4}) cannot be read off a grid, so the algebraic methods are needed for exact answers.

Example
Graphing example
xy−2−1123−2−112345(1, 2)y = x + 1y = −2x + 4
Both lines pass through (1,2)(1, 2).

Solve {y=x+1y=−2x+4\begin{cases} y = x + 1 \\ y = -2x + 4 \end{cases}

Line 1: y=x+1y = x+1 passes through (0,1)(0,1) and (1,2)(1,2).

Line 2: y=−2x+4y = -2x+4 passes through (0,4)(0,4) and (1,2)(1,2).

Both tables contain the point (1,2)(1,2), so the lines cross there.

Check: y=x+1=1+1=2y = x+1 = 1+1 = 2 ✓  and   y=−2(1)+4=2y = -2(1)+4 = 2 ✓

Solution: (1,2)(1,2).

Side note
Where it goes wrong

Reading an intersection at a non-grid point as the nearest grid point. The lines y=xy = x and y=3−xy = 3 - x cross at (1.5,1.5)(1.5, 1.5); reading "(2,2)(2, 2)" off a rough sketch gives a point on neither line. Always check a graphed answer in both equations.

Tip

Tip: Graphing shows the answer at a glance, but it is only exact when the intersection lands on a clean grid point. For messy or fractional answers, use substitution or elimination instead.

Try it
Try it: graph and check

Solve {y=12x+1y=−x+4\begin{cases} y = \tfrac12 x + 1 \\ y = -x + 4 \end{cases} by graphing (use intercepts), then confirm algebraically.

Show the answer

Line 1 passes through (0,1)(0, 1) and (2,2)(2, 2); line 2 through (0,4)(0, 4) and (2,2)(2, 2). They share (2,2)(2, 2). Check: 12(2)+1=2\tfrac12(2) + 1 = 2 and −2+4=2-2 + 4 = 2.

Method 2: Solving by Substitution

Concept
How Substitution Works

Solve one equation for one variable, then substitute that expression into the other equation. Now you have one equation with one variable, which you can solve. Finally, back-substitute to find the other variable.

Best when: one variable is already isolated (like y=…y = \dots) or is easy to isolate.

If y=2x+1y = 2x + 1 is true at the solution, then yy and 2x+12x + 1 are the same number there, so either name can be used in the other equation. Replacing yy by 2x+12x + 1 removes one unknown and leaves an equation you already know how to solve. Nothing about the second equation changes except the name of one quantity.

Example
Substitution, fully stepped out
xy−11232468(2, 5)
The algebra finds the crossing point exactly: (2,5)(2, 5).

Solve {y=2x+13x+y=11\begin{cases} y = 2x + 1 \\ 3x + y = 11 \end{cases}

Step 1. The first equation already gives y=2x+1y = 2x+1.

Step 2. Substitute 2x+12x+1 in place of yy in the second equation:

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

Step 3. Combine and solve for xx:

5x+1=11  ⇒  5x=10  ⇒  x=25x + 1 = 11 \;\Rightarrow\; 5x = 10 \;\Rightarrow\; x = 2

Step 4. Back-substitute x=2x=2 into y=2x+1y = 2x+1:

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

Check: 3(2)+5=113(2) + 5 = 11 ✓

Solution: (2,5)(2,5).

Side note
Where it goes wrong

Substituting back into the equation that was just used: finding x=2x = 2 from 3x+(2x+1)=113x + (2x + 1) = 11, then putting x=2x = 2 into 3x+(2x+1)=113x + (2x + 1) = 11 again, which only returns 11=1111 = 11. Use the isolated equation y=2x+1y = 2x + 1 to get y=5y = 5.

Example
Substitution needing rearrangement

Solve {x−3y=−12x+y=5\begin{cases} x - 3y = -1 \\ 2x + y = 5 \end{cases}

Step 1. Isolate xx in the first equation: x=3y−1x = 3y - 1.

Step 2. Substitute into the second: 2(3y−1)+y=52(3y-1) + y = 5.

Step 3. Solve: 6y−2+y=5⇒7y=7⇒y=16y - 2 + y = 5 \Rightarrow 7y = 7 \Rightarrow y = 1.

Step 4. Then x=3(1)−1=2x = 3(1) - 1 = 2.

Check: 2(2)+1=52(2) + 1 = 5 ✓   Solution: (2,1)(2,1).

Tip

Watch out: Use parentheses when you substitute, especially with a minus sign in front. Distribute carefully.

Try it
Try it: substitute

Solve {x=2y−34x−5y=3\begin{cases} x = 2y - 3 \\ 4x - 5y = 3 \end{cases}.

Show the answer

Substitute: 4(2y−3)−5y=34(2y - 3) - 5y = 3, so 8y−12−5y=38y - 12 - 5y = 3, 3y=153y = 15, y=5y = 5. Back-substitute: x=2(5)−3=7x = 2(5) - 3 = 7. Check: 4(7)−5(5)=34(7) - 5(5) = 3. Solution (7,5)(7, 5).

Method 3: Solving by Elimination (Linear Combination)

Concept
How Elimination Works

Add or subtract the two equations so that one variable cancels. To make a variable cancel, its coefficients must be opposites (like +2y+2y and −2y-2y). If they are not, multiply one or both equations by a number first.

Best when: the equations are in the form ax+by=cax + by = c and no variable is isolated.

Adding two true equations gives another true equation, and every solution of the pair still satisfies it. When the yy-terms cancel, that new equation, 2x=142x = 14, is the vertical line x=7x = 7: a third line through the same crossing point. Elimination is a way of choosing a combination whose line is so simple it can be read off.

Example
Elimination when coefficients already match
xy12345678910−2−112345678910(7, 3)x = 7
Adding the equations gives x=7x = 7, a vertical line through the same crossing (7,3)(7, 3).

Solve {x+y=10x−y=4\begin{cases} x + y = 10 \\ x - y = 4 \end{cases}

The +y+y and −y-y are already opposites. Add the equations:

(x+y)+(x−y)=10+4  ⇒  2x=14  ⇒  x=7(x + y) + (x - y) = 10 + 4 \;\Rightarrow\; 2x = 14 \;\Rightarrow\; x = 7

Back-substitute into x+y=10x + y = 10:   7+y=10⇒y=3\;7 + y = 10 \Rightarrow y = 3.

Check: 7−3=47 - 3 = 4 ✓   Solution: (7,3)(7,3).

Side note
Where it goes wrong

Subtracting only the first terms: (2x+3y)−(4x−y)(2x + 3y) - (4x - y) computed as −2x+3y−y=−2x+2y-2x + 3y - y = -2x + 2y. Subtracting an equation changes the sign of every term: 2x+3y−4x+y=−2x+4y2x + 3y - 4x + y = -2x + 4y. Adding the opposite equation avoids the trap.

Example
Elimination needing multiplication (one equation)

Solve {2x+3y=74x−y=7\begin{cases} 2x + 3y = 7 \\ 4x - y = 7 \end{cases}

Step 1. Choose a variable to eliminate. Multiply the first equation by 22 so the xx-terms match:

2(2x+3y)=2(7)  ⇒  4x+6y=142(2x + 3y) = 2(7) \;\Rightarrow\; 4x + 6y = 14

Step 2. Subtract the second equation from this new one:

(4x+6y)−(4x−y)=14−7  ⇒  7y=7  ⇒  y=1(4x + 6y) - (4x - y) = 14 - 7 \;\Rightarrow\; 7y = 7 \;\Rightarrow\; y = 1

Step 3. Back-substitute into 2x+3y=72x + 3y = 7:   2x+3=7⇒x=2\;2x + 3 = 7 \Rightarrow x = 2.

Check: 4(2)−1=74(2) - 1 = 7 ✓   Solution: (2,1)(2,1).

Example
Elimination needing multiplication (both equations)

Solve {3x+4y=102x+3y=7\begin{cases} 3x + 4y = 10 \\ 2x + 3y = 7 \end{cases}

To cancel xx, make both xx-coefficients 66. Multiply the first by 22 and the second by 33:

6x+8y=206x+9y=216x + 8y = 20 \qquad 6x + 9y = 21

Subtract: (6x+8y)−(6x+9y)=20−21⇒−y=−1⇒y=1(6x+8y) - (6x+9y) = 20 - 21 \Rightarrow -y = -1 \Rightarrow y = 1.

Back-substitute into 3x+4y=103x + 4y = 10:   3x+4=10⇒x=2\;3x + 4 = 10 \Rightarrow x = 2.

Check: 2(2)+3(1)=72(2) + 3(1) = 7 ✓   Solution: (2,1)(2,1).

Tip

Tips for elimination: Line up like variables in columns before you start. When you subtract, change the sign of every term in the equation you subtract. Double-check signs, since that is the most common mistake.

Try it
Try it: eliminate

Solve {5x+2y=163x−4y=20\begin{cases} 5x + 2y = 16 \\ 3x - 4y = 20 \end{cases}.

Show the answer

Multiply the first by 22: 10x+4y=3210x + 4y = 32. Add the second: 13x=5213x = 52, so x=4x = 4. Then 5(4)+2y=165(4) + 2y = 16 gives y=−2y = -2. Check: 3(4)−4(−2)=203(4) - 4(-2) = 20. Solution (4,−2)(4, -2).

How Many Solutions? Three Possibilities

Concept
One, None, or Infinitely Many

Two lines can meet in exactly three ways:

  • One solution: the lines cross once (different slopes). This is the usual case.
  • No solution: the lines are parallel (same slope, different yy-intercept). They never meet.
  • Infinitely many solutions: the two equations are really the same line (same slope and same intercept). Every point on the line works.

Two lines in a plane can only cross once, never meet, or coincide, and the slopes decide which. Different slopes: the lines separate at a steady rate in one direction and close in on the other, so they cross exactly once. Equal slopes: the gap between them never changes, so they never meet (different intercepts) or are the same line (same intercept).

Example
Spotting the special cases
xy−3−2−112−8−6−4−2246y = 2x + 1y = 2x − 3
Same slope, different intercepts: the gap of 44 never closes.

No solution: {y=2x+1y=2x−3\begin{cases} y = 2x + 1 \\ y = 2x - 3 \end{cases} Same slope 22, different intercepts ⇒\Rightarrow parallel ⇒\Rightarrow no solution.

Infinitely many: {2x+y=44x+2y=8\begin{cases} 2x + y = 4 \\ 4x + 2y = 8 \end{cases} The second equation is just the first times 22, so they are the same line ⇒\Rightarrow infinitely many solutions.

Side note
Where it goes wrong

Reading 0=00 = 0 at the end of elimination as "the solution is (0,0)(0, 0)." A true statement with no variables means the two equations describe the same line, so every point on it is a solution.

Tip

Algebra clue: If your work leads to a false statement like 0=60 = 6, there is no solution. If it leads to an always-true statement like 0=00 = 0, there are infinitely many solutions.

Try it
Try it: how many?

Without solving, how many solutions: (a) 3x−y=23x - y = 2, 6x−2y=56x - 2y = 5; (b) x+4y=1x + 4y = 1, 2x+8y=22x + 8y = 2; (c) x−y=0x - y = 0, x+y=4x + y = 4?

Show the answer

(a) Both have slope 33 (y=3x−2y = 3x - 2 and y=3x−2.5y = 3x - 2.5), different intercepts: none. (b) The second is twice the first: the same line, infinitely many. (c) Slopes 11 and −1-1 differ: exactly one, (2,2)(2, 2).

Choosing the Best Method

Concept
Which Method Should I Use?
  • Graphing — great for a quick picture or when you want to see the answer; best with clean integer intersections.
  • Substitution — best when a variable is already isolated or has a coefficient of 11 (easy to solve for).
  • Elimination — best when both equations are in ax+by=cax + by = c form, especially if coefficients line up or match easily.

There is no single “right” method; pick whichever needs the least work for the problem in front of you.

All three methods find the same answer, so the choice is about avoiding fractions and sign errors. A variable already alone invites substitution; matching or opposite coefficients invite elimination; a quick sketch shows roughly where the answer is and catches an algebra slip.

Side note
Where it goes wrong

Forcing substitution on 3x+4y=103x + 4y = 10, 2x+3y=72x + 3y = 7: isolating xx gives x=10−4y3x = \tfrac{10 - 4y}{3}, and the fractions multiply the chances of an error. Elimination with multipliers 22 and 33 stays in whole numbers.

Try it
Try it: pick and solve

Choose a method for {y=3x−1y=x+3\begin{cases} y = 3x - 1 \\ y = x + 3 \end{cases}, solve it, and explain the choice.

Show the answer

Both equations give yy, so set them equal (substitution): 3x−1=x+33x - 1 = x + 3, 2x=42x = 4, x=2x = 2, and y=2+3=5y = 2 + 3 = 5. Solution (2,5)(2, 5); no rearranging was needed.

Systems of Linear Inequalities

Concept
Shading the Solution Region

A system of inequalities uses <, >, ≤, ≥<,\,>,\,\le,\,\ge instead of ==. Instead of a single point, the solution is a whole region of the plane.

Steps: (1) Graph each boundary line. Use a solid line for ≤\le or ≥\ge and a dashed line for << or >>. (2) Shade the correct side of each line. (3) The solution is the overlap where the shadings cross. Any point in that overlap satisfies both inequalities.

Each linear inequality is satisfied by a whole half-plane: the boundary line splits the plane in two, and every point on one side passes while every point on the other fails (a point can only switch from passing to failing by crossing the line). The system keeps the points in every half-plane at once, their overlap. A test point decides which side is which.

Example
Testing points in an inequality system
xy−3−2−11234−4−3−2−112345(0, 0)(2, 1)
The overlap of y≥x−1y \ge x - 1 (solid edge) and y<−x+3y < -x + 3 (dashed edge). Corner (2,1)(2, 1) is not included.

Consider {y≥x−1y<−x+3\begin{cases} y \ge x - 1 \\ y < -x + 3 \end{cases}

Use a test point to decide which side to shade and to check membership.

Test (0,0)(0,0):   0≥0−1\;0 \ge 0 - 1 (true) and 0<0+30 < 0 + 3 (true). Both hold, so (0,0)(0,0) is in the solution region.

Test (3,3)(3,3):   3≥3−1=2\;3 \ge 3 - 1 = 2 (true) but 3<−3+3=03 < -3 + 3 = 0 (false). One fails, so (3,3)(3,3) is not in the region.

The solution is the overlapping band above the line y=x−1y = x-1 and below the line y=−x+3y = -x+3.

Side note
Where it goes wrong

Shading "above" for every ≥\ge without solving for yy first. For −y≥x−1-y \ge x - 1, dividing by −1-1 flips it to y≤1−xy \le 1 - x: the solutions are below the line. Test a point when in doubt.

Tip

Tip: (0,0)(0,0) is the easiest test point to plug in, as long as no boundary line passes through the origin. A point is a solution only if it satisfies every inequality.

Try it
Try it: in the region?

For y≥x−1y \ge x - 1 and y<−x+3y < -x + 3, decide whether (1,1)(1, 1), (3,0)(3, 0) and (−2,5)(-2, 5) are solutions.

Show the answer

(1,1)(1, 1): 1≥01 \ge 0 and 1<21 < 2, yes. (3,0)(3, 0): 0≥20 \ge 2 fails, no. (−2,5)(-2, 5): 5≥−35 \ge -3 holds but 5<55 < 5 fails, no (it is on the dashed boundary, which is excluded).

Applications: Word Problems

Concept
Turning Words into a System

Many word problems hide a 2×22\times2 system. Steps: (1) Define two variables clearly. (2) Write one equation for each fact in the problem. (3) Solve with any method. (4) Answer in a full sentence and check that it makes sense.

Two unknowns need two independent facts, and word problems almost always supply one fact that counts (how many tickets) and one that measures (how many dollars). Each fact alone allows many combinations; the two together pin down one.

Example
Cost / number problem
ac12345678123456789101112(4, 6)
Counting line a+c=10a + c = 10 and money line 5a+3c=385a + 3c = 38 cross at (4,6)(4, 6).

A theater sells $5 adult tickets and $3 child tickets. One night they sold 1010 tickets for a total of $38. How many of each?

Define: a=a = adult tickets, c=c = child tickets.

System: {a+c=105a+3c=38\begin{cases} a + c = 10 \\ 5a + 3c = 38 \end{cases}

Solve by substitution: a=10−ca = 10 - c, so 5(10−c)+3c=38⇒50−2c=38⇒c=65(10-c) + 3c = 38 \Rightarrow 50 - 2c = 38 \Rightarrow c = 6, then a=4a = 4.

Check: 5(4)+3(6)=20+18=385(4) + 3(6) = 20 + 18 = 38 ✓   Answer: 44 adult and 66 child tickets.

Side note
Where it goes wrong

Writing both facts as counts: a+c=10a + c = 10 and 5+3=385 + 3 = 38 "somehow." Each price multiplies its own count: the money equation is 5a+3c=385a + 3c = 38. Check the answer against the story: 44 adults and 66 children make 1010 tickets and $20+$18=$38\$20 + \$18 = \$38.

Example
Mixture problem

A chemist mixes a 20%20\% acid solution with a 50%50\% acid solution to make 3030 mL of a 40%40\% acid solution. How much of each?

Define: x=x = mL of 20%20\% solution, y=y = mL of 50%50\% solution.

System: {x+y=300.20x+0.50y=0.40(30)=12\begin{cases} x + y = 30 \\ 0.20x + 0.50y = 0.40(30) = 12 \end{cases}

Solve: x=30−yx = 30 - y, so 0.20(30−y)+0.50y=12⇒6+0.30y=12⇒y=200.20(30-y) + 0.50y = 12 \Rightarrow 6 + 0.30y = 12 \Rightarrow y = 20, then x=10x = 10.

Check: 0.20(10)+0.50(20)=2+10=120.20(10) + 0.50(20) = 2 + 10 = 12 ✓   Answer: 1010 mL of 20%20\% and 2020 mL of 50%50\%.

Tip

Tip: Distance–rate–time and current problems often become systems too. If a boat's speed is bb and the current is cc, then downstream speed is b+cb+c and upstream speed is b−cb-c. Two trips give you two equations.

Try it
Try it: coins

A jar holds 3030 coins, all dimes and quarters, worth $4.80\$4.80. How many of each?

Show the answer

Let dd dimes and qq quarters. Count: d+q=30d + q = 30. Value in cents: 10d+25q=48010d + 25q = 480. Substitute d=30−qd = 30 - q: 300−10q+25q=480300 - 10q + 25q = 480, so 15q=18015q = 180 and q=12q = 12, d=18d = 18. Check: 180+300=480180 + 300 = 480 cents.

What a System Is Actually Asking

Concept
One equation, many answers; two equations, usually one

A single equation like 2x+y=72x + y = 7 has infinitely many solutions — pick any xx and yy follows. Its picture is a whole line of points. A system puts two such equations side by side and asks for the pairs that satisfy BOTH at once, which is why its picture is the place where two lines meet.

That is the whole idea, and it explains the shape of every method: you are not solving two separate equations, you are looking for the one input pair that keeps both statements true. Every legal step must preserve that pair — which is exactly what substitution and elimination are built to do.

Tip
Three possible outcomes, and how each one announces itself

One solution. The lines have different slopes and cross once. The algebra ends with a normal statement like x=3x = 3.

No solution. The lines are parallel and distinct. The algebra ends with something FALSE and variable-free, such as 0=50 = 5.

Infinitely many solutions. The two equations describe the same line. The algebra ends with something TRUE and variable-free, such as 0=00 = 0, and the answer is the whole line, usually written y=mx+by = mx + b or as (t, mt+b)(t,\ mt + b).

Notice what decides the case: whether the variables all disappear, and then whether what is left is true.

Side note
A pair, not a number

The answer to a system is a POINT. Writing "x=3x = 3" is half an answer; the solution is (3,2)(3, 2). Losing the second coordinate is the single most common way to lose marks on this topic.

Substitution, Step by Step

Tip
The procedure

1. Pick the variable that is cheapest to isolate — one with a coefficient of 11 or −1-1 if there is one.

2. Solve that equation for it, giving an expression in the other variable.

3. Substitute that expression into the OTHER equation. (Into the same one and you get 0=00 = 0, which tells you nothing.)

4. Solve the resulting one-variable equation.

5. Back-substitute to get the second value, and state the answer as a point.

6. Check the point in BOTH original equations.

Example
Worked: a clean substitution

Solve ;y=2x−1;;y = 2x - 1; and ;3x+2y=12;3x + 2y = 12.

Step 1 — already isolated. The first equation hands us yy for free.

Step 2 — substitute into the other equation. 3x+2(2x−1)=123x + 2(2x - 1) = 12.

Step 3 — solve. 3x+4x−2=123x + 4x - 2 = 12, so 7x=147x = 14 and x=2x = 2.

Step 4 — back-substitute. y=2(2)−1=3y = 2(2) - 1 = 3.

Answer. (2,3)(2, 3).

Check. First: 3=2(2)−13 = 2(2) - 1 ✓. Second: 3(2)+2(3)=123(2) + 2(3) = 12 ✓.

Example
Worked: when nothing is isolated yet

Solve ;x−3y=7;;x - 3y = 7; and ;2x+5y=3;2x + 5y = 3.

Step 1 — choose. xx in the first equation has coefficient 11, so isolating it costs nothing: x=7+3yx = 7 + 3y.

Step 2 — substitute. 2(7+3y)+5y=32(7 + 3y) + 5y = 3.

Step 3 — solve. 14+6y+5y=314 + 6y + 5y = 3, so 11y=−1111y = -11 and y=−1y = -1.

Step 4 — back-substitute. x=7+3(−1)=4x = 7 + 3(-1) = 4.

Answer. (4,−1)(4, -1).

Check. 4−3(−1)=74 - 3(-1) = 7 ✓ and 2(4)+5(−1)=32(4) + 5(-1) = 3 ✓.

Side note
Why substitution is allowed

Replacing xx by 7+3y7 + 3y is legitimate because the first equation SAYS those two things are the same number. You are not changing the second equation; you are writing one of its quantities under a different name.

Elimination, Step by Step

Tip
The procedure

1. Line the equations up so like terms sit above like terms.

2. Choose a variable to kill. Multiply one or both equations by constants so its coefficients become opposites (or equal).

3. Add the equations (or subtract, if you made them equal). One variable disappears.

4. Solve for the survivor.

5. Back-substitute into either original equation, and state the point.

6. Check in both originals.

Example
Worked: one multiplication is enough

Solve ;2x+3y=12;;2x + 3y = 12; and ;x−y=1;x - y = 1.

Step 1 — choose a target. Kill xx: the second equation has coefficient 11, so multiply it by −2-2.

Step 2 — scale. −2x+2y=−2-2x + 2y = -2.

Step 3 — add. (2x+3y)+(−2x+2y)=12+(−2)(2x + 3y) + (-2x + 2y) = 12 + (-2), so 5y=105y = 10 and y=2y = 2.

Step 4 — back-substitute. x−2=1x - 2 = 1, so x=3x = 3.

Answer. (3,2)(3, 2).

Check. 2(3)+3(2)=122(3) + 3(2) = 12 ✓ and 3−2=13 - 2 = 1 ✓.

Example
Worked: both equations need scaling

Solve ;3x+4y=10;;3x + 4y = 10; and ;5x−6y=4;5x - 6y = 4.

Step 1 — choose a target. Kill yy. The coefficients are 44 and −6-6, whose least common multiple is 1212.

Step 2 — scale both. Multiply the first by 33: 9x+12y=309x + 12y = 30. Multiply the second by 22: 10x−12y=810x - 12y = 8.

Step 3 — add. 19x=3819x = 38, so x=2x = 2.

Step 4 — back-substitute. 3(2)+4y=103(2) + 4y = 10, so 4y=44y = 4 and y=1y = 1.

Answer. (2,1)(2, 1).

Check. 3(2)+4(1)=103(2) + 4(1) = 10 ✓ and 5(2)−6(1)=45(2) - 6(1) = 4 ✓.

Side note
Why adding two equations is legal

If A=BA = B and C=DC = D, then A+C=B+DA + C = B + D — you added equal amounts to the two sides of a true statement. The step is reversible (subtract the same equation again), so no solution is gained and none is lost.

Choosing a Method

Concept
Look at the coefficients before you start

Both methods always work, so the choice is about arithmetic, not correctness.

Use substitution when a variable is already alone (y=…y = \ldots) or has a coefficient of 11 or −1-1 — isolating it costs nothing and creates no fractions.

Use elimination when every coefficient is 22 or bigger, or when one variable already has opposite coefficients in the two equations. Substituting there would create fractions for no reason.

Use graphing only to SEE what is going on or to check an answer. A graph gives an approximate crossing point; it cannot certify (73,−13)\left(\tfrac{7}{3}, -\tfrac{1}{3}\right).

Example
The same system both ways

Solve ;x+2y=8;;x + 2y = 8; and ;3x−2y=4;3x - 2y = 4.

By elimination. The yy coefficients are already opposites: adding gives 4x=124x = 12, so x=3x = 3, then 3+2y=83 + 2y = 8 gives y=52y = \tfrac52. That is two lines of work.

By substitution. x=8−2yx = 8 - 2y, then 3(8−2y)−2y=43(8 - 2y) - 2y = 4, so 24−8y=424 - 8y = 4, y=52y = \tfrac52, and x=3x = 3. Also correct, but it took a distribution and a subtraction more.

Answer. (3,52)\left(3, \tfrac52\right) — and the check is the same either way: 3+5=83 + 5 = 8 ✓, 9−5=49 - 5 = 4 ✓.

No Solution, and Infinitely Many

Example
Worked: a system with no solution

Solve ;2x+4y=6;;2x + 4y = 6; and ;x+2y=5;x + 2y = 5.

Step 1 — eliminate. Multiply the second by −2-2: −2x−4y=−10-2x - 4y = -10. Add: 0=−40 = -4.

Step 2 — read it. Every variable vanished and what is left is FALSE, so no pair (x,y)(x, y) can satisfy both equations.

Answer. No solution.

Why, in a picture. Both lines have slope −12-\tfrac12, but the first passes through (0,1.5)(0, 1.5) and the second through (0,2.5)(0, 2.5): parallel and distinct, so they never meet.

Example
Worked: a system with infinitely many solutions

Solve ;3x−y=4;;3x - y = 4; and ;6x−2y=8;6x - 2y = 8.

Step 1 — eliminate. Multiply the first by −2-2: −6x+2y=−8-6x + 2y = -8. Add: 0=00 = 0.

Step 2 — read it. The variables vanished and what is left is TRUE, so the second equation was the first one in disguise (it is exactly twice it).

Answer. Every point on y=3x−4y = 3x - 4; in parametric form (t, 3t−4)(t,\ 3t - 4) for any real tt.

Check the logic. Two solutions of it: (0,−4)(0, -4) and (2,2)(2, 2) — both satisfy 6x−2y=86x - 2y = 8 as well.

Tip
Spotting the case without solving

Write both equations as ax+by=cax + by = c. Compare the ratios a1a2\dfrac{a_1}{a_2}, b1b2\dfrac{b_1}{b_2}, c1c2\dfrac{c_1}{c_2}.

If the first two differ, the lines cross: one solution.

If all three are equal, it is one line twice: infinitely many.

If the first two are equal but the third differs, the lines are parallel: no solution.

In the example above, 21=42=2\tfrac{2}{1} = \tfrac{4}{2} = 2 but 65≠2\tfrac{6}{5} \ne 2 — parallel, as found.

Systems in Words

Concept
Two unknowns need two facts

A word problem becomes a system as soon as you name the unknowns and find two independent statements about them. Almost always one statement COUNTS things (tickets, coins, litres) and the other MEASURES them (dollars, value, concentration) — that pairing is what makes the two equations independent rather than the same fact twice.

Example
Worked: tickets at two prices

A cinema sold 200200 tickets and took $1840\$1840. Adults pay $12\$12 and children $5\$5. How many of each were sold?

Step 1 — name them. Let aa be the number of adult tickets and cc the number of child tickets.

Step 2 — the counting fact. a+c=200a + c = 200.

Step 3 — the money fact. 12a+5c=184012a + 5c = 1840.

Step 4 — eliminate cc. Multiply the counting equation by −5-5: −5a−5c=−1000-5a - 5c = -1000. Add: 7a=8407a = 840, so a=120a = 120.

Step 5 — back-substitute. c=200−120=80c = 200 - 120 = 80.

Answer. 120120 adult and 8080 child tickets.

Check. 120+80=200120 + 80 = 200 ✓ and 12(120)+5(80)=1440+400=184012(120) + 5(80) = 1440 + 400 = 1840 ✓.

Why −5-5? Multiplying the counting equation by the CHILD price turns it into "what the takings would have been if everyone paid child price". Subtracting that from the real takings leaves only the extra $7\$7 each adult paid — so the division by 77 is counting adults.

Example
Worked: a boat and a current

A boat covers 3636 km downstream in 22 hours and the same 3636 km back in 33 hours. Find its speed in still water and the speed of the current.

Step 1 — name them. Let bb be the boat's speed in still water and cc the current, both in km/h.

Step 2 — turn distances into rates. Downstream the boat makes 362=18\tfrac{36}{2} = 18 km/h; upstream 363=12\tfrac{36}{3} = 12 km/h.

Step 3 — the two facts. Downstream the current helps: b+c=18b + c = 18. Upstream it hinders: b−c=12b - c = 12.

Step 4 — add and subtract. Adding: 2b=302b = 30, so b=15b = 15. Subtracting: 2c=62c = 6, so c=3c = 3.

Answer. 1515 km/h in still water, current 33 km/h.

Check. 15+3=1815 + 3 = 18 ✓ and 15−3=1215 - 3 = 12 ✓ — and the current came out positive, as it must when the return trip is slower.

Example
Worked: mixing two solutions

How many litres of a 20%20\% acid solution and of a 50%50\% solution make 1212 litres of a 30%30\% solution?

Step 1 — name them. xx litres of the weak one, yy litres of the strong one.

Step 2 — the volume fact. x+y=12x + y = 12.

Step 3 — the acid fact. 0.20x+0.50y=0.30(12)=3.60.20x + 0.50y = 0.30(12) = 3.6.

Step 4 — clear the decimals and eliminate. Multiply the acid equation by 1010: 2x+5y=362x + 5y = 36. Multiply the volume equation by −2-2: −2x−2y=−24-2x - 2y = -24. Add: 3y=123y = 12, so y=4y = 4 and x=8x = 8.

Answer. 88 litres of the 20%20\% and 44 litres of the 50%50\%.

Check. 0.20(8)+0.50(4)=1.6+2=3.60.20(8) + 0.50(4) = 1.6 + 2 = 3.6 ✓, which is 30%30\% of 1212 ✓. Sanity: the target 30%30\% sits nearer 20%20\% than 50%50\%, so most of the mixture should be the weak solution — and it is.

When the Coefficients Are Letters

Concept
The method does not know whether a symbol is a number

Elimination multiplies, adds and divides. None of those steps ever asked whether aa was 77 or just the letter aa — so the same procedure solves ax+by=pax + by = p exactly as it solves 2x+3y=72x + 3y = 7. What changes is the ending: instead of a number you get a FORMULA, and you have to say when that formula is allowed to exist.

Example
Worked: a letter on the right

Solve ;x+y=a;;x + y = a; and ;x−y=b;;x - y = b; for xx and yy.

Step 1 — add. 2x=a+b2x = a + b, so x=a+b2x = \dfrac{a + b}{2}.

Step 2 — subtract. 2y=a−b2y = a - b, so y=a−b2y = \dfrac{a - b}{2}.

Answer. x=a+b2x = \dfrac{a + b}{2}, y=a−b2y = \dfrac{a - b}{2} — the familiar "half the sum, half the difference".

Check. Their sum is aa ✓ and their difference is bb ✓, whatever aa and bb are.

Example
Worked: letters in the coefficients, with the condition stated

Solve ;ax+by=p;;ax + by = p; and ;cx+dy=q;;cx + dy = q; for xx and yy.

Step 1 — eliminate yy. Multiply the first by dd and the second by bb, then subtract: (ad−bc)x=dp−bq(ad - bc)x = dp - bq.

Step 2 — divide. x=dp−bqad−bcx = \dfrac{dp - bq}{ad - bc}, and the mirror-image calculation gives y=aq−cpad−bcy = \dfrac{aq - cp}{ad - bc}.

Step 3 — state the condition. Dividing is only allowed when ad−bc≠0ad - bc \ne 0. That quantity is the determinant of the system, and it is the same number that decides the three cases from earlier: when it is zero the two lines are parallel or identical, and there is no single point to report.

Check with numbers. Put a,b,c,d,p,q=2,3,1,−1,7,1a, b, c, d, p, q = 2, 3, 1, -1, 7, 1: the formula gives x=−7−3−2−3=2x = \tfrac{-7 - 3}{-2 - 3} = 2 and y=2−7−5=1y = \tfrac{2 - 7}{-5} = 1, and indeed 2(2)+3(1)=72(2) + 3(1) = 7 ✓, 2−1=12 - 1 = 1 ✓.

Side note
Always say where the formula breaks

An answer in letters is not finished until you have said which values are excluded. "x=dp−bqad−bcx = \dfrac{dp - bq}{ad - bc}, provided ad≠bcad \ne bc" is a complete answer; the fraction on its own is not.

Going Deeper: Advanced Systems

Concept
Systems in Three Variables

A three-variable system has three equations in xx, yy, and zz. A solution is an ordered triple (x,y,z)(x,y,z) that satisfies all three. Geometrically each equation is a plane in space, and a single solution is the point where all three planes meet.

Elimination strategy: pick one variable to remove. Combine equations in two different pairs to eliminate that same variable, leaving a 2×22\times2 system in the other two variables. Solve that smaller system, then back-substitute to recover the third variable.

Example
Three-variable elimination, fully stepped out

Solve

{x+y+z=6x−y+z=22x+y−z=1\begin{cases} x + y + z = 6 \\ x - y + z = 2 \\ 2x + y - z = 1 \end{cases}

Step 1. Eliminate zz from two pairs. Add equation (1) and equation (3):

(x+y+z)+(2x+y−z)=6+1  ⇒  3x+2y=7(x+y+z) + (2x+y-z) = 6 + 1 \;\Rightarrow\; 3x + 2y = 7

Add equation (2) and equation (3):

(x−y+z)+(2x+y−z)=2+1  ⇒  3x=3  ⇒  x=1(x-y+z) + (2x+y-z) = 2 + 1 \;\Rightarrow\; 3x = 3 \;\Rightarrow\; x = 1

Step 2. Back-substitute x=1x=1 into 3x+2y=73x + 2y = 7:

3(1)+2y=7  ⇒  2y=4  ⇒  y=23(1) + 2y = 7 \;\Rightarrow\; 2y = 4 \;\Rightarrow\; y = 2

Step 3. Find zz from equation (1):   1+2+z=6⇒z=3\;1 + 2 + z = 6 \Rightarrow z = 3.

Check (all three): 1+2+3=61+2+3=6 ✓,   1−2+3=2\;1-2+3=2 ✓,   2(1)+2−3=1\;2(1)+2-3=1 ✓

Solution: (x,y,z)=(1,2,3)(x,y,z) = (1,2,3).

Concept
Systems With a Parameter

Sometimes a coefficient is a letter (a parameter) and we ask: for which values does the system have one, none, or infinitely many solutions? Compare the ratios of the coefficients. For

{a1x+b1y=c1a2x+b2y=c2\begin{cases} a_1 x + b_1 y = c_1 \\ a_2 x + b_2 y = c_2 \end{cases}
  • One solution when a1a2≠b1b2\dfrac{a_1}{a_2} \ne \dfrac{b_1}{b_2} (different slopes).
  • Infinitely many when a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2} (same line).
  • No solution when a1a2=b1b2≠c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} \ne \dfrac{c_1}{c_2} (parallel lines).
Example
Choosing the parameter

For which value of kk does {x+2y=32x+ky=m\begin{cases} x + 2y = 3 \\ 2x + ky = m \end{cases} fail to have a unique solution?

The xx-ratio is 12\dfrac{1}{2}. The yy-ratio is 2k\dfrac{2}{k}. These match when 2k=12\dfrac{2}{k} = \dfrac{1}{2}, i.e. k=4k = 4. So:

  • If k≠4k \ne 4: exactly one solution for any mm.
  • If k=4k = 4 and m=6m = 6: the second equation is just 2×2\times the first, so infinitely many solutions.
  • If k=4k = 4 and m≠6m \ne 6: parallel lines, so no solution.
Concept
Symmetric Systems: the x+yx+y and xyxy Trick

A system is symmetric if swapping xx and yy leaves it unchanged (for example, using x+yx+y, xyxy, or x2+y2x^2+y^2). Let s=x+ys = x + y (the sum) and p=xyp = xy (the product). A key identity converts squares into these:

x2+y2=(x+y)2−2xy=s2−2px^2 + y^2 = (x+y)^2 - 2xy = s^2 - 2p

Once you know ss and pp, the two numbers xx and yy are exactly the roots of

t2−s t+p=0.t^2 - s\,t + p = 0.
Example
Solving a symmetric system

Solve {x+y=5x2+y2=13\begin{cases} x + y = 5 \\ x^2 + y^2 = 13 \end{cases}

Step 1. Let s=x+y=5s = x+y = 5. Use the identity x2+y2=s2−2px^2 + y^2 = s^2 - 2p:

13=52−2p=25−2p  ⇒  2p=12  ⇒  p=xy=613 = 5^2 - 2p = 25 - 2p \;\Rightarrow\; 2p = 12 \;\Rightarrow\; p = xy = 6

Step 2. Now xx and yy are the roots of t2−5t+6=0t^2 - 5t + 6 = 0, which factors as (t−2)(t−3)=0(t-2)(t-3)=0, giving t=2t = 2 or t=3t = 3.

Step 3. So {x,y}={2,3}\{x,y\} = \{2,3\}. The solutions are (2,3)(2,3) and (3,2)(3,2).

Check: 2+3=52 + 3 = 5 ✓   and   22+32=4+9=132^2 + 3^2 = 4 + 9 = 13 ✓

Concept
Linear Programming: Optimizing Over a Region

When a system of linear inequalities defines a feasible region, we often want to maximize (or minimize) a linear objective function such as P=3x+4yP = 3x + 4y. The Corner-Point Theorem says the maximum and minimum of a linear objective always occur at a vertex (corner) of the feasible region.

Steps: (1) Graph the constraints and find the feasible region. (2) Find each corner point (each is the intersection of two boundary lines). (3) Evaluate the objective PP at every corner. (4) The largest value is the maximum; the smallest is the minimum.

Example
Maximizing an objective
xy−112345678246810(2, 6)(5, 0)(0, 8)
The feasible region and its corners; the best value is always at a corner.

Maximize P=40x+30yP = 40x + 30y subject to

{x+y≤82x+y≤10x≥0,  y≥0\begin{cases} x + y \le 8 \\ 2x + y \le 10 \\ x \ge 0,\; y \ge 0 \end{cases}

Find the corners. The boundary lines are x+y=8x+y=8 and 2x+y=102x+y=10, together with the axes.

  • (0,0)(0,0) — origin.
  • (5,0)(5,0) — where 2x+y=102x+y=10 meets y=0y=0.
  • (0,8)(0,8) — where x+y=8x+y=8 meets x=0x=0.
  • (2,6)(2,6) — solve x+y=8x+y=8 and 2x+y=102x+y=10: subtract to get x=2x=2, then y=6y=6.

Evaluate P=40x+30yP = 40x + 30y at each corner:

Maximum: P=260P = 260 at the corner (2,6)(2,6).

Concept
Nonlinear Preview: a Line Meets a Parabola

Not every system is two lines. When one equation is a parabola (like y=x2y = x^2) and the other is a line, substitution still works, but the result is a quadratic. A line and a parabola can cross in two points, one point (tangent), or none, depending on the discriminant of that quadratic.

Example
Line intersecting a parabola
xy−3−2−112−112345(−1, 1)(2, 4)
The line y=x+2y = x + 2 cuts y=x2y = x^2 twice.

Solve {y=x2y=x+2\begin{cases} y = x^2 \\ y = x + 2 \end{cases}

Step 1. Substitute y=x2y = x^2 into y=x+2y = x+2:

x2=x+2  ⇒  x2−x−2=0x^2 = x + 2 \;\Rightarrow\; x^2 - x - 2 = 0

Step 2. Factor: (x−2)(x+1)=0(x-2)(x+1) = 0, so x=2x = 2 or x=−1x = -1.

Step 3. Find each yy from y=x+2y = x+2: if x=2x=2, y=4y=4; if x=−1x=-1, y=1y=1.

Check: y=x2y = x^2 gives 22=42^2 = 4 ✓ and (−1)2=1(-1)^2 = 1 ✓

Two solutions: (2,4)(2,4) and (−1,1)(-1,1).

Concept
A Peek at Determinants: Cramer's Rule

For a 2×22\times2 system

{ax+by=ecx+dy=f\begin{cases} a x + b y = e \\ c x + d y = f \end{cases}

the determinant of the coefficients is

D=∣abcd∣=ad−bc.D = \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc.

If D≠0D \ne 0 there is exactly one solution, given by Cramer's Rule:

x=∣ebfd∣D=ed−bfD,y=∣aecf∣D=af−ecD.x = \frac{\begin{vmatrix} e & b \\ f & d \end{vmatrix}}{D} = \frac{ed - bf}{D}, \qquad y = \frac{\begin{vmatrix} a & e \\ c & f \end{vmatrix}}{D} = \frac{af - ec}{D}.

Each numerator replaces one coefficient column with the constants ef\begin{smallmatrix} e \\ f \end{smallmatrix}. If D=0D = 0, the system has no unique solution (either none or infinitely many).

Example
Cramer's Rule in action

Solve {2x+3y=74x−y=7\begin{cases} 2x + 3y = 7 \\ 4x - y = 7 \end{cases} using determinants.

Here a=2,  b=3,  e=7a=2,\; b=3,\; e=7 and c=4,  d=−1,  f=7c=4,\; d=-1,\; f=7.

Main determinant:   D=∣234−1∣=(2)(−1)−(3)(4)=−2−12=−14.\;D = \begin{vmatrix} 2 & 3 \\ 4 & -1 \end{vmatrix} = (2)(-1) - (3)(4) = -2 - 12 = -14.

Solve for xx:   x=∣737−1∣D=(7)(−1)−(3)(7)−14=−28−14=2.\;x = \dfrac{\begin{vmatrix} 7 & 3 \\ 7 & -1 \end{vmatrix}}{D} = \dfrac{(7)(-1) - (3)(7)}{-14} = \dfrac{-28}{-14} = 2.

Solve for yy:   y=∣2747∣D=(2)(7)−(7)(4)−14=−14−14=1.\;y = \dfrac{\begin{vmatrix} 2 & 7 \\ 4 & 7 \end{vmatrix}}{D} = \dfrac{(2)(7) - (7)(4)}{-14} = \dfrac{-14}{-14} = 1.

Solution: (2,1)(2,1), matching the elimination result earlier.

Tip

Big picture: Every method here rests on the same idea — reduce a hard system to a simpler one. Three-variable elimination shrinks to a 2×22\times2; symmetric systems shrink to a single quadratic in tt; Cramer's Rule packages the answer as a ratio of determinants. Whenever a determinant is 00 (or ratios all match), watch for the “no solution / infinitely many” special cases.

Why It Works

Elimination is legitimate because adding equal quantities to both sides of an equation preserves it: if A=BA = B and C=DC = D then A+C=B+DA + C = B + D. Any solution of the original pair satisfies the new equation, and since the step is reversible (subtract again), no solutions are gained. Substitution is the same principle: replacing a quantity by something known to equal it changes nothing about the solution set.

Tip
Reading a proof

Do not read a proof the way you read a rule. Cover the last line, ask what the previous line forces, and only then uncover it. If a step feels like magic, that is the step to work by hand with a concrete number.

Formulas, Proofs & Tips

Tip
Solving systems
Substitution or elimination;parallel⇒no solution;same line⇒infinitely many\text{Substitution or elimination};\quad \text{parallel} \Rightarrow \text{no solution};\quad \text{same line} \Rightarrow \text{infinitely many}

What it means. A solution is a point on both lines, so the answer count is how many times they meet.

Example. x+y=5x+y=5 and x−y=1x-y=1: adding gives 2x=62x=6, so x=3x=3, y=2y=2.

Why it works. Elimination adds a multiple of one equation to the other. Since both sides are equal quantities, the new equation still holds for every common solution — but one variable is gone.

Tip. If the variables all vanish and leave a false statement (0=50=5), there is no solution; a true one (0=00=0) means infinitely many.