Sub topic 11
Shortcut: Solve for the Expression, Not the Variables
What this chapter assumes
You should already be able to solve a two-variable system by substitution and by elimination. You should also know the three outcomes for a system: one solution, no solution, or infinitely many. This chapter adds a time-saving habit. Before you solve for x and y, read the question and check what it asks for.
Many GRE questions ask for a combination such as x + y, x − y, or 2x + 3y. If you can build that combination directly from the given equations, you skip the substitution and the fractions that usually come with it.
The core idea
Every step of elimination does the same thing: it multiplies each equation by a number and adds the results. You can choose those multipliers to produce the target expression instead of cancelling a variable.
Suppose the equations are:
- Equation 1: a₁x + b₁y = c₁
- Equation 2: a₂x + b₂y = c₂
and the target is px + qy. You look for multipliers m₁ and m₂ such that:
- m₁a₁ + m₂a₂ = p (the x-coefficients match the target)
- m₁b₁ + m₂b₂ = q (the y-coefficients match the target)
Then px + qy equals m₁c₁ + m₂c₂. Any valid multipliers give the right answer, because you did only legal operations on true equations.
Case 1: Add the equations
This is the most common GRE pattern. The coefficients are arranged so that the sum is a multiple of the target.
Given 3x + y = 11 and x + 3y = 9, find x + y.
Add the equations: 4x + 4y = 20
Divide by 4: x + y = 5Solving for x and y separately would give x = 3 and y = 2, which is more work to reach the same answer. Notice that the sum has equal coefficients on x and y. That is the signal to look for: when the coefficients of x and y in the sum match, you can factor out the common number and divide.
Case 2: Subtract the equations
Subtraction works when the coefficients of x and y differ by opposite amounts.
Given 6x + y = 32 and 2x + 5y = 20, find x − y.
Subtract the second from the first:
(6x − 2x) + (y − 5y) = 32 − 20
4x − 4y = 12
x − y = 3The values are x = 5 and y = 2, and 5 − 2 = 3, which agrees with the shortcut.
Case 3: Scale before combining
Sometimes neither the sum nor the difference works. Then you choose multipliers.
Given 3x − y = 7 and x + 2y = 7, find x + y.
Let m₁ multiply the first equation and m₂ multiply the second. The x-coefficient is 3m₁ + m₂ and the y-coefficient is −m₁ + 2m₂. For the target x + y, these two coefficients must be equal:
3m1 + m2 = -m1 + 2m2
4m1 = m2Choose m₁ = 1 and m₂ = 4, which satisfy that relation:
1(3x - y) + 4(x + 2y) = 1(7) + 4(7)
7x + 7y = 35
x + y = 5The trick here is to require equal coefficients rather than exact ones. You can choose multipliers that give 7x + 7y, then divide by 7. This is simpler than demanding exactly x + y from the start.
Choosing the operation
| Pattern in the coefficients | Operation | Typical result |
|---|---|---|
| x and y coefficients swap between equations (3x + y, x + 3y) | Add | A multiple of x + y |
| Same-size coefficients with opposite signs after subtracting (6x + y, 2x + 5y) | Subtract | A multiple of x − y |
| Same x coefficient in both equations | Subtract | A multiple of y alone |
| No obvious pattern | Match coefficients with multipliers | Any target |
Why it always works with two independent equations
Two independent equations in x and y (lines that cross at exactly one point) pin down both x and y. So every expression px + qy has a single value, and some pair of multipliers will always produce it. If the multiplier equations have no solution, the two equations are not independent. That is the special case from the previous chapter.
When the equations are dependent, only some targets are determined. Take x + 2y = 5 and 2x + 4y = 10. These are the same line. The expression x + 2y is determined, because it equals 5. The expression x + y is not, because x = 1, y = 2 gives 3 and x = 3, y = 1 gives 4.
Letting a program find the multipliers
The matching conditions are two linear equations in m₁ and m₂, so Cramer's rule solves them. This optional check uses exact fractions. It returns None when the determinant is zero, the dependent case.
from fractions import Fraction
def expression_value(a1, b1, c1, a2, b2, c2, p, q):
"""Return the value of p*x + q*y given a1*x + b1*y = c1 and a2*x + b2*y = c2.
Finds multipliers m1, m2 with m1*a1 + m2*a2 = p and m1*b1 + m2*b2 = q.
Returns None if the equations are dependent or inconsistent.
"""
det = a1 * b2 - a2 * b1
if det == 0:
return None
m1 = Fraction(p * b2 - q * a2, det)
m2 = Fraction(a1 * q - b1 * p, det)
return m1 * c1 + m2 * c2
# 3x - y = 7 and x + 2y = 7, target x + y
print(expression_value(3, -1, 7, 1, 2, 7, 1, 1)) # 5For this input the multipliers are 1/7 and 4/7. They are in the same 1 : 4 ratio as the hand-chosen multipliers, scaled so that the result is exactly x + y.
Beyond linear targets: the difference of squares
The same thinking applies when the target is not linear but factors into pieces you can find. The standard case is x² − y² = (x + y)(x − y).
Given x + y = 7 and x − y = 3, find x² − y².
x^2 - y^2 = (x + y)(x - y) = 7 * 3 = 21The question can also run the other way. Given x + y = 10 and x² − y² = 40, then (x + y)(x − y) = 40 gives 10(x − y) = 40, so x − y = 4. Here you divide by x + y, which is allowed because it equals 10 and not 0.
Common errors
- Sign slips when subtracting. Subtracting equation 2 from equation 1 changes the sign of every term of equation 2, including the constant. Writing the subtraction with parentheses prevents most slips.
- Forgetting the constant. If you divide the left side by 4, divide the right side by 4 too.
- Solving when you do not need to. If the sum or difference gives the target in one step, solving for both variables only adds chances for an arithmetic mistake.
- Assuming a value exists. If the equations are dependent, check whether the target actually matches their shared left side.
- Hunting for an exact match. Aim for equal coefficients on x and y, then divide.
Exercises
Exercise
Given 5x + 2y = 16 and 3x + 4y = 18, find 8x + 6y.
Show answer
Add the equations. The x-coefficients give 5 + 3 = 8, the y-coefficients give 2 + 4 = 6, and the constants give 16 + 18 = 34. So 8x + 6y = 34, with no need to solve for x and y. (Check: x = 2, y = 3 gives 16 + 18 = 34.)
Exercise
Given 2x + y = 9 and x + 2y = 3, Quantity A is x + y and Quantity B is 6. Which quantity is greater?
Show answer
Add the equations: 3x + 3y = 12, so x + y = 4. Quantity A is 4 and Quantity B is 6, so Quantity B is greater. (Check: x = 5, y = −1 satisfies both equations and gives x + y = 4.)
Exercise
Given 4x + 3y = 17 and x + 2y = 7, find 3x + y. Then say whether x + y is determined by x + 2y = 7 alone.
Show answer
Subtract the second equation from the first: (4x − x) + (3y − 2y) = 17 − 7, so 3x + y = 10. The expression x + y is not determined by x + 2y = 7 alone, because one equation allows many pairs. For instance, x = 1, y = 3 and x = 3, y = 2 both satisfy it and give different values of x + y. The second equation 4x + 3y = 17 is what makes the pair unique (x = 3, y = 2, so x + y = 5).