Pair of Linear Equations in Two Variables

Four ways to solve a pair

A pair of linear equations in two variables, a1x+b1y=c1a_1x+b_1y=c_1 and a2x+b2y=c2a_2x+b_2y=c_2, is two straight lines. Their solution is the point where the lines meet, if they meet at all. There are four standard ways to find it:

  1. Graphical: draw both lines and read off the point where they cross. Comparing the coefficient ratios tells you in advance whether they cross, are parallel or coincide.
  2. Substitution: make one variable the subject of one equation, substitute into the other, solve, then back-substitute.
  3. Elimination: multiply one or both equations so one variable has matching coefficients, then add or subtract to remove it.
  4. Cross-multiplication: a formula that gives both variables in one line, once both equations are written in the "=0= 0" form.

Forming the equations from a word problem

Aftab tells his daughter: "Seven years ago, I was seven times as old as you were then. Three years from now, I'll be three times as old as you'll be." Let Aftab's present age be xx and his daughter's be yy.

Seven years ago: x−7=7(y−7)x-7 = 7(y-7), so x−7y=−42x - 7y = -42.

Three years from now: x+3=3(y+3)x+3 = 3(y+3), so x−3y=6x - 3y = 6.

Each condition becomes one equation, and each equation is one line. Subtracting the first from the second gives 4y=484y = 48, so y=12y = 12 and x=6+3(12)=42x = 6 + 3(12) = 42. Check: seven years ago they were 35 and 5 (35=7×535 = 7 \times 5), and in three years they will be 45 and 15 (45=3×1545 = 3 \times 15).

The ratio test: reading the lines without drawing them

For a₁x + b₁y = c₁ and a₂x + b₂y = c₂
ConditionLinesSolutions
a1a2≠b1b2\dfrac{a_1}{a_2} \ne \dfrac{b_1}{b_2}intersectexactly one
a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}coincideinfinitely many
a1a2=b1b2≠c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} \ne \dfrac{c_1}{c_2}parallelnone

Intersecting. For 5x−4y+8=05x-4y+8=0 and 7x+6y−9=07x+6y-9=0: a1a2=57\dfrac{a_1}{a_2} = \dfrac{5}{7} and b1b2=−46=−23\dfrac{b_1}{b_2} = \dfrac{-4}{6} = -\dfrac{2}{3}. These differ, so the lines cross at exactly one point.

Coincident. 4x+6y−12=04x+6y-12=0 is exactly twice 2x+3y−6=02x+3y-6=0, so all three ratios equal 12\dfrac{1}{2}: the same line, with infinitely many solutions.

Parallel. For x+2y=3x+2y=3 and 2x+4y=72x+4y=7: 12=24≠37\dfrac{1}{2} = \dfrac{2}{4} \ne \dfrac{3}{7}, so the lines never meet and there is no solution. The elimination example below reaches the same answer.

Worked example: substitution

Solve x+y=14x+y=14 and x−y=4x-y=4. From the second, x=y+4x = y+4. Substituting: (y+4)+y=14⇒2y=10⇒y=5(y+4)+y=14 \Rightarrow 2y=10 \Rightarrow y=5, so x=9x=9. Check: 9+5=149+5=14 and 9−5=49-5=4.

Worked example: elimination

Solve x+y=5x+y=5 and 2x−3y=42x-3y=4. Multiply the first by 2: 2x+2y=102x+2y=10. Subtract the second:

(2x+2y)−(2x−3y)=10−4  ⇒  5y=6  ⇒  y=65,x=5−65=195(2x+2y)-(2x-3y) = 10-4 \;\Rightarrow\; 5y=6 \;\Rightarrow\; y=\dfrac{6}{5}, \quad x = 5-\dfrac{6}{5} = \dfrac{19}{5}

Check: 2(195)−3(65)=38−185=42\left(\dfrac{19}{5}\right) - 3\left(\dfrac{6}{5}\right) = \dfrac{38-18}{5} = 4.

Worked example: infinitely many solutions

Solve 3x−y=33x-y=3 and 9x−3y=99x-3y=9. From the first, y=3x−3y = 3x-3. Substituting: 9x−3(3x−3)=9⇒9=99x - 3(3x-3) = 9 \Rightarrow 9 = 9. Every variable cancels and a true statement is left: the second equation is 3 times the first, the same line, so there are infinitely many solutions.

