← All blog posts

Quadratic Equation Solver for students — with examples

WhiteUI · A plain-English guide to the Quadratic Equation Solver

Factorising, the formula, and completing the square are the three methods exams expect, and the Quadratic Equation Solver checks all three. Here is how students use it, with exam-style examples worked out step by step.

Worked example — factorising

Solve x² + 7x + 12 = 0. Find two numbers that multiply to 12 and add to 7: 3 and 4. So the equation factors as (x + 3)(x + 4) = 0, and x = −3 or x = −4. The discriminant agrees: D = 49 − 48 = 1, so the roots are (−7 ± 1) ÷ 2 = −3 and −4.

x² + 7x + 12 = (x + 3)(x + 4) = 0
x = −3 or x = −4
(x + 3)(x + 4) as an areax3x4x²3x4x12x² + 3x + 4x + 12 = x² + 7x + 12
The four parts add up: x² + 3x + 4x + 12 = x² + 7x + 12.

Completing the square

Solve x² − 4x + 3 = 0 by completing the square. Half of −4 is −2, so x² − 4x + 3 becomes (x − 2)² − 4 + 3, which is (x − 2)² − 1 = 0. That gives (x − 2)² = 1, so x − 2 = 1 or x − 2 = −1, and x = 3 or x = 1.

x² − 4x + 3 = 0
(x − 2)² = 1
x = 3 or x = 1

Check both: 3² − 4 × 3 + 3 = 9 − 12 + 3 = 0, and 1² − 4 × 1 + 3 = 1 − 4 + 3 = 0.

The mistake to avoid

Dropping the ± when you take a square root. (x − 2)² = 1 gives x − 2 = 1 and x − 2 = −1. Take only the +1 and you lose the root x = 1 entirely — half the answer gone in one line.

Frequently asked questions

How do I factorise x² + 7x + 12?

Find two numbers that multiply to 12 and add to 7: 3 and 4. So (x + 3)(x + 4) = 0, and x = −3 or −4.

What is completing the square?

Rewriting x² − 4x + 3 = 0 as (x − 2)² = 1, then taking square roots: x = 3 or 1.

Which method should I use in an exam?

Factorise if the numbers are obvious; otherwise use the formula. Both give the same roots.

How do I check my answer?

Put each root back in: (−3)² + 7(−3) + 12 = 9 − 21 + 12 = 0.

More guides on the Quadratic Equation Solver

Try it yourself

Solve a quadratic equation, see the discriminant and both roots — free, in your browser.

Open the Quadratic Equation Solver