Type two linear equations in x and y and this solver finds the values of x and y, decides whether the pair has one solution, no solution or infinitely many, and draws both lines on a graph. It shows the full working by the substitution method, the elimination method and the cross-multiplication method, so Class 9 and Class 10 students can check each line of their own answer for the chapter Pair of Linear Equations in Two Variables.
How the solver works
Each equation is first brought to the standard form a x + b y = k (or a x + b y + c = 0, where c = −k). If an equation has decimals or fractions, it is multiplied by the LCM of the denominators so that all the coefficients become whole numbers. Then the pair is tested and solved.
1. Ratio test: how many solutions?
For the pair a1x + b1y + c1 = 0 and a2x + b2y + c2 = 0, compare the ratios of the coefficients:
- a1/a2 ≠ b1/b2: the lines cut each other at one point. Exactly one solution (consistent pair).
- a1/a2 = b1/b2 = c1/c2: the lines lie on top of each other (coincident). Infinitely many solutions (dependent, consistent pair).
- a1/a2 = b1/b2 ≠ c1/c2: the lines are parallel and never meet. No solution (inconsistent pair).
When a coefficient in the second equation is 0, a ratio cannot be written, so the solver compares cross-products instead: the pair has one solution exactly when a1b2 − a2b1 ≠ 0.
2. Substitution method
From one equation, write one variable in terms of the other (for example x = (11 − 3y)/2). Put this into the other equation, which now has only one variable. Solve it, then put the value back to get the second variable. The solver picks the variable whose coefficient is 1 or −1 if there is one, because that keeps the working simple.
3. Elimination method
Multiply the equations by suitable numbers so that the coefficients of one variable become equal. Subtract the equations (or add them, if the signs are opposite) to remove that variable. Solve for the other variable and substitute back.
4. Cross-multiplication method
x ÷ (b1c2 − b2c1) = y ÷ (c1a2 − c2a1) = 1 ÷ (a1b2 − a2b1)
This works only when a1b2 − a2b1 is not 0. The current NCERT Class 10 textbook teaches the graphical, substitution and elimination methods; cross-multiplication is still found in many reference books and older papers, so it is included here for practice.
5. Graphical method
Each linear equation is a straight line. Find two or three points on each line (the tables next to the graph give them), plot them, and join them. The point where the lines meet gives the solution. Parallel lines mean no solution; one line on top of the other means infinitely many solutions.
Worked example
Question: Solve 2x + 3y = 11 and 2x − 4y = −24.
Ratio test: a1/a2 = 2/2 = 1 and b1/b2 = 3/(−4) = −3/4. These are not equal, so the pair has exactly one solution.
By elimination: the coefficients of x are already equal (2 and 2). Subtract the second equation from the first:
(2x + 3y) − (2x − 4y) = 11 − (−24), so 7y = 35 and y = 5.
Put y = 5 in the first equation: 2x + 15 = 11, so 2x = −4 and x = −2.
By substitution: from the first equation, x = (11 − 3y)/2. Putting this in the second equation: 11 − 3y − 4y = −24, so −7y = −35 and y = 5, giving x = −2 again.
By cross-multiplication: write the equations as 2x + 3y − 11 = 0 and 2x − 4y + 24 = 0. Then b1c2 − b2c1 = 3 × 24 − (−4)(−11) = 72 − 44 = 28, c1a2 − c2a1 = (−11)(2) − 24 × 2 = −70 and a1b2 − a2b1 = 2 × (−4) − 2 × 3 = −14. So x = 28 ÷ (−14) = −2 and y = −70 ÷ (−14) = 5.
Check: 2(−2) + 3(5) = −4 + 15 = 11 and 2(−2) − 4(5) = −4 − 20 = −24. Both are true, so x = −2, y = 5. On the graph the two lines meet at the point (−2, 5).
Common mistakes
- Changing the sign of only one term when subtracting the equations. When you subtract, every term of the second equation changes sign, including the constant.
- Using c1/c2 from the form a x + b y = k in one equation and a x + b y + c = 0 in the other. Write both equations in the same form before comparing ratios.
- In cross-multiplication, writing y ÷ (c2a1 − c1a2) with the order reversed. The order c1a2 − c2a1 matters; a reversed order gives the wrong sign for y.
- Stopping after finding one variable. Always substitute back to find the other one, and check both values in both equations.
- Plotting only two points per line and making a slip. A third point is a quick check that the points really are in a straight line.
Practise with
- NCERT Solutions Class 10 Mathematics Chapter 3 Pair of Linear Equations in Two Variables
- NCERT Exemplar Solutions Class 10 Maths Pair of Linear Equations
- CBSE Class 10 Mathematics Pair of Linear Equations in Two Variables Notes
- CBSE Class 10 Mathematics Pair of Linear Equations in Two Variables Worksheets
- Xam Idea Solutions Class 10 Maths Chapter 3 Long Answer Type Questions
Answers are given as exact fractions. Decimal values are rounded to three places and are shown only as a guide.