Worked example: no solution

Solve x+2y=3x+2y=3 and 2x+4y=72x+4y=7. Multiply the first by 2: 2x+4y=62x+4y=6. Subtracting from the second gives 0=10 = 1, which is false. The lines are parallel and the system has no solution.

Cross-multiplication

For a1x+b1y+c1=0a_1x+b_1y+c_1=0 and a2x+b2y+c2=0a_2x+b_2y+c_2=0 with a unique solution, cross-multiplication gives both variables in one line:

xb1c2−b2c1=yc1a2−c2a1=1a1b2−a2b1\dfrac{x}{b_1c_2-b_2c_1} = \dfrac{y}{c_1a_2-c_2a_1} = \dfrac{1}{a_1b_2-a_2b_1}

Both equations must be in the "=0= 0" form first, so the constants c1c_1 and c2c_2 carry their signs over. For 2x+y=52x + y = 5, that means c1=−5c_1 = -5, not 5.

Write the coefficients in this order, repeating the bb column at the end:

b1c1a1b1b2c2a2b2\begin{matrix} b_1 & c_1 & a_1 & b_1 \\ b_2 & c_2 & a_2 & b_2 \end{matrix}

Each denominator comes from one neighbouring pair of columns: (top-left × bottom-right) minus (bottom-left × top-right). The first pair (bb, cc) goes under xx, the second (cc, aa) under yy, and the third (aa, bb) under 1.

Worked example: cross-multiplication

Solve 2x+y=52x+y=5 and 3x+2y=83x+2y=8 by cross-multiplication.

Solution: Rewrite as 2x+y−5=02x+y-5=0 and 3x+2y−8=03x+2y-8=0, so a1=2,b1=1,c1=−5a_1=2,b_1=1,c_1=-5 and a2=3,b2=2,c2=−8a_2=3,b_2=2,c_2=-8:

x(1)(−8)−(2)(−5)=y(−5)(3)−(−8)(2)=1(2)(2)−(3)(1)\dfrac{x}{(1)(-8)-(2)(-5)} = \dfrac{y}{(-5)(3)-(-8)(2)} = \dfrac{1}{(2)(2)-(3)(1)}x2=y1=11  ⇒  x=2,  y=1\dfrac{x}{2} = \dfrac{y}{1} = \dfrac{1}{1} \;\Rightarrow\; x=2, \; y=1

Check: 2(2)+1=52(2) + 1 = 5 and 3(2)+2(1)=83(2) + 2(1) = 8.

When a1b2−a2b1=0a_1b_2 - a_2b_1 = 0 the formula can't be used: the lines are parallel or coincident, and the ratio test above tells you which.

Worked example: finding k for no solution

For what value of kk does the pair kx+3y=k−3kx + 3y = k - 3 and 12x+ky=k12x + ky = k have no solution?

Solution: No solution needs k12=3k\dfrac{k}{12} = \dfrac{3}{k}, so k2=36k^2 = 36 and k=6k = 6 or k=−6k = -6. Both must then also satisfy 3k≠k−3k\dfrac{3}{k} \neq \dfrac{k-3}{k}:

  • k=6k = 6: 36=12\dfrac{3}{6} = \dfrac{1}{2} and 6−36=12\dfrac{6-3}{6} = \dfrac{1}{2}. These are equal, so the lines coincide and there are infinitely many solutions.
  • k=−6k = -6: 3−6=−12\dfrac{3}{-6} = -\dfrac{1}{2} but −9−6=32\dfrac{-9}{-6} = \dfrac{3}{2}. These differ, so the lines are parallel.

So the pair has no solution only when k=−6k = -6.

Worked example: equations that reduce to linear ones

Solve 12x+13y=2\dfrac{1}{2x}+\dfrac{1}{3y}=2 and 13x+12y=136\dfrac{1}{3x}+\dfrac{1}{2y}=\dfrac{13}{6}.

Solution: Neither equation is linear in xx and yy, but substituting p=1xp=\tfrac{1}{x} and q=1yq=\tfrac{1}{y} makes them linear in pp and qq:

