Skip to content
SAT essentials · Math

SAT systems of linear equations: substitution and elimination

A solution to a system makes both equations true at once. Substitution and elimination are two ways to find it; the graph shows where it is.

These are the concepts this skill rests on, the same pages as in the lesson.

What a Solution Is

One Point on Both Lines

A system of equations is two equations that must be true at the same time. A solution is an ordered pair (x,y)(x, y) that makes both equations true. Each linear equation graphs as a line, so the solution is the point the two lines share: where they cross.

Two lines on a grid: y = x + 2 and y = negative 2x + 8. They cross at the point (2, 4), which is on both lines. x y 2 4 2 4 6 8 O (2, 4) y = x + 2 y = −2x + 8 Check (2, 4) in both: 4 = 2 + 2 true 4 = −2(2) + 8 true On both lines, so (2, 4) is the solution.

The lines y=x+2y = x + 2 and y=−2x+8y = -2x + 8 cross at (2,4)(2, 4), and (2,4)(2, 4) makes both equations true. The point (1,3)(1, 3) is on the first line, since 3=1+23 = 1 + 2, but not the second, since −2(1)+8=6-2(1) + 8 = 6. A point on one line only is not a solution.

On a graphing calculator, type both equations as written and select the crossing point to read the solution. For most SAT systems, algebra is faster and gives you an exact fraction; use the graph to check the crossing.

Graph y=x+2y = x + 2 and a second line, y=kx+4y = kx + 4. It starts with k=−1k = -1, where the lines meet at (1,3)(1, 3). Set k=0k = 0: the shared point moves to (2,4)(2, 4). Set k=1k = 1: the lines are parallel, so there is no shared point and no solution.

A Solution You Are Given

Sometimes the question hands you the solution and asks for a missing constant. There is nothing to solve: substitute the pair into the equation that has the constant.

A given solution, (3, negative 1), substituted into each equation. In x minus y = 4 it checks; in 2x + ky = 4 it gives 6 minus k = 4, so k = 2. Given: the solution is (3, −1). 3 − (−1) = 4 checks 2(3) + k(−1) = 4 put it in 6 − k = 4 k = 2 the constant Substitute the pair; there is nothing to solve.

The solution to 2x+ky=42x + ky = 4 and x−y=4x - y = 4 is (3,−1)(3, -1). Put x=3x = 3 and y=−1y = -1 into the first equation: 2(3)+k(−1)=42(3) + k(-1) = 4, so 6−k=46 - k = 4 and k=2k = 2. Write k(−1)k(-1) with parentheses so the sign is not lost, and keep the order: the first number is always xx.

Half a pair. If only one coordinate is given, use the equation without the constant first. Suppose the solution has y=2y = 2, and the equations are x+3y=11x + 3y = 11 and ax−y=8ax - y = 8. The first gives x+6=11x + 6 = 11, so x=5x = 5. Now the full pair (5,2)(5, 2) goes into the second: 5a−2=85a - 2 = 8, so a=2a = 2.

Substitution

Substitute an Isolated Variable

When one equation already gives a variable by itself, replace that variable in the other equation with its expression. That leaves one equation in one variable.

Substitution. The first equation gives y as 2x minus 1. That whole expression, in parentheses, replaces y in 3x + 2y = 12, giving 7x minus 2 = 12, so x = 2 and y = 3. y = 2x − 1 3x + 2y = 12 3x + 2(2x − 1) = 12 7x − 2 = 12 x = 2, then y = 2(2) − 1 = 3 y is alone, so replace the y in the other equation with its expression. Keep the parentheses: 2(2x − 1) = 4x − 2

In y=2x−1y = 2x - 1 and 3x+2y=123x + 2y = 12, the yy in the second equation becomes (2x−1)(2x - 1):

3x+2(2x−1)=12⇒7x−2=12⇒x=23x + 2(2x - 1) = 12 \quad\Rightarrow\quad 7x - 2 = 12 \quad\Rightarrow\quad x = 2

Then y=2(2)−1=3y = 2(2) - 1 = 3. Keep the parentheses: the 2 multiplies the whole expression, so 2(2x−1)=4x−22(2x - 1) = 4x - 2, not 4x−14x - 1. The same move works when an equation gives a number, such as x=4x = 4: put the 4 in place of xx.

