Type the values of a, b and c for any quadratic equation ax2 + bx + c = 0. The solver finds the discriminant, tells you the nature of the roots, factorises the equation by splitting the middle term when that is possible, and solves it with the quadratic formula, showing every line the way you would write it in a Class 10 board exam. Fractions and decimals are allowed.
How the solver works
A quadratic equation in the variable x is an equation of the form ax2 + bx + c = 0, where a, b and c are real numbers and a ≠ 0. This is Chapter 4, Quadratic Equations, of the NCERT Class 10 Mathematics book. The solver follows the same order as the textbook.
1. Write the equation in standard form
All terms must be on one side with 0 on the other. If the coefficients have fractions or decimals, the solver first multiplies every term by the LCM of the denominators, so that the working uses whole numbers. Multiplying both sides by the same non-zero number does not change the roots.
2. Find the discriminant
D = b2 − 4ac
The discriminant tells you the nature of the roots before you solve:
- If D > 0, there are two distinct real roots.
- If D = 0, there are two equal real roots, each equal to −b ÷ 2a.
- If D < 0, there are no real roots. In Class 10 this is the final answer. (In Class 11 you will learn that such equations have complex roots, which the solver shows in a small grey note.)
3. Factorise by splitting the middle term
When D is a perfect square (0, 1, 4, 9, 16, ...), the equation can be factorised with whole numbers. Find two numbers whose sum is b and whose product is a × c. Split bx into two terms using these numbers, take out common factors in pairs, and write the expression as a product of two brackets. Each bracket equal to 0 gives one root. If D is not a perfect square, the factors would contain square roots, so the formula is used instead.
4. Use the quadratic formula
x = (−b ± √D) ÷ 2a
This works for every quadratic equation with D ≥ 0. When √D is not a whole number, the answer is left in surd form, for example x = 2 ± √3, and the solver also gives the decimal values to three places.
5. Check the answer
For the roots α and β: α + β = −b ÷ a and α × β = c ÷ a. The solver checks both for rational roots.
Worked example
Question: Find the nature of the roots of 2x2 − 7x + 3 = 0. If real roots exist, find them.
Here a = 2, b = −7, c = 3.
D = b2 − 4ac = (−7)2 − 4 × 2 × 3 = 49 − 24 = 25. Since D > 0, the roots are real and distinct.
By factorisation: we need two numbers with sum −7 and product 2 × 3 = 6. These are −6 and −1.
2x2 − 6x − x + 3 = 0
2x(x − 3) − 1(x − 3) = 0
(2x − 1)(x − 3) = 0
So 2x − 1 = 0 or x − 3 = 0, which gives x = 1/2 or x = 3.
By the quadratic formula: x = (7 ± √25) ÷ 4 = (7 ± 5) ÷ 4, so x = 12 ÷ 4 = 3 or x = 2 ÷ 4 = 1/2.
Check: sum of roots = 3 + 1/2 = 7/2 = −b ÷ a, and product = 3 × 1/2 = 3/2 = c ÷ a. Both match.
Common mistakes
- Taking b as 7 instead of −7. The sign goes with the coefficient, so −b becomes −(−7) = 7.
- Writing b2 as −72 = −49. Always square the bracket: (−7)2 = 49, so b2 is never negative.
- Dividing only √D by 2a. The whole numerator −b ± √D is divided by 2a.
- Not bringing all terms to one side first. In x2 = 5x − 6, the value of c is 6 (from x2 − 5x + 6 = 0), not −6.
- Writing complex roots in a Class 10 answer. When D < 0, the correct answer is "no real roots".