Intuition Why this page exists
The parent note taught the rules . But a rule you have only seen once is a rule you cannot trust. Here we hunt down every kind of two-line situation that can appear — every sign, every degenerate case, every trap — and solve one example for each. When you finish, no exam question can show you a shape you have not already met.
Before we start, one reminder in plain words. A system of two linear equations is just two straight lines drawn on the same graph paper. "Solving" it means finding the single point ( x , y ) where both lines pass through — the crossing point . Everything below is a variation on: do the lines cross once, never, or everywhere?
Every problem this topic throws at you lands in exactly one of these cells. The last column names the worked example that nails it.
#
Case class
What makes it special
Answer shape
Example
C1
Clean unique solution, all positive
Two lines cross once, tidy numbers
one point
Ex 1
C2
Unique solution with negative values
The crossing sits in quadrant II/III/IV
one point (some coords < 0 )
Ex 2
C3
A zero coefficient (vertical / horizontal line)
One variable is missing → line is x = k or y = k
one point
Ex 3
C4
No solution (parallel lines)
Same slope, different intercept
none
Ex 4
C5
Infinite solutions (same line)
One equation is a multiple of the other
a whole line
Ex 5
C6
Fractional / messy unique solution
Numbers don't cancel nicely — use the formula
one point (fractions)
Ex 6
C7
Real-world word problem
You must build the two equations first
one point (with units)
Ex 7
C8
Exam twist — solve for a parameter
Find the k that makes a case happen
value(s) of k
Ex 8
Before the examples, hold the three outcomes in your eye. Every case above is one of these three pictures.
Cross once (teal + orange lines meet at a plum dot): a unique ( x , y ) .
Parallel (two lines, same steepness, gap between them): they never meet → no solution.
Same line (one line drawn twice): they meet everywhere → infinite solutions.
Keep this figure in mind: every worked example below is really asking "which of these three am I?"
3 x + 2 y = 12 , x − 2 y = − 4.
Forecast: Look at the coefficients of y : + 2 and − 2 . What will happen if you just add the two equations? Guess the value of x before reading on.
Add the equations. ( 3 x + x ) + ( 2 y − 2 y ) = 12 + ( − 4 ) , giving 4 x = 8 , so x = 2 .
Why this step? The y -coefficients are exact opposites (+ 2 and − 2 ), so adding eliminates y instantly — no scaling needed.
Back-substitute into the second equation: 2 − 2 y = − 4 ⇒ − 2 y = − 6 ⇒ y = 3 .
Why the second equation? It has the smaller numbers, so less chance of arithmetic slips.
State the answer: ( x , y ) = ( 2 , 3 ) .
Verify: Plug into both (never just one!): 3 ( 2 ) + 2 ( 3 ) = 6 + 6 = 12 ✓ and 2 − 2 ( 3 ) = 2 − 6 = − 4 ✓. Both hold → this is genuinely the crossing point.
Textbook answers are not always cheerful positive numbers. The crossing point can sit anywhere — including where x or y is negative. If you assume answers are positive, this case will fool you.
2 x + y = − 1 , x − y = − 5.
Forecast: The right-hand sides are both negative. Do you expect the crossing to be in the "nice" top-right corner, or somewhere with negative coordinates?
Add the equations to kill y (coefficients + 1 and − 1 ): ( 2 x + x ) + ( y − y ) = − 1 + ( − 5 ) , so 3 x = − 6 ⇒ x = − 2 .
Why add? Same trick as Ex 1 — opposite y -coefficients.
Back-substitute into x − y = − 5 : − 2 − y = − 5 ⇒ − y = − 3 ⇒ y = 3 .
Why watch the signs? Two sign flips happen here (− y then dividing by − 1 ); this is exactly where the "sign-flip" mistake bites.
Answer: ( x , y ) = ( − 2 , 3 ) — a point in the upper-left (quadrant II).
Verify: 2 ( − 2 ) + 3 = − 4 + 3 = − 1 ✓ and − 2 − 3 = − 5 ✓. A negative x is a perfectly valid crossing.
The figure shows both lines meeting at the plum dot ( − 2 , 3 ) — safely to the left of the y -axis. Nothing wrong with that; the algebra simply reported where the roads actually cross.
Definition Missing variable = axis-aligned line
If an equation has no y (like 2 x = 6 ), then y can be anything — the graph is the vertical line x = 3 . If it has no x (like 3 y = 9 ), the graph is the horizontal line y = 3 . These are still linear equations; one of a , b is just zero.
2 x = 6 , x + 2 y = 7.
Forecast: The first equation traps x at a single value on its own. Once x is fixed, how much work is left?
Read x straight off equation 1: 2 x = 6 ⇒ x = 3 .
Why so fast? With no y present, the line is vertical — every solution shares x = 3 .
Substitute x = 3 into equation 2: 3 + 2 y = 7 ⇒ 2 y = 4 ⇒ y = 2 .
Why this works cleanly: the vertical line pins x , so the slanted line only has to supply the matching y .
Answer: ( 3 , 2 ) .
Verify: 2 ( 3 ) = 6 ✓ and 3 + 2 ( 2 ) = 3 + 4 = 7 ✓.
The teal vertical line x = 3 meets the orange slanted line x + 2 y = 7 at the plum dot ( 3 , 2 ) . A vertical line has no slope number (it's "infinitely steep"), which is exactly why the ratio test that uses slopes is easiest to sidestep here: just read x off first.
3 x + 6 y = 9 , x + 2 y = 5.
Forecast: Divide the first equation by 3. Compare what you get to the second equation. Do you smell a contradiction coming?
Run the ratio test from the parent note. Match a 1 x + b 1 y = c 1 to 3 x + 6 y = 9 and a 2 x + b 2 y = c 2 to x + 2 y = 5 :
a 2 a 1 = 1 3 = 3 , b 2 b 1 = 2 6 = 3 , c 2 c 1 = 5 9 .
Why the ratios? Equal a - and b -ratios mean equal slope (parallel). The constant ratio decides same line vs parallel gap .
Compare: a 2 a 1 = b 2 b 1 = 3 but c 2 c 1 = 5 9 = 3 . So a 2 a 1 = b 2 b 1 = c 2 c 1 → parallel, no solution .
Sanity-check by force. Divide equation 1 by 3: x + 2 y = 3 . But equation 2 says x + 2 y = 5 . The same left side cannot equal both 3 and 5 — a contradiction.
Why this confirms it: x + 2 y is a single number for any given point; asking it to be 3 and 5 at once is impossible → no point exists.
Answer: No solution. Verify (via the determinant): D = a 1 b 2 − a 2 b 1 = 3 ⋅ 2 − 1 ⋅ 6 = 0 . A zero denominator blocks a unique answer — consistent with "parallel."
x − 3 y = 2 , 4 x − 12 y = 8.
Forecast: Multiply the first equation by 4 in your head. What does it become? Is that new equation... familiar?
Ratio test: a 2 a 1 = 4 1 , b 2 b 1 = − 12 − 3 = 4 1 , c 2 c 1 = 8 2 = 4 1 .
Why: all three ratios equal 4 1 → each coefficient of equation 1 is exactly 4 1 of equation 2. One equation is a scaled copy of the other.
Confirm directly: multiply equation 1 by 4: 4 x − 12 y = 8 — that is equation 2.
Why this matters: the two "different" equations describe the same line . Every point on that line satisfies both.
Describe the answer set. There is no single point; the solutions are all pairs on x − 3 y = 2 , i.e. x = 2 + 3 t , y = t for any real t .
Why parameterise? "Infinitely many" still needs a precise description — pick y = t free, then x follows.
Verify: Take t = 1 : ( x , y ) = ( 5 , 1 ) . Check both: 5 − 3 ( 1 ) = 2 ✓ and 4 ( 5 ) − 12 ( 1 ) = 20 − 12 = 8 ✓. Take t = 0 : ( 2 , 0 ) → 2 − 0 = 2 ✓, 8 − 0 = 8 ✓. Both random points work → truly infinite solutions.
When adding/subtracting won't cancel anything nicely, don't fight it — reach for the Cramer formula derived in the parent note. It never fails as long as D = 0 .
3 x + 4 y = 5 , 2 x − 5 y = 7.
Forecast: No coefficient matches or is an easy multiple of another. Do you expect a whole-number answer, or fractions?
Compute the denominator D = a 1 b 2 − a 2 b 1 = ( 3 ) ( − 5 ) − ( 2 ) ( 4 ) = − 15 − 8 = − 23 .
Why first? If D = 0 we'd stop (parallel/same). Here D = − 23 = 0 → a unique crossing exists.
Compute x : x = D c 1 b 2 − c 2 b 1 = − 23 ( 5 ) ( − 5 ) − ( 7 ) ( 4 ) = − 23 − 25 − 28 = − 23 − 53 = 23 53 .
Why the formula and not elimination? The numbers share no common factor, so scaling to match coefficients would create ugly products anyway — the formula does that bookkeeping for us.
Compute y : y = D a 1 c 2 − a 2 c 1 = − 23 ( 3 ) ( 7 ) − ( 2 ) ( 5 ) = − 23 21 − 10 = − 23 11 = − 23 11 .
Answer: ( 23 53 , − 23 11 ) .
Verify: Equation 1: 3 ⋅ 23 53 + 4 ⋅ ( − 23 11 ) = 23 159 − 44 = 23 115 = 5 ✓. Equation 2: 2 ⋅ 23 53 − 5 ⋅ ( − 23 11 ) = 23 106 + 55 = 23 161 = 7 ✓. Fractions are a perfectly good answer.
The hard part of a word problem is building the two equations. Once they exist, it's just Ex 1 again. See Word problems — age, boat-stream, mixture for the full family.
Worked example Two pencils and three erasers cost ₹18. Four pencils and one eraser cost ₹16. Find the price of one pencil (
p ) and one eraser (e ).
Forecast: Before solving, guess: is a pencil cheaper or dearer than an eraser? (Look at the second deal — four pencils for only ₹16.)
Translate into equations. "Two pencils and three erasers cost ₹18": 2 p + 3 e = 18 . "Four pencils and one eraser cost ₹16": 4 p + e = 16 .
Why: each item's total cost = (price) × (quantity); the "and" means add the parts.
Isolate e from the second equation (its coefficient is 1 → substitution is cleanest): e = 16 − 4 p .
Why substitution here? A coefficient of 1 means no fractions when we isolate — the parent note's rule "coefficient is 1 → substitute."
Substitute into equation 1: 2 p + 3 ( 16 − 4 p ) = 18 ⇒ 2 p + 48 − 12 p = 18 ⇒ − 10 p = − 30 ⇒ p = 3 .
Back-substitute: e = 16 − 4 ( 3 ) = 16 − 12 = 4 .
Why finish here: once p is known, e drops straight out.
Answer: pencil = ₹3, eraser = ₹4 (so a pencil is cheaper — forecast check!).
Verify with units: 2 ( ₹3 ) + 3 ( ₹4 ) = ₹6 + ₹12 = ₹18 ✓ and 4 ( ₹3 ) + ₹4 = ₹12 + ₹4 = ₹16 ✓. Both money totals match.
The sneakiest exam question doesn't ask you to solve a system — it asks for which value of k the system behaves a certain way. You must run the case tests backwards .
Worked example For what value of
k does 2 x + 3 y = 7 , ( k ) x + 9 y = 21 have infinitely many solutions?
Forecast: Infinite solutions = same line. That needed all three ratios equal. Which of the three ratios is already forced, and which one you get to tune with k ?
Write the target condition. Infinite solutions ⇔ a 2 a 1 = b 2 b 1 = c 2 c 1 , i.e. k 2 = 9 3 = 21 7 .
Why all three: two equal ratios only guarantee parallel; the third equality is what makes them the same line.
Check the fixed ratios first: 9 3 = 3 1 and 21 7 = 3 1 . Good — these two already agree, so an infinite-solution case is possible .
Why check: if b 2 b 1 = c 2 c 1 , no k could ever give infinite solutions.
Solve the remaining ratio for k : k 2 = 3 1 ⇒ k = 6 .
Why: cross-multiplying, 2 ⋅ 3 = 1 ⋅ k , so k = 6 .
Answer: k = 6 .
Verify: With k = 6 the second equation is 6 x + 9 y = 21 . Divide by 3: 2 x + 3 y = 7 — identical to equation 1. Same line → infinitely many solutions ✓. (As a bonus: any k = 6 with these numbers gives no solution, since then a 2 a 1 = b 2 b 1 fails while b 2 b 1 = c 2 c 1 holds — parallel.)
Mnemonic The decision reflex
Zero coefficient? → read the trapped variable off first (Ex 3).
Opposite/matching coefficients? → add or subtract (Ex 1, 2).
A coefficient equal to 1? → substitute (Ex 7).
Nothing cancels nicely? → Cramer formula, but check D = 0 first (Ex 6).
Asked "how many solutions" or "find k "? → run the ratio test a 2 a 1 , b 2 b 1 , c 2 c 1 (Ex 4, 5, 8).
Recall Which case is
D = a 1 b 2 − a 2 b 1 = 0 ?
Parallel or same line — never a unique solution. Then use the constant ratio c 2 c 1 to decide no solution vs infinite .
Recall A crossing point turned out to be
( − 2 , 3 ) . Is that valid?
Yes — solutions can have negative coordinates. The crossing simply lives in a different quadrant (Ex 2). Always verify in both equations regardless of sign.
2.1.09 Linear equations in two variables — graphical and algebraic solutions (Hinglish)
Slope-intercept form y = mx + c
Simultaneous equations by matrices & determinants
Consistency and rank of linear systems
Word problems — age, boat-stream, mixture
Graphing lines and intercepts
Linear inequalities in two variables