Set Two Expressions Equal

When both equations give the same variable, as in y=3x−5y = 3x - 5 and y=−x+3y = -x + 3, the two expressions must be equal at the solution.

Two lines on a grid: y = 3x minus 5 and y = negative x + 3. They cross at (2, 1), where both give the same y. x y 2 4 −2 2 4 6 O (2, 1) y = 3x − 5 y = −x + 3 Both equations give y. At the crossing the two y-values are equal, so set them equal: 3x − 5 = −x + 3 4x = 8, so x = 2

Set them equal and solve: 3x−5=−x+33x - 5 = -x + 3, so 4x=84x = 8 and x=2x = 2. Put x=2x = 2 into either equation: y=3(2)−5=1y = 3(2) - 5 = 1. On the graph, the crossing is the one place where both lines have the same yy for the same xx.

Elimination

Add When the Terms Are Opposites

If both sides of one equation are equal and both sides of another are equal, then the two left sides added together equal the two right sides added together. When one variable has opposite coefficients, adding makes it cancel.

Elimination by adding. 3x + 2y = 13 is stacked above 5x minus 2y = 11. The y terms, + 2y and minus 2y, are opposites, so adding the equations gives 8x = 24. 3x + 2y = 13 + 5x − 2y = 11 8x = 24 + 2y and − 2y are opposites: adding cancels y. x = 24 ÷ 8 = 3 Add the left sides and add the right sides.

3x+2y=133x + 2y = 13 and 5x−2y=115x - 2y = 11 add to 8x=248x = 24, so x=3x = 3. Put it back into either equation: 3(3)+2y=133(3) + 2y = 13, so y=2y = 2. Write the equations stacked, with the xx terms in one column and the yy terms in another, so matching terms are easy to see.

Subtract When the Terms Match

When one variable has the same coefficient in both equations, subtract one equation from the other.

Elimination by subtracting. 4x + 5y = 23 is stacked above 4x + y = 11. The x terms match, so subtracting the second equation from the first gives 4y = 12. 4x + 5y = 23 − (4x + y) = 11 4y = 12 4x and 4x match: subtracting cancels x. Subtract every term: 5y − y = 4y 23 − 11 = 12 y = 12 ÷ 4 = 3, then 4x + 5(3) = 23 gives x = 2.

4x+5y=234x + 5y = 23 minus 4x+y=114x + y = 11 gives 4y=124y = 12, so y=3y = 3, and then 4x+15=234x + 15 = 23 gives x=2x = 2. Subtracting changes the sign of every term of the second equation, its constant too. Adding these two equations would give 8x+6y=348x + 6y = 34, and nothing cancels.

Scale First, Then Eliminate

When no terms match, make them match: multiply one equation by a number so one variable's coefficients become opposites (or equal). Multiply every term, the constant included.

Scaling before elimination. 5x minus y = 9 is multiplied by 3, every term, giving 15x minus 3y = 27. Stacked under 2x + 3y = 7, the y terms are opposites, and adding gives 17x = 34. 3 × (5x − y = 9): 15x − 3y = 27 2x + 3y = 7 + 15x − 3y = 27 17x = 34 No terms match, so make them match: × 3 turns −y into −3y. x = 2, then 2(2) + 3y = 7, y = 1 Multiply every term, the constant too: 3 × 9 = 27.

In 2x+3y=72x + 3y = 7 and 5x−y=95x - y = 9, multiplying the second equation by 3 gives 15x−3y=2715x - 3y = 27. Now add: 17x=3417x = 34, so x=2x = 2.

  1. Back-substitute. Put x=2x = 2 into either original equation: 2(2)+3y=72(2) + 3y = 7, so y=1y = 1.
  2. Check the pair in both original equations: 2(2)+3(1)=72(2) + 3(1) = 7 and 5(2)−1=95(2) - 1 = 9.

If neither coefficient divides the other, as with 3x3x and 5x5x, scale both: multiply one equation by 5 and the other by 3, so both have 15x15x.

Combining Without Solving

Ask for What the Question Wants

