Maths Lab guide · Quadratics
Quadratic equations, solved the textbook way
A quadratic ax² + bx + c = 0 has at most two real roots. MathMe chooses the method a teacher would: factorise when the numbers allow it, otherwise use the quadratic formula.
Method 1 — split the middle term
Find two numbers whose product is ac and whose sum is b. For x² − 5x + 6 = 0 they are −2 and −3:
x² − 2x − 3x + 6 = 0
x(x − 2) − 3(x − 2) = 0
(x − 2)(x − 3) = 0 → x = 2 or x = 3
Method 2 — the discriminant and the formula
The discriminant D = b² − 4ac tells you what to expect before you solve:
D > 0: two real roots (the parabola crosses the x-axis twice).D = 0: one repeated root (it touches the axis).D < 0: no real roots (it misses the axis); the roots are complex.
x² + 2√3x − 1 = 0
a = 1, b = 2√3, c = −1
D = (2√3)² − 4·1·(−1) = 16
x = (−2√3 ± √16)/2 = −√3 ± 2
When there are no real roots
For x² + x + 1 = 0, D = −3. MathMe says there is no real solution and also shows the complex roots x = (−1 ± i√3)/2 for students who have met them.
See the parabola
The graph shows the curve y = ax² + bx + c and marks each root where it meets y = 0, so the number of roots matches the picture.
Questions and answers
Which method does MathMe use?
It factorises by splitting the middle term whenever integer factors exist, and otherwise uses the quadratic formula with the surd simplified.
What does the discriminant tell me?
D = b² − 4ac. Positive: two real roots; zero: one repeated root; negative: no real roots (two complex roots).
Can it handle coefficients like 2√3 or fractions?
Yes. Fractions are cleared first, and surd coefficients give exact answers such as −√3 ± 2.
More Maths Lab guides
Equation solver · Quadratic equations · Trigonometric equations · Proving identities · 3D graphing calculator · Area & volume formulas