Sub topic 9
Systems with No Solution or Infinitely Many Solutions
This chapter assumes you can solve a system by graphing, substitution, and elimination. You should also be able to rewrite a line in slope-intercept form, y = mx + b. Here you learn what happens when those methods don't give a single answer, and how to recognize that outcome early.
Three possible outcomes
Two lines in a plane can be arranged in exactly three ways. Each arrangement gives a different kind of solution set.
| Arrangement of the lines | Slopes | Intercepts | Solutions | Name |
|---|---|---|---|---|
| Cross at one point | Different | Any | Exactly one ordered pair | Consistent and independent |
| Parallel, never touch | Same | Different | None | Inconsistent |
| Same line drawn twice | Same | Same | Every point on the line | Consistent and dependent |
A system is consistent if it has at least one solution and inconsistent if it has none. A consistent system is independent if it has one solution. It is dependent if the two equations describe the same line.
Two distinct lines can't meet at exactly two points, so a system of two linear equations never has exactly two solutions. The count is always zero, one, or infinitely many.
Recognizing the cases from slope-intercept form
The quickest check is to rewrite both equations as y = mx + b and compare m and b.
Take the system
- 3x - 2y = 6
- 6x - 4y = 5
Solve each for y:
- First equation: -2y = -3x + 6, so y = 1.5x - 3.
- Second equation: -4y = -6x + 5, so y = 1.5x - 1.25.
Both slopes are 1.5 and the intercepts are -3 and -1.25. The lines are parallel and distinct, so there is no solution.
Now compare:
- 4x - 6y = 10
- 2x - 3y = 5
Solving each for y gives y = (2/3)x - 5/3 in both cases. The slopes and intercepts match, so the equations describe the same line. Every point on that line satisfies both equations.
Graphing alone can mislead you here. Two lines with slopes 1.5 and 1.52 look parallel on a small grid but cross somewhere far away. Compare the slopes algebraically before you trust a picture.
Recognizing the cases by substitution
When you substitute and every variable disappears, what is left is a statement about numbers. That statement tells you which case you have.
No solution. Solve x + y = 4 for y, then substitute into 2x + 2y = 3:
y = 4 - x
2x + 2(4 - x) = 3
2x + 8 - 2x = 3
8 = 3The statement 8 = 3 is false for every x. No pair (x, y) can satisfy both equations.
Infinitely many solutions. Solve x + 2y = 4 for x, then substitute into 3x + 6y = 12:
x = 4 - 2y
3(4 - 2y) + 6y = 12
12 - 6y + 6y = 12
12 = 12The statement 12 = 12 is true for every y. The second equation adds no new restriction, so any y works, with x = 4 - 2y.
Recognizing the cases by elimination
Elimination gives the same signal. Add the equations after scaling, and if both variables cancel together, read the leftover statement.
No solution:
3x - 2y = 6 multiply by -2 -> -6x + 4y = -12
6x - 4y = 5 6x - 4y = 5
Add: 0 = -7The statement 0 = -7 is false, so the system has no solution.
Infinitely many solutions:
4x - 6y = 10
2x - 3y = 5 multiply by -2 -> -4x + 6y = -10
Add with first: 0 = 0The statement 0 = 0 is true, so the equations are equivalent. The second one is half of the first.
The rule is the same for all three methods:
- A false statement such as 0 = -7 or 8 = 3 means no solution.
- A true statement such as 0 = 0 or 12 = 12 means infinitely many solutions.
- A statement that pins down a variable, such as x = 2, means exactly one solution.
Describing infinitely many solutions
"Infinitely many" is not a complete answer by itself. State the set of solutions.
For the system x + y = 3 and 2x + 2y = 6, every point on the line x + y = 3 works. Write the solution set as all pairs (x, y) with y = 3 - x. You can also use a parameter t, which is a free variable that stands for any real number:
- x = t
- y = 3 - t
Choosing t = 0, 1, and 5 gives the solutions (0, 3), (1, 2), and (5, -2). Check the last one in both equations: 5 + (-2) = 3 and 2(5) + 2(-2) = 10 - 4 = 6.
You may solve for either variable. The sets {(t, 3 - t)} and {(3 - s, s)} are the same set of points, written with different parameters.
Detecting the case before solving
For equations in standard form, a1x + b1y = c1 and a2x + b2y = c2, you can classify the system by comparing coefficients. Compute the quantity a1·b2 - a2·b1. It is zero exactly when the slopes match, or when both lines are vertical. This is the same determinant you will meet in the Cramer's rule extension.
- If a1·b2 - a2·b1 is not zero, the system has one solution.
- If it is zero, check the constants. The equations are multiples of each other when c1·b2 - c2·b1 = 0 and a1·c2 - a2·c1 = 0. In that case there are infinitely many solutions.
- If it is zero but a constant check fails, there is no solution.
Cross-multiplying avoids dividing by a coefficient that might be zero. The ratio form a1/a2 = b1/b2 ≠ c1/c2 describes the no-solution case, but it breaks when a2 or b2 is 0.
Check this with the examples above:
| System | a1·b2 - a2·b1 | Constants consistent? | Result |
|---|---|---|---|
| 3x - 2y = 6 and 6x - 4y = 5 | 3(-4) - 6(-2) = 0 | No: c1·b2 - c2·b1 = 6(-4) - 5(-2) = -14 | No solution |
| 4x - 6y = 10 and 2x - 3y = 5 | 4(-3) - 2(-6) = 0 | Yes: both checks give 0 | Infinitely many |
| 2x + y = 7 and x - y = 2 | 2(-1) - 1(1) = -3 | Not needed | One solution |
A classifier you can run
This function applies the test above. It uses integer arithmetic only, so there is no rounding error. It also handles the degenerate case where one equation reads 0 = c with c nonzero.
def classify(a1, b1, c1, a2, b2, c2):
"""Classify a1*x + b1*y = c1 and a2*x + b2*y = c2."""
# An equation like 0x + 0y = 5 can never be true.
for a, b, c in ((a1, b1, c1), (a2, b2, c2)):
if a == 0 and b == 0 and c != 0:
return "no solution"
det = a1 * b2 - a2 * b1
if det != 0:
return "one solution"
# Slopes match. The lines coincide only if the constants match too.
if c1 * b2 - c2 * b1 == 0 and a1 * c2 - a2 * c1 == 0:
return "infinitely many solutions"
return "no solution"
print(classify(2, 1, 7, 1, -1, 2)) # one solution
print(classify(-2, 1, 1, -2, 1, -3)) # no solution (y = 2x + 1 and y = 2x - 3)
print(classify(1, 1, 3, 2, 2, 6)) # infinitely many solutions
print(classify(3, -2, 6, 6, -4, 5)) # no solutionFor the second call, y = 2x + 1 becomes -2x + y = 1 and y = 2x - 3 becomes -2x + y = -3, which is why the coefficients are written that way.
What the cases mean in word problems
In a word problem, the unusual cases usually reveal something about the situation.
- No solution. Two gyms charge $30 per month plus a one-time fee of $50 and $80. The cost equations are y = 30x + 50 and y = 30x + 80. They have the same rate and different starting fees, so the gyms never cost the same. The empty solution set is a meaningful answer.
- Infinitely many solutions. Suppose you write one equation for the total cost of tickets, then write a second equation that restates it with every term doubled. The system adds no new information, so the unknowns can't be determined. You need a genuinely different second fact.
When you model a situation and get 0 = 0, check whether you wrote the same relationship twice. When you get a false statement, check whether the situation really is impossible, or whether you mislabeled a quantity.
Common errors
- Stopping at 0 = 0 and answering "x = 0" or "no solution." The statement 0 = 0 is true everywhere, so it means infinitely many solutions.
- Answering "no solution" for a true statement, or "infinitely many" for a false one. Read the truth of the final statement first.
- Comparing only slopes. Equal slopes give either no solution or infinitely many. Compare the intercepts or constants to decide.
- Scaling only one side of an equation. If you multiply the left side by -2, multiply the right side by -2 too. A missed constant creates a false 0 = c statement that doesn't reflect the actual system.
- Trusting a graph with nearly parallel lines. Confirm with slopes or elimination.
- Giving "infinitely many" with no description. Name the line, for example "all points on y = 3 - x."
- Treating vertical lines as having a slope. The lines x = 2 and x = 5 are parallel with no slope-intercept form. Detect them with the coefficient test. Here a1·b2 - a2·b1 = 1·0 - 1·0 = 0, and the constants differ, so there is no solution.
Exercises
Exercise
Classify the system y = -3x + 4 and 6x + 2y = 1 as having one solution, no solution, or infinitely many solutions. Explain using slopes and intercepts.
Show answer
Rewrite the second equation: 2y = -6x + 1, so y = -3x + 0.5. Both lines have slope -3. The intercepts are 4 and 0.5, which differ. The lines are parallel and distinct, so there is no solution. Substitution agrees: 6x + 2(-3x + 4) = 1 gives 8 = 1, which is false.
Exercise
Solve the system 2x - 4y = 6 and -x + 2y = -3. If it has infinitely many solutions, describe them using a parameter t.
Show answer
Multiply the second equation by 2 to get -2x + 4y = -6. Adding it to the first equation gives 0 = 0, which is always true, so the equations are equivalent. Solve the second equation for x: x = 2y + 3. Let y = t, so x = 2t + 3. The solutions are all pairs (2t + 3, t), for example (3, 0), (5, 1), and (1, -1). Check (5, 1) in the first equation: 2(5) - 4(1) = 6.
Exercise
For what value of k does the system 2x + 3y = 5 and 4x + 6y = k have infinitely many solutions? For what values of k does it have no solution? Can it ever have exactly one solution?
Show answer
The left side of the second equation is twice the left side of the first, so the coefficient test gives a1·b2 - a2·b1 = 2(6) - 4(3) = 0 for every k. Doubling the first equation gives 4x + 6y = 10. If k = 10, the equations describe the same line, so there are infinitely many solutions. If k is any other value, subtracting gives 0 = k - 10, which is false, so there is no solution. The system can never have exactly one solution, because the slopes always match.
Exercise
A student solves a system by elimination and reaches 0 = 0. She writes "the solution is (0, 0)." Explain her mistake, and say what she should write instead.
Show answer
The statement 0 = 0 does not give values for x and y. It says the variables canceled and what remains is always true, which means the two equations are equivalent. Every point on their shared line is a solution. She should write that there are infinitely many solutions, and describe them with an equation such as y = 3 - x or a parameter t. She should also confirm this by checking that one equation is a multiple of the other. The pair (0, 0) is a solution only if it happens to lie on that line.