A question may ask for x+yx + y, x−yx - y, or 3y3y instead of xx or yy. Before you solve, check whether adding or subtracting the equations gives the asked-for expression directly.

Combining without solving. 5x + 3y = 29 and 3x + 5y = 27 add to 8x + 8y = 56; dividing by 8 gives x + y = 7. 5x + 3y = 29 + 3x + 5y = 27 8x + 8y = 56 ÷ 8: x + y = 7 The coefficients swap: 5 and 3, then 3 and 5 Adding gives the same number of x and of y, so x + y comes out. Subtracting instead gives 2x − 2y = 2, so x − y = 1.

5x+3y=295x + 3y = 29 and 3x+5y=273x + 5y = 27 have swapped coefficients. Adding gives 8x+8y=568x + 8y = 56, and dividing by 8 gives x+y=7x + y = 7, with no solving at all. Subtracting gives 2x−2y=22x - 2y = 2, so x−y=1x - y = 1.

Sometimes one equation must be multiplied first. In general, look for numbers to multiply each equation by so that the left sides combine into the expression asked for, then do the same to the right sides.

A Repeated Block Is One Unknown

When the same expression, such as (x−2)(x - 2), appears in both equations, treat it as a single unknown. Give it one letter, solve for that letter, then answer the question.

A repeated block. In 3(x minus 2) + y = 10 and (x minus 2) minus y = 2, the block x minus 2 is renamed u. Then 3u + y = 10 and u minus y = 2 add to 4u = 12, so u = 3 and x = 5. 3(x − 2) + y = 10 (x − 2) − y = 2 Call x − 2 by one letter, u: 3u + y = 10 + u − y = 2 4u = 12 u = 3 so x − 2 = 3 and x = 5

In 3(x−2)+y=103(x - 2) + y = 10 and (x−2)−y=2(x - 2) - y = 2, call x−2x - 2 by the letter uu. Then 3u+y=103u + y = 10 and u−y=2u - y = 2 add to 4u=124u = 12, so u=3u = 3. If the question asks for x−2x - 2, the answer is 3; if it asks for xx, then x=5x = 5.

Systems on a Graph

Read a Line From Its Graph

To work with a graphed line, find its equation in the form y=mx+by = mx + b. The y-intercept bb is where the line crosses the yy-axis. The slope mm is the rise divided by the run between any two points on the line.

A line on a grid through (0, negative 1), (1, 1) and (2, 3). From (1, 1), a run of 1 to the right and a rise of 2 reach (2, 3), so the slope is 2. The line crosses the y-axis at negative 1. x y 2 4 −2 2 4 O run 1 rise 2 (0, −1) slope = rise ÷ run = 2 ÷ 1 = 2 y-intercept: −1 So the line is y = 2x − 1.

This line crosses the yy-axis at −1-1. From (1,1)(1, 1) to (2,3)(2, 3), it runs 1 and rises 2, so its slope is 2÷1=22 \div 1 = 2, and the line is y=2x−1y = 2x - 1. A line that falls from left to right has a negative slope.

  • To match a system to a graph, check one feature at a time: the sign of each slope, then each intercept. One wrong feature rules a choice out.
  • To test a third line, read the crossing point of the two graphed lines, then substitute it into the third equation. The third line passes through the solution only if the equation comes out true.
  • Read the scale first. If each gridline is worth 2, a point two gridlines up is at 4.
  • If a line crosses the yy-axis off the grid, find its slope from two points, then put one point into y=mx+by = mx + b and solve for bb.

How Many Solutions

Crossing, Parallel, or the Same Line

Two lines in a plane can do only three things, so a linear system has exactly one solution, no solution, or infinitely many solutions.

Three pictures of two lines. Lines with different slopes cross once: one solution. Lines with the same slope and different intercepts are parallel: no solution. Two equations of the same line: infinitely many solutions. crossing one solution different slopes parallel no solution same slope, new intercept same line infinitely many same slope, same intercept Two lines can never share exactly two points.

