GMAT Quant lesson · Linear equations
GMAT linear equations and systems: solve, combine, translate
Linear equations for GMAT Quant: one-variable equations, 2×2 systems, adding equations to get x + y, when a system has no or infinite solutions, word problems.
The core idea
A linear equation is solved by undoing what was done to x, one step at a time, starting with the last step. A system of two equations is solved by substitution, or by adding or subtracting the equations to remove a variable. Before solving, check what the question asks for: combining the equations often gives it directly.
Core ideas
Words used here
- Variable (or unknown): a letter, such as x, that stands for a number we don't know yet.
- Linear equation: an equation with no powers of the variables (no x², no xy), such as 3x + 2y = 19.
- Coefficient: the number that multiplies a variable, such as 3 in 3x.
- Constant: a number on its own, without a variable.
- System of equations: two or more equations that must all be true at the same time.
- Substitution: solve one equation for a variable, then put that expression into the other equation.
- Elimination: add or subtract the equations so that one variable cancels out.
- Least common denominator (LCD): the smallest number that every denominator (bottom of a fraction) divides into.
- One variable: do the same thing to both sides. Undo what was done to x, starting with the last step. In 3x + 4 = 19, x was multiplied by 3 and then 4 was added. So first subtract 4 from both sides (3x = 15), then divide both sides by 3 (x = 5).
- Substitution: solve one equation for a variable and put the result into the other equation.
- Elimination: add or subtract the equations (or multiples of them) so a variable cancels.
- Shortcut: when the question asks for x + y or x − y, try adding or subtracting the equations first.
- How many solutions: ax + by = c and dx + ey = f have exactly one solution if a/d ≠ b/e. If a/d = b/e, they have no solution or infinitely many.
Try it. Solve 5x − 7 = 2x + 8.
Show the answer
- Subtract 2x from both sides: 3x − 7 = 8.
- Add 7 to both sides: 3x = 15.
- Divide both sides by 3: x = 5.
- Check: 5(5) − 7 = 18 and 2(5) + 8 = 18 ✓.
One-variable equations
If there are fractions, multiply every term on both sides by the least common denominator (LCD: the smallest number all the denominators divide into). Then expand the parentheses, collect the x-terms on one side, and divide by the number in front of x.
Why it works. An equation says two expressions name the same number. If you do the same thing to two equal numbers, they stay equal, so each new line has exactly the same solutions as the line before it. Multiplying by the LCD is safe because the LCD is not 0. Multiplying or dividing by an expression that could be 0 is not safe (see the edge cases).
How to spot it: a single equation with one unknown, often with fractions or parentheses.
Example. Solve (x − 2)/3 + x/4 = 4.
- The LCD of 3 and 4 is 12. Multiply every term by 12: 12 × (x − 2)/3 = 4(x − 2), 12 × x/4 = 3x, and 12 × 4 = 48. So 4(x − 2) + 3x = 48.
- Expand: 4x − 8 + 3x = 48, so 7x − 8 = 48.
- Add 8 to both sides: 7x = 56.
- Divide both sides by 7: x = 8.
- Check: (8 − 2)/3 + 8/4 = 6/3 + 2 = 2 + 2 = 4 ✓.
Trap: multiplying only the first fraction by 12. Every term, including the 4 on the right, must be multiplied.
Edge cases.
- The x-terms cancel. Read what is left. 2(x + 3) = 2x + 6 becomes 6 = 6, which is always true, so every x is a solution. 2(x + 3) = 2x + 5 becomes 6 = 5, which is never true, so there is no solution.
- Don't divide by x. x² = 3x has two solutions, 0 and 3. Dividing both sides by x keeps only 3.
- Answers need not be whole numbers. A negative or fractional x is fine. Check it in the original equation, not in a later line.
- A minus sign in front of a bracket changes every sign inside it: −3(x − 4) = −3x + 12.
GMAT-level example. If (2x + 1)/3 − (x − 4)/2 = 5/6, what is x?
- The LCD of 3, 2 and 6 is 6. Multiply every term by 6: 6 × (2x + 1)/3 = 2(2x + 1), 6 × (x − 4)/2 = 3(x − 4), and 6 × 5/6 = 5.
- So 2(2x + 1) − 3(x − 4) = 5. The minus sign stays in front of the whole bracket.
- Expand: 4x + 2 − 3x + 12 = 5. Note −3 × −4 = +12.
- Collect: x + 14 = 5, so x = −9.
- Check: (2(−9) + 1)/3 = −17/3 and (−9 − 4)/2 = −13/2. Then −17/3 − (−13/2) = −34/6 + 39/6 = 5/6 ✓.
The common wrong answer, x = 15, comes from writing −3(x − 4) as −3x − 12.
Check yourself. Solve 0.2(x − 5) = 0.5x − 4.
Check your answer
Multiply both sides by 10 to clear the decimals: 2(x − 5) = 5x − 40. So 2x − 10 = 5x − 40. Add 40 and subtract 2x: 30 = 3x, so x = 10. Check: 0.2 × 5 = 1 and 0.5 × 10 − 4 = 1 ✓.
Two equations, two unknowns
Use substitution (solve one equation for a variable, then put it into the other) when one variable is already alone or has a coefficient of 1. Otherwise use elimination (add or subtract the equations so a variable cancels).
Why it works. Both methods turn two equations into one equation with one unknown, without changing the solution. Substitution works because, once x = y + 3, the letter x and the expression y + 3 name the same number, so either can stand in the other's place. Elimination works because if A = B and C = D, then A + C = B + D: adding equal amounts to both sides keeps an equation true.
How to spot it: two equations in x and y with different coefficients.
Example. If 3x + 2y = 19 and x − y = 3, what is y?
- In the second equation, add y to both sides: x = y + 3.
- Put y + 3 in place of x in the first equation: 3(y + 3) + 2y = 19.
- Expand: 3y + 9 + 2y = 19, so 5y + 9 = 19.
- Subtract 9 from both sides: 5y = 10. Divide both sides by 5: y = 2.
- Then x = 2 + 3 = 5. Check: 3(5) + 2(2) = 15 + 4 = 19 ✓ and 5 − 2 = 3 ✓.
Trap: answering 5, the value of x.
Try it. If 2x + y = 11 and x − y = 1, what is y?
Show the answer
- Add the equations: the +y and −y cancel, so 3x = 12.
- Divide both sides by 3: x = 4.
- Put x = 4 into the first equation: 8 + y = 11, so y = 3.
- Check: 4 − 3 = 1 ✓.
See it. Each linear equation is a straight line, and the solution of the system is the point where the two lines cross. The default lines are y = 2x − 1 and y = −x + 5, which cross at (2, 3). Change a slope or an intercept and watch the crossing point move.
Line 1: y = 2x − 1. Slope 2: each step of 1 to the right moves the line up 2. It crosses the y-axis at −1.
Line 1 crosses the x-axis where y = 0: x = 1/2.
Line 2: y = −x + 5.
They meet at exactly one point, (2, 3): the system has one solution, x = 2 and y = 3.
Edge cases.
- Check what is asked first. If the question wants x + y or 2x − y, you may not need each value (see the next section).
- Fractions in the answer are normal. If elimination gives 7y = 3, then y = 3/7. Don't assume you made a mistake.
- If both variables cancel, the lines are parallel or the same line. Then there is no solution or there are infinitely many (see "No solution or infinitely many").
GMAT-level example. If 4x − 3y = 10 and 6x + 5y = −4, what is x + y?
- Neither variable is alone, so use elimination. Make the x-coefficients equal: multiply the first equation by 3 and the second by 2.
- That gives 12x − 9y = 30 and 12x + 10y = −8.
- Subtract the first from the second: (12x − 12x) + (10y − (−9y)) = −8 − 30, so 19y = −38 and y = −2.
- Put y = −2 into 4x − 3y = 10: 4x + 6 = 10, so 4x = 4 and x = 1.
- x + y = 1 + (−2) = −1.
- Check in the second equation: 6(1) + 5(−2) = 6 − 10 = −4 ✓.
Check yourself. If y = 3x − 7 and 2x + y = 13, what is xy?
Check your answer
Substitute y = 3x − 7: 2x + 3x − 7 = 13, so 5x = 20 and x = 4. Then y = 3(4) − 7 = 5, and xy = 20. Check: 2(4) + 5 = 13 ✓.
Adding equations
When the coefficients (the numbers in front of x and y) are swapped between two equations, adding them gives the same coefficient on x and y. Subtracting gives x − y.
Why it works. Adding two true equations gives a true equation (equal amounts added to equal amounts). When the coefficients are swapped, each variable collects the same total: 7 + 3 = 10 for x and 3 + 7 = 10 for y. So the sum factors as 10(x + y), and the target appears by itself.
How to spot it: pairs like 7x + 3y and 3x + 7y, with a question about x + y or x − y.
Example. If 7x + 3y = 29 and 3x + 7y = 21, what is x + y?
- Add the left sides and add the right sides: (7x + 3x) + (3y + 7y) = 29 + 21, so 10x + 10y = 50.
- Divide both sides by 10: x + y = 5.
- Subtracting works the same way: (7x − 3x) + (3y − 7y) = 29 − 21, so 4x − 4y = 8, and x − y = 2.
With three equations, such as a + b = 9, b + c = 13 and a + c = 10, add all three. Each letter appears twice, so 2a + 2b + 2c = 32. Divide by 2: a + b + c = 16. Then b = 16 − (a + c) = 16 − 10 = 6.
Trap: dividing 50 by 2 because there are two equations. Divide by the coefficient you actually have, 10.
Edge cases.
- You get the combination, not the parts. From 7x + 3y = 29 and 3x + 7y = 21 you can also find x and y (x = 3.5, y = 1.5). But with three letters and two equations, a + b + c may be fixed while a, b and c are not.
- Look for a multiple of the target. If adding gives 6x + 6y, divide by 6; if it gives 6x + 9y, adding was the wrong move for x + y.
GMAT-level example. If 3a + 2b + c = 26 and a + 2b + 3c = 22, what is the average (arithmetic mean) of a, b and c?
- There are three unknowns and only two equations, so you can't find each one. Look at the target instead: the average is (a + b + c) ÷ 3.
- Add the equations: (3a + a) + (2b + 2b) + (c + 3c) = 26 + 22, so 4a + 4b + 4c = 48.
- Divide by 4: a + b + c = 12.
- The average is 12 ÷ 3 = 4.
- Check with one solution: a = 4, b = 6, c = 2 gives 12 + 12 + 2 = 26 ✓ and 4 + 12 + 6 = 22 ✓, and (4 + 6 + 2) ÷ 3 = 4 ✓. Other solutions exist (a = 5, b = 4, c = 3 works too), but every one of them has average 4.
Check yourself. If 2p + 5q = 17 and 5p + 2q = 32, what is p − q?
Check your answer
Subtract the first equation from the second: (5p − 2p) + (2q − 5q) = 32 − 17, so 3p − 3q = 15 and p − q = 5. (Adding gives 7p + 7q = 49, so p + q = 7; then p = 6 and q = 1. Check: 12 + 5 = 17 ✓.)
No solution or infinitely many
Each linear equation in x and y is a straight line, and a solution is a point where the lines meet. If the second equation is the first one multiplied by a number, they are the same line: infinitely many solutions. If only the left sides match that way, the lines are parallel and never meet: no solution.
Why it works. Solve each equation for y to see its line. 2x + 3y = 5 becomes y = −(2/3)x + 5/3, and 4x + 6y = 12 becomes y = −(2/3)x + 2. The slopes are the same (−2/3), so the lines point the same way. The intercepts differ (5/3 and 2), so one line sits above the other and they never meet. With the same intercept too, they would be one line.
How to spot it: "for what value of k does the system have no solution / infinitely many solutions".
Example. For what value of k does the system 2x + 3y = 5 and 4x + ky = 12 have no solution?
- The x-coefficient goes from 2 to 4, so it is multiplied by 2.
- For the left sides to match, the y-coefficient must also double: k = 3 × 2 = 6.
- Doubling the first right side gives 5 × 2 = 10, but the second equation says 12. Then 4x + 6y would have to equal 10 and 12 at once, which is impossible.
- So k = 6 gives no solution. (If the right side were 10, the two equations would be the same line, with infinitely many solutions.)
Trap: assuming every system of two equations has exactly one solution.
See it. These two lines are y = 2x + 1 and y = 2x − 3: same slope, different intercepts, so they are parallel and the system has no solution. Move line 2's intercept to 1 and the lines become one line (infinitely many solutions). Change line 2's slope and they cross at exactly one point.
Line 1: y = 2x + 1. Slope 2: each step of 1 to the right moves the line up 2. It crosses the y-axis at 1.
Line 1 crosses the x-axis where y = 0: x = −1/2.
Line 2: y = 2x − 3.
Same slope, different intercepts: the lines are parallel and never meet. The system has no solution.
Edge cases.
- Exactly one solution whenever the x- and y-coefficients are not in the same ratio (a/d ≠ b/e). You don't need the right-hand sides for this.
- Same left sides, different right sides, such as x + y = 4 and x + y = 6: no solution. The two sums can't both be true.
- A zero coefficient is fine. y = 3 and 2y = 6 are the same horizontal line.
- Three equations in two unknowns usually have no common solution. They have one only if the third line passes through the point where the first two cross.
GMAT-level example. The system kx + 6y = 9 and 2x + 3y = m has infinitely many solutions. What is km?
- Infinitely many solutions means the two equations are the same line: one is a multiple of the other.
- Compare the y-terms: 6y and 3y. So the first equation is 2 times the second.
- Double the second equation: 4x + 6y = 2m. This must match kx + 6y = 9 term by term.
- So k = 4 and 2m = 9, which gives m = 9/2.
- km = 4 × 9/2 = 18.
- Check: with k = 4 and m = 9/2, the second equation doubled is 4x + 6y = 9, the same as the first ✓.
Check yourself. For what value of a does the system ax − 2y = 7 and 3x + 4y = 1 have no solution?
Check your answer
No solution needs the same ratio on the left: a/3 = −2/4. So a = 3 × (−1/2) = −3/2. The right sides are not in that ratio (7/1 ≠ −1/2), so the lines are parallel, not the same.
Word problem to system
Use one variable for each unknown. Write one equation for the number of items and one for the total value, then solve. With two kinds of items, the "all cheap" shortcut is fastest.
Why it works. Two unknowns need two independent facts. Here one fact counts items (120 notebooks) and the other counts money ($460). The "all cheap" shortcut works because swapping one $3 notebook for one $5 notebook keeps the count the same and adds exactly $2 to the total.
How to spot it: two kinds of items, a total number and a total amount.
Example. A shop sold 120 notebooks, some at $3 and the rest at $5, for $460. How many $5 notebooks were sold?
- Suppose all 120 cost $3: 120 × 3 = $360.
- The real total is $460, so $460 − $360 = $100 is extra.
- Each $5 notebook costs $5 − $3 = $2 more than a $3 one.
- Number of $5 notebooks: $100 ÷ $2 = 50. Then 120 − 50 = 70 cost $3.
- Check: 50 × 5 + 70 × 3 = 250 + 210 = 460 ✓.
The shortcut is elimination in disguise. With f notebooks at $5 and t at $3: f + t = 120 and 5f + 3t = 460. Multiply the first equation by 3: 3f + 3t = 360. Subtract it from the second: 2f = 100, so f = 50.
Trap: dividing the extra $100 by $5 instead of by the $2 difference.
Edge cases.
- Counts must be whole numbers and not negative. If your answer is 37.5 notebooks or −10 notebooks, recheck the setup. "Some of each" means each count is at least 1.
- Name the answer. The answer choices usually include both counts (here 50 and 70). Reread which one the question asks for.
- Totals in different units: convert first. 2 dollars and 40 cents is 240 cents.
GMAT-level example. A theater sold 400 tickets. Adult tickets cost $12 and child tickets cost $7, and the total was $3,900. How many more adult tickets than child tickets were sold?
- Suppose all 400 were child tickets: 400 × $7 = $2,800.
- The real total is $3,900, so $3,900 − $2,800 = $1,100 is extra.
- Each adult ticket adds $12 − $7 = $5 to that "all child" total. So there were $1,100 ÷ $5 = 220 adult tickets.
- Child tickets: 400 − 220 = 180.
- The question asks for the difference: 220 − 180 = 40.
- Check: 220 × 12 + 180 × 7 = 2,640 + 1,260 = 3,900 ✓.
Check yourself. A jar holds 30 coins, all dimes and quarters, worth $5.25 in all. How many quarters are there?
Check your answer
All dimes would be 30 × $0.10 = $3.00. The extra $2.25 comes from quarters, each worth $0.15 more than a dime: $2.25 ÷ $0.15 = 15 quarters (and 15 dimes). Check: 15 × 0.25 + 15 × 0.10 = 3.75 + 1.50 = 5.25 ✓.
How hard questions disguise it
For harder questions (L4–L5)
L4 versions ask for an expression (such as 2x − y) rather than one variable, or hide the second equation in a sentence. At L5, systems come from translation problems with three quantities and from mixtures, where one equation tracks the total volume and the other tracks the pure substance. Write both equations, look at the target, and see whether a sum or difference of the equations gets you there in one step.
Practice
Practice equations and systems in timed sets on the linear equations practice page.
Common traps
Answering the other unknown
Systems produce several values, and all of them appear among the choices. Reread the question and check which quantity it wants before you answer.
Assuming an even split or averaging prices
Nothing says the counts are equal, and an average price is not any one item's price. Use the totals to set up equations for each item.
Misreading what a difference in cost pays for
If every item were the cheaper kind, the extra money comes from the price difference on each pricier item. When two orders differ, check every item that changed, not just one.
Dividing by the wrong number after combining
After combining equations, divide by the coefficient you actually get: 10x + 10y = 50 gives x + y = 5, and 2(a + b + c) = 30 gives 15. Then subtract any known part to isolate the target.
Subtracting when you should add
Adding the equations gives x + y when the coefficients are swapped; subtracting gives x − y. Pick the operation that produces the target.
Undoing the steps out of order
In 3(x − 4) = 18, undo the multiplication by dividing by 3, then undo the subtraction by adding 4. Use the inverse operation each time and go all the way to x.
Answering a combined amount
The cost of one of each, or of both orders together, is a step on the way. Separate the items before you answer for one of them.
Misjudging when a system has no or infinite solutions
A system has no solution when the x- and y-coefficients are in the same ratio but the constants are not. Find the scale factor from one coefficient pair and apply it to the other.
Dividing by the wrong number after adding equations
After adding the equations, look at each variable's total coefficient. If every one is 4, the sum is 4(x + y + z): divide by 4, not by the number of equations.