p2+q3=2  ⇒  3p+2q−12=0,p3+q2=136  ⇒  2p+3q−13=0\dfrac{p}{2}+\dfrac{q}{3}=2 \;\Rightarrow\; 3p+2q-12=0, \qquad \dfrac{p}{3}+\dfrac{q}{2}=\dfrac{13}{6} \;\Rightarrow\; 2p+3q-13=0

Cross-multiplying:

p(2)(−13)−(3)(−12)=q(−12)(2)−(−13)(3)=1(3)(3)−(2)(2)\dfrac{p}{(2)(-13)-(3)(-12)} = \dfrac{q}{(-12)(2)-(-13)(3)} = \dfrac{1}{(3)(3)-(2)(2)}p10=q15=15  ⇒  p=2,  q=3\dfrac{p}{10} = \dfrac{q}{15} = \dfrac{1}{5} \;\Rightarrow\; p=2, \; q=3

Converting back, 1x=2\tfrac{1}{x}=2 gives x=12x=\tfrac{1}{2}, and 1y=3\tfrac{1}{y}=3 gives y=13y=\tfrac{1}{3}.

Word problems

Every word problem comes down to naming the two unknowns and writing one equation per condition. Then any method above finishes it.

Two numbers. Two numbers add up to 50 and differ by 12: x+y=50x+y=50 and x−y=12x-y=12. Adding gives 2x=622x=62, so x=31x=31 and y=19y=19.

Ages, with two cases. Ani and Biju's ages differ by 3 years. Ani's father Dharam is twice as old as Ani, and Biju is twice as old as his sister Cathy. Cathy and Dharam's ages differ by 30 years. With Ani xx and Biju yy, Dharam is 2x2x and Cathy y2\tfrac{y}{2}, so 2x−y2=302x - \tfrac{y}{2} = 30, that is 4x−y=604x - y = 60. "Differ by 3" doesn't say who is older, so check both cases.

  • Ani older: x−y=3x - y = 3. Subtracting from 4x−y=604x - y = 60 gives 3x=573x = 57, so Ani is 19 and Biju 16.
  • Biju older: y−x=3y - x = 3. Adding to 4x−y=604x - y = 60 gives 3x=633x = 63, so Ani is 21 and Biju 24.

Both answers satisfy every condition, so both are valid.

Money. One friend says to another: "Give me ₹100 and I'll have twice what you have left." The other replies: "Give me ₹10 instead and I'll have six times what you have left." With the first friend's money xx and the second's yy: x+100=2(y−100)x+100 = 2(y-100) gives x−2y=−300x-2y=-300, and y+10=6(x−10)y+10 = 6(x-10) gives 6x−y=706x-y=70. Doubling the second and subtracting the first: 11x=44011x = 440, so x=40x = 40 and y=170y = 170. Check: 40+100=140=2(170−100)40+100 = 140 = 2(170-100).

Common mistakes

  • Subtracting only some terms. When subtracting equations, change the sign of every term, the constant included.
  • Stopping after one variable. Back-substitute to get the other, then check both equations.
  • Reading 0=00 = 0 as no solution. A true statement means infinitely many solutions; a false one like 0=10 = 1 means none.
  • Using the constants with the wrong sign. Move everything to one side first. 3x+2y=83x + 2y = 8 has c2=−8c_2 = -8.
  • Mixing up the order of the products. It's always top-left × bottom-right first in each pair of columns. Reversing one of them flips that variable's sign.
  • Forgetting to convert back. In reducible equations, p=2p = 2 is not the answer. The question asked for xx, which is 12\dfrac{1}{2}.
  • Stopping at k2=36k^2 = 36. One of the two roots often gives infinitely many solutions instead of none. Test each root against the cc ratio.

Where this comes up in exams

The 2025-26 CBSE Class X syllabus lists pairs of linear equations in two variables, their graphical solution and consistency, the algebraic conditions for the number of solutions, and solving them algebraically by substitution and elimination. Cross-multiplication isn't named there, so check whether your board or school still uses it.

Checked against CBSE Mathematics curriculum, Classes IX-X (2025-26). Syllabi can change from year to year, so confirm with the latest official notification for your exam.

Continue learning

A pair of equations is the first step to larger linear systems, which matrices solve in general.