Compare the equations in slope-intercept form:

  • Different slopes: the lines cross once. Exactly one solution: y=3x+1y = 3x + 1 and y=−x+5y = -x + 5.
  • Same slope, different intercepts: the lines are parallel and never meet. No solution: y=3x+1y = 3x + 1 and y=3x−2y = 3x - 2.
  • Same slope and same intercept: the two equations describe one line, and every point on it is a solution. Infinitely many solutions: y=3x+1y = 3x + 1 and 2y=6x+22y = 6x + 2, which divides to y=3x+1y = 3x + 1.

A graphing calculator cannot always tell two parallel lines that are close together from one line, so decide the count with the equations.

The Coefficient Test

For equations in standard form, ax+by=cax + by = c, compare the coefficients directly. Write both equations with the variable terms on the left and the constant on the right first.

The coefficient test. 3x + 5y = 2 above 6x + 10y = 4. Each x and y coefficient is multiplied by 2. If the constant is also multiplied by 2 the lines are the same; if it is 7 instead, the lines are parallel. 3x + 5y = 2 × 2 × 2 × 2 6x + 10y = 4 The x and y terms share one factor, 2. Constant 4 = 2 × 2: same line, infinitely many. Constant 7 instead: parallel, no solution. Any other x-to-y mix: the lines cross once. Test number: 3 × 10 − 6 × 5 = 0
  1. Look for one factor that turns the first equation's xx-coefficient and yy-coefficient into the second's. In 3x+5y=23x + 5y = 2 and 6x+10y=46x + 10y = 4, the factor is 2.
  2. If no single factor works, the lines cross: exactly one solution.
  3. If one factor works, check the constant. Here 2×2=42 \times 2 = 4, so the equations are the same line: infinitely many. If the second constant were 7, the lines would be parallel: no solution.

A test that never divides: for a1x+b1y=c1a_1 x + b_1 y = c_1 and a2x+b2y=c2a_2 x + b_2 y = c_2, compute the test number a1b2−a2b1a_1 b_2 - a_2 b_1. Here 3×10−6×5=03 \times 10 - 6 \times 5 = 0. If the result is not zero, there is exactly one solution; if it is zero, check the constants. This works even when a coefficient is 0: for x=3x = 3 and 4x−y=24x - y = 2, it gives 1×(−1)−4×0=−11 \times (-1) - 4 \times 0 = -1, so exactly one solution.

Writing a partner equation. To give 3x−2y=63x - 2y = 6 a partner, multiply it by a number. Keep the scaled constant, 6x−4y=126x - 4y = 12, for infinitely many solutions; change it, 6x−4y=56x - 4y = 5, for no solution.

Infinitely Many, Written With a Letter

When a system has infinitely many solutions, every point of the shared line is a solution. A question can describe all of them with a letter, such as tt, that can be any real number.

The line x + 2y = 5 on a grid with three of its points marked: (5, 0) where t = 0, (3, 1) where t = 1, and (1, 2) where t = 2. Every point of the line is (5 minus 2t, t). x y −2 2 4 2 O t = 0 t = 1 t = 2 y = t, so x = 5 − 2t: every point is (5 − 2t, t) x + 2y = 5 and 3x + 6y = 15 are the same line.

x+2y=5x + 2y = 5 and 3x+6y=153x + 6y = 15 are the same line. Let y=ty = t. Then x+2t=5x + 2t = 5, so x=5−2tx = 5 - 2t, and every solution is (5−2t,t)(5 - 2t, t). Setting t=0,1,2t = 0, 1, 2 gives the points (5,0)(5, 0), (3,1)(3, 1), and (1,2)(1, 2).

To test a choice, substitute it into the shared line and simplify; the letter must cancel. (t,5−2t)(t, 5 - 2t) gives t+2(5−2t)=10−3tt + 2(5 - 2t) = 10 - 3t, which is not always 5, so the swapped pair is wrong.

Choosing a Constant

A question can put a letter such as kk in one equation and ask which value gives no solution or infinitely many. Use the coefficient test, in three steps.

