Sub topic 3
Systems with No Solution or Infinitely Many Solutions
This chapter assumes you can solve one-variable linear equations, substitute a value into an expression, and read a line's slope and intercept. A system of two linear equations is a pair of lines, and a solution is a point they share.
Systems with No Solution or Infinitely Many Solutions
Two lines in a plane cross once, run parallel, or lie on top of each other. The system has one solution when the lines cross, no solution when they are parallel, and infinitely many solutions when they coincide.
For x + 2y = 5 and 2x + 4y = 7, doubling the first equation gives 2x + 4y = 10. That conflicts with 7, so the system has no solution.
Shortcut: Solve for the Expression, Not the Variables
If a question asks for x + y, add or subtract the equations directly. For 3x + y = 11 and x + 3y = 9, adding gives 4x + 4y = 20, so x + y = 5.
Word Problems That Lead to Systems
Assign one variable to each unknown quantity, then write one equation per fact. Three pens and two notebooks cost $12, and one pen and one notebook cost $5. Let x be the pen price and y the notebook price. Then 3x + 2y = 12 and x + y = 5. Substituting y = 5 - x gives x = 2 and y = 3.
Three Unknowns and Counting Equations
Solving for three unknowns requires three independent equations. Two equations leave one variable free. For x + y + z = 10 and x + y = 7, z = 3, but x and y stay undetermined. Check whether the question asks only for a combination.
Quantitative Comparison with Equations
Ask whether the given equations determine the quantities being compared. If x + y = 5, then column A (x + y) is 5, which is greater than column B (4). If 2x + y = 8 and x - y = 1, adding gives 3x = 9, so x = 3. Columns A and B are then equal, and the answer is C.
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."""
det = a1 * b2 - a2 * b1
if det == 0:
return None # no solution or infinitely many solutions
x = Fraction(c1 * b2 - c2 * b1, det)
y = Fraction(a1 * c2 - a2 * c1, det)
return x, y
print(solve_2x2(3, 2, 12, 1, 1, 5)) # (Fraction(2, 1), Fraction(3, 1))Checking Answers and Common Pitfalls
Substitute your solution into every original equation. Common errors include sign mistakes when subtracting equations, forgetting to distribute a negative, and stopping at x when the question asks for y or x + y.
Exercise
Does the system 2x + 3y = 6 and 4x + 6y = 10 have a solution?
Show answer
No. Doubling the first equation gives 4x + 6y = 12, which conflicts with 10.