Equation Solver

Equation 1: x + y = 14
Equation 2: x − y = 4
x = 9, y = 5

Consistent with a unique solution: the lines intersect at one point, since a₁/a₂ ≠ b₁/b₂.

a₁b₂ − a₂b₁ = 1 × (-1) − 1 × 1 = -2
x = (c₁b₂ − c₂b₁) ÷ (a₁b₂ − a₂b₁) = -18 ÷ (-2) = 9
y = (a₁c₂ − a₂c₁) ÷ (a₁b₂ − a₂b₁) = -10 ÷ (-2) = 5

What equations can this solve?

Three kinds from the NCERT syllabus. Linear equations in one variable, like 2x + 5 = 11 (Class 8). Pairs of linear equations in two variables, like x + y = 14 and x − y = 4 (Class 10), including whether they have one solution, none or infinitely many. And quadratic equations, like 2x² − 5x + 3 = 0, with the discriminant and the nature of the roots (Class 10). Answers are shown as exact fractions where possible.

Key formulas

ax + b = c ⇒ x = (c − b) ÷ a · x = (c₁b₂ − c₂b₁) ÷ (a₁b₂ − a₂b₁), y = (a₁c₂ − a₂c₁) ÷ (a₁b₂ − a₂b₁) · x = (−b ± √(b² − 4ac)) ÷ 2a

The middle formulas are the cross-multiplication method for a₁x + b₁y = c₁ and a₂x + b₂y = c₂. The last is the quadratic formula; its discriminant D = b² − 4ac decides the nature of the roots.

Nature of solutions

  • A pair of linear equations has a unique solution if a₁/a₂ ≠ b₁/b₂, no solution if a₁/a₂ = b₁/b₂ ≠ c₁/c₂, and infinitely many if all three ratios are equal.
  • Graphically, these are intersecting, parallel and coincident lines.
  • A quadratic has two distinct real roots when D > 0, two equal roots when D = 0 and no real roots when D < 0.
  • The sum of a quadratic's roots is −b/a and their product is c/a: for 2x² − 5x + 3 = 0, 3/2 + 1 = 5/2 and 3/2 × 1 = 3/2.
  • Always check a solution by substituting it back into the original equation.

Worked examples

  1. 2x + 5 = 11 ⇒ 2x = 6 ⇒ x = 3
  2. x + y = 14 and x − y = 4: a₁b₂ − a₂b₁ = (1)(−1) − (1)(1) = −2
  3. x = (14 × (−1) − 4 × 1) ÷ (−2) = 9 and y = (1 × 4 − 1 × 14) ÷ (−2) = 5
  4. 2x² − 5x + 3 = 0: D = 25 − 24 = 1, so there are two distinct real roots
  5. x = (5 ± 1) ÷ 4, so x = 3/2 or x = 1

Nature of quadratic roots

How the discriminant decides the roots, with examples.

EquationD = b² − 4acRoots
x² − 5x + 6 = 013, 2
2x² − 5x + 3 = 013/2, 1
x² − 4x + 4 = 002
x² + 2x + 5 = 0-16D < 0: no real roots

D < 0 roots exist only as complex numbers.

Frequently Asked Questions

By substitution, elimination or cross-multiplication. For x + y = 14 and x − y = 4, adding them gives 2x = 18, so x = 9 and y = 5.
Compare the coefficient ratios. If a₁/a₂ = b₁/b₂ but that differs from c₁/c₂, the lines are parallel and never meet. x + 2y = 3 and 2x + 4y = 7 have no solution.
x = (−b ± √(b² − 4ac)) ÷ 2a for ax² + bx + c = 0. For 2x² − 5x + 3 = 0, x = (5 ± 1) ÷ 4, giving 3/2 and 1.
D = b² − 4ac. If D > 0 there are two distinct real roots, if D = 0 two equal real roots, and if D < 0 no real roots.
No real solution when D < 0, such as x² + 2x + 5 = 0 (D = −16). It does have two complex roots, −1 ± 2i.