Finding a constant. 2x + 3y = x minus y + 9 is collected to x + 4y = 9. Against kx + 8y = 20, the y factor is 2, so k = 2; then 2 times 9 is 18, not 20, so the system has no solution. 2x + 3y = x − y + 9 collect: x + 4y = 9 × 2 × 2 × 2 k x + 8y = 20 1. Factor from y: 8 ÷ 4 = 2 2. Same factor on x: k = 2 × 1 = 2 3. Constant: 2 × 9 = 18, not 20, so the lines are parallel: no solution.
  1. Collect the terms. Write each equation as ax+by=cax + by = c. Here 2x+3y=x−y+92x + 3y = x - y + 9 becomes x+4y=9x + 4y = 9.
  2. Find the factor from a pair of coefficients you know, and apply it where the letter is. Against kx+8y=20kx + 8y = 20, the factor is 8÷4=28 \div 4 = 2, so k=2×1=2k = 2 \times 1 = 2.
  3. Check the constants. 2×9=182 \times 9 = 18, not 20, so at k=2k = 2 the lines are parallel: no solution.

If the letter is the constant, as in x+4y=9x + 4y = 9 and 2x+8y=c2x + 8y = c, the left sides already match: c=18c = 18 gives infinitely many solutions, and any other value gives none. Exactly one solution is impossible. A slider on a graphing calculator shows the lines move as the letter changes, but the constant check still has to be done by hand.

If the letter appears in both equations, as in kx+2y=8kx + 2y = 8 and 2x+ky=82x + ky = 8, set k×k−2×2=0k \times k - 2 \times 2 = 0: k=2k = 2 or k=−2k = -2. Check each. At k=2k = 2 both equations are 2x+2y=82x + 2y = 8, the same line. At k=−2k = -2 the first is −2x+2y=8-2x + 2y = 8, which times −1-1 is 2x−2y=−82x - 2y = -8, while the second is 2x−2y=82x - 2y = 8: parallel, no solution.

Word Problems With Two Unknowns

Name Both Unknowns, Then Write Two Equations

A word problem gives two facts about two unknown amounts. Name each unknown with "the number of" and its unit, then turn each fact into one equation.

Two bar models for a shelf of books. Count: p paperbacks and h hardcovers make 32 books. Width: p books 1 inch thick and h books 2 inches thick fill 44 inches. Count of books p paperbacks h hardcovers 32 Inches of shelf 1 × p inches 2 × h inches 44 count: p + h = 32 inches: p + 2h = 44 one unit per equation

A shelf holds 32 books. Each paperback is 1 inch thick, each hardcover is 2 inches thick, and together they fill 44 inches. Let pp be the number of paperbacks and hh the number of hardcovers.

  • Count: p+h=32p + h = 32.
  • Inches: each kind's thickness times its count, added: p+2h=44p + 2h = 44.

Subtracting gives h=12h = 12, so p=20p = 20. Each equation counts one thing in one unit. If both of your equations count books, one of them is wrong.

Two Orders of the Same Items

Not every word problem has a count equation. Often the same two items appear twice, in two orders, two trips, or two months, with a different total each time.

A table of two orders of the same items. Order 1: 3 pens and 2 notebooks for 9 dollars. Order 2: 1 pen and 4 notebooks for 13 dollars. Each row becomes one equation. pens notebooks cost Order 1 Order 2 3 2 $9 1 4 $13 3p + 2n = 9 p + 4n = 13

Three pens and 2 notebooks cost $9; 1 pen and 4 notebooks cost $13. Each row of the table is one equation: 3p+2n=93p + 2n = 9 and p+4n=13p + 4n = 13, with pp and nn the prices in dollars. Solving gives p=1p = 1 and n=3n = 3.

The factsThe two equations
a count and a total valueone adds the counts; one adds price × count
a mixture of two strengthsone adds the amounts; one adds what is in each amount
two orders of the same itemsthe same prices, used twice
"3 times as many" plus a totala comparison, such as f=3nf = 3n, and a sum
with and against a currentspeeds s+cs + c and s−cs - c, each distance ÷ time

Test a comparison with numbers. "Three times as many fiction books as nonfiction books" is f=3nf = 3n: 10 nonfiction books means 30 fiction books. Last, reread the question: it may ask for the other unknown, a difference, or a new total.

Keep going

Check Your Skills, the strategy for each kind of question, worked examples and practice from Easy to Hard are in the Quaero SAT Course.

More Algebra