DONAT STEMSciences and MathsENFR
Learn · Mathematics

How to solve quadratic equations: factorising, the formula and the graph

A short explainer with a free virtual lab to try it yourself.

Short answerA quadratic equation has the form ax² + bx + c = 0. Solve it by factorising when the numbers are friendly, or use the quadratic formula: x = (−b ± √(b² − 4ac)) ÷ 2a. The solutions are where the graph y = ax² + bx + c crosses the x-axis.

🧪 Try it in the free lab. In the free quadratic functions simulation you change a, b and c with sliders and watch the parabola, its vertex and its roots move.

Open the lab →

Method 1: factorising

Solve x² − 5x + 6 = 0. Find two numbers that multiply to +6 and add to −5: −2 and −3.

(x − 2)(x − 3) = 0 → x = 2 or x = 3

If a product is zero, at least one factor must be zero.

Method 2: the quadratic formula

Solve 2x² + 3x − 4 = 0, where a = 2, b = 3, c = −4.

  • b² − 4ac = 9 − 4 × 2 × (−4) = 9 + 32 = 41.
  • x = (−3 ± √41) ÷ 4 = (−3 ± 6.40) ÷ 4.
  • x ≈ 0.85 or x ≈ −2.35.

Method 3: completing the square

x² + 6x + 2 = 0 → (x + 3)² − 9 + 2 = 0 → (x + 3)² = 7 → x = −3 ± √7. This method also gives the vertex of the graph: (−3, −7).

The discriminant

b² − 4acNumber of real solutionsGraph
PositiveTwoCrosses the x-axis twice
ZeroOne (repeated)Touches the x-axis
NegativeNoneDoes not reach the x-axis

A real problem

A school farm plot is 4 m longer than it is wide, and its area is 60 m². Let the width be x: x(x + 4) = 60, so x² + 4x − 60 = 0, which factorises to (x + 10)(x − 6) = 0. The width cannot be negative, so x = 6 m and the length is 10 m. Always check that answers make sense in the real situation.

🧪 Quadratic functions · free, works on any phone, with graphs, questions and a lab report.

Start the lab →

Questions people ask

Why does a quadratic have up to two solutions?

Its graph is a parabola, which can cross a straight line (the x-axis) at most twice.

Can I divide both sides by x?

No: you may lose the solution x = 0. Factorise instead.

Which method is best?

Try factorising first; if it does not work quickly, use the formula, which always works.

Practise this topic

Written by BIZIYAREMYE Donat, Experienced Physics and STEM Educator, Rwanda. Published 30 November 2026. Found a mistake? Write on WhatsApp 0788 804 242. More explainers · All Interactive Labs