Sub topic 10
Choosing the best method
You already know three ways to solve a system of two linear equations: graphing, substitution, and elimination. This chapter is about deciding which one to reach for. We assume you can solve each method by hand, check a solution in both equations, and recognize systems with no solution or infinitely many solutions.
All three methods give the same answer when they work. The difference is how much work they take and how easily you can make a mistake. A good choice comes from looking at the system for about ten seconds before you start.
What each method is good at
Each method has a situation where it is fastest and a situation where it causes trouble.
| Method | Fastest when | Common trouble |
|---|---|---|
| Graphing | You want to see the lines, or the answer is a small whole-number point | Reading fractions or decimals from a sketch gives only an estimate |
| Substitution | One variable is already isolated, or has coefficient 1 or -1 | Isolating a variable with another coefficient creates fractions |
| Elimination | Both equations are in standard form, `Ax + By = C`, and coefficients match or are easy to match | Forgetting to multiply every term, or making sign errors when adding |
Graphing
Graphing shows the geometry. The solution is the point where the two lines cross. This makes it useful for seeing why a system has one, none, or infinitely many solutions.
Its weakness is precision. If the lines cross at (2/3, 7/5), a hand sketch will not show that. Use graphing when the numbers are small and whole, when a graph is the thing you were asked to produce, or when you only need a rough idea of where the answer lies. You can then confirm it with algebra.
Substitution
Substitution works best when a variable is already alone, as in y = 2x - 1. It also works well when a variable has coefficient 1 or -1, because you can isolate it without creating fractions. For example, in x + 3y = 7 you can write x = 7 - 3y directly.
It becomes awkward when every variable has a larger coefficient. In 4x + 5y = 9, isolating y gives y = (9 - 4x)/5. Substituting that into the other equation leaves you with fractions inside parentheses, which invites arithmetic errors.
Elimination
Elimination is the most reliable choice for equations in standard form. It avoids fractions until the very end, and sometimes entirely. It is fastest when a variable's coefficients are already equal or opposite. It still works when they are not, because you can scale the equations first.
A decision process
Look at the system and ask these questions in order.
- Is a variable already isolated, such as
y = ...orx = ...? If yes, use substitution. - Does some variable have coefficient 1 or -1 in one equation, so you can isolate it without fractions? If yes, substitution is a good option.
- Are both equations in standard form with coefficients that are equal, opposite, or easy to scale? If yes, use elimination.
- Does the problem ask for a graph, or are the numbers small enough that a sketch is quick and a rough answer is enough? If yes, consider graphing.
- If none of these applies, use elimination. It is the best general-purpose method.
This is a guide and not a rule. If two methods both look easy, pick the one you make fewer mistakes with.
Worked comparisons
The same kind of system can look different depending on how it is written. Here are three systems and the reasoning for each choice.
System 1: a variable is isolated
y = 3x - 4
2x + y = 11The first equation gives y directly, so substitution is the natural choice.
2x + (3x - 4) = 11
5x - 4 = 11
5x = 15 -> x = 3
y = 3(3) - 4 = 5
Check: 2(3) + 5 = 11. Solution: (3, 5)Elimination would also work here. You would first rewrite the first equation as -3x + y = -4. That is an extra step that substitution avoids.
System 2: standard form with opposite coefficients
4x + 3y = 18
2x - 3y = 0The y coefficients are 3 and -3, so adding the equations cancels y at once.
6x = 18 -> x = 3
2(3) - 3y = 0 -> y = 2
Check: 4(3) + 3(2) = 18. Solution: (3, 2)Substitution would force you to isolate a variable first and create fractions. Here elimination is clearly faster.
System 3: standard form, nothing matches
3x + 4y = 10
5x - 6y = 4No variable is isolated and no coefficient is 1 or -1. Substitution would be messy. Elimination works after scaling. The y coefficients are 4 and -6. Their least common multiple is 12. Multiply the first equation by 3 and the second by 2.
9x + 12y = 30
10x - 12y = 8Add the equations.
19x = 38 -> x = 2
3(2) + 4y = 10 -> 4y = 4 -> y = 1
Check: 5(2) - 6(1) = 4. Solution: (2, 1)Eliminating x instead would need multipliers 5 and 3, giving a common multiple of 15. Eliminating y uses smaller numbers, so it is the better choice. When you scale, look at both variables and pick the one that needs the smaller multipliers.
Edge cases that affect your choice
Systems with no unique solution
The method does not change whether the system has one, none, or infinitely many solutions. It only changes how you notice.
- With substitution or elimination, a false statement such as
1 = -3means no solution. A true statement such as0 = 0means infinitely many. - With graphing, parallel lines mean no solution and identical lines mean infinitely many.
If the equations are in slope-intercept form, comparing slopes and intercepts can tell you the answer before you solve anything. Equal slopes with different intercepts mean parallel lines. Equal slopes with equal intercepts mean the same line.
y = 2x + 1
y = 2x - 3These have the same slope and different intercepts, so there is no solution. You do not need to run a full method.
Fractions and decimals
If the coefficients are fractions or decimals, clear them first. Multiply each equation by a number that removes the denominators or decimal places. For example, 0.5x + 0.25y = 2 becomes 2x + y = 8 after multiplying by 4. After that, a method with whole numbers is easier, and elimination is usually the best fit.
Both equations need rearranging
Sometimes the equations arrive in mixed forms, such as y = 4 - x and 3x + 2y = 7. Substitution still works without rearranging, because the first equation already isolates y. Do not convert everything to one form unless it helps. Choose the method that matches the form you were given.
A quick way to check any method
Whatever method you pick, finish by substituting your answer into both original equations. Use the original equations, not ones you rewrote, because a rewriting error will pass a check against the rewritten version. If the pair fails either equation, there is an error somewhere. If you are unsure, solve again with a different method. When two methods agree, you can be confident in the result.
You can also check with code. This function solves a system using Cramer's rule and returns exact fractions.
from fractions import Fraction
def solve_2x2(a1, b1, c1, a2, b2, c2):
"""Solve a1*x + b1*y = c1 and a2*x + b2*y = c2 using Cramer's rule."""
det = a1 * b2 - a2 * b1
if det == 0:
return None # no unique solution: parallel or identical lines
x = Fraction(c1 * b2 - c2 * b1, det)
y = Fraction(a1 * c2 - a2 * c1, det)
return x, y
print(solve_2x2(3, 4, 10, 5, -6, 4)) # (Fraction(2, 1), Fraction(1, 1))
print(solve_2x2(4, 3, 18, 2, -3, 0)) # (Fraction(3, 1), Fraction(2, 1))The output matches the hand solutions for Systems 3 and 2 above.
Common mistakes when choosing
- Using substitution on a system with large coefficients, then losing track of fractions. Switch to elimination.
- Using graphing when the answer is not a whole number. A sketch cannot confirm a fraction.
- Starting elimination without lining up the variables. Put both equations in
Ax + By = Cform first. - Scaling only one side of an equation. Multiply every term, including the constant.
- Sticking with a method after it turns messy. Stopping and switching costs less than pushing through a long calculation.
Summary of the main ideas
- Match the method to the form of the equations.
- Substitution suits isolated variables. Elimination suits standard form. Graphing suits small whole-number answers and picture-based questions.
- When nothing stands out, elimination is the dependable default.
- Always check the answer in both original equations.
Exercise
For each system, name the method you would choose and explain why in one sentence. Then solve the first one. (a) y = 5x - 2 and 3x + 2y = 18 (b) 6x + 5y = 7 and -6x + 2y = 7 (c) 7x + 4y = 1 and 3x - 5y = 13
Show answer
(a) Substitution, because y is already isolated. Substitute: 3x + 2(5x - 2) = 18, so 13x - 4 = 18, so 13x = 22 and x = 22/13. Then y = 5(22/13) - 2 = 84/13. Check: 3(22/13) + 2(84/13) = 66/13 + 168/13 = 234/13 = 18. This answer is a fraction, which shows why graphing would not suit this system. (b) Elimination, because the x coefficients 6 and -6 are opposites, so adding the equations gives 7y = 14, so y = 2, and then x = -1/2. (c) Elimination, because no variable is isolated and no coefficient is 1 or -1. Multiply the first equation by 5 and the second by 4 to get 35x + 20y = 5 and 12x - 20y = 52. Adding gives 47x = 57, so x = 57/47. Because this is not a whole number, a hand graph would also not work well here.
Exercise
A system is written as y = 4x + 3 and y = 4x + 9. Which method gives the answer fastest, and what is the answer?
Show answer
Compare slopes and intercepts. Both slopes are 4 and the intercepts are 3 and 9, which differ. The lines are parallel, so the system has no solution. Setting the right sides equal gives 4x + 3 = 4x + 9, which simplifies to 3 = 9, a false statement, and confirms it.