Deriving the quadratic formula by completing the square

Completing the square turns a quadratic equation into a perfect square that can be handled with square roots. That transformation explains where the familiar quadratic formula comes from, instead of leaving it as a formula to memorise. The resulting roots, or zeroes, also describe where a parabola crosses the horizontal axis.

The derivation below works from (ax^2+bx+c=0) and keeps every algebraic move visible. It shows why the expression under the square root determines the number of real solutions, a fact that carries through school mathematics into geometry, statistics and optimisation.

Why completing the square matters

Completing the square works even when a quadratic cannot be factored neatly. A factoring trinomials guide can help students see why factorisation sometimes stalls and why it is fair dinkum to change an equation’s form rather than force awkward factors.

The same method converts standard form into vertex form. From ((x-h)^2+k), the axis of symmetry, maximum or minimum, and intercepts are easier to read. This is why the skill appears in algebra lessons and in geometry problems involving parabolas.

Students in Melbourne may practise it through a VCE pathway, while students in Perth meet similar techniques in courses connected with the ATAR. Exact course names vary across Australia, but the central habit is the same: have a go at the structure, then check the arithmetic.

Setting up the derivation

Begin with the general quadratic equation (ax^2+bx+c=0), where (a\ne0). If (a=0), the equation is linear, so this restriction must be checked before any division occurs.

Move the constant term to the right and divide every term by (a): [ ax^2+bx=-c \quad\Rightarrow\quad x^2+\frac ba x=-\frac ca. ] The division applies to the entire left side, not just to the first term.

At this stage, the coefficient of (x) is (b/a), not (b). That small distinction prevents many sign and fraction errors before the completed square is even attempted.

Turning the equation into a perfect square

For a square ((x+m)^2=x^2+2mx+m^2), the middle term is (2mx). Here the middle term is ((b/a)x), so half of its coefficient is (b/(2a)). Squaring this value gives (b^2/(4a^2)), the amount that must be added to both sides.

Adding it produces [ x^2+\frac ba x+\frac{b^2}{4a^2} =-\frac ca+\frac{b^2}{4a^2}. ] The left side is now a perfect square.

On the right, put both fractions over a common denominator: [ -\frac ca+\frac{b^2}{4a^2} =\frac{-4ac+b^2}{4a^2} =\frac{b^2-4ac}{4a^2}. ] Collecting the completed square gives [ \left(x+\frac{b}{2a}\right)^2 =\frac{b^2-4ac}{4a^2}. ] No term has been discarded because the added square is balanced on both sides.

Isolating x and interpreting the result

Taking square roots gives [ x+\frac{b}{2a} =\pm\frac{\sqrt{b^2-4ac}}{2a}. ] The plus-or-minus sign accounts for both possible square roots. Subtracting (b/(2a)) then yields [ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}. ] This is the standard quadratic formula. Its structure becomes easier to remember once the completion step is understood, because the radical comes from the discriminant (b^2-4ac), while the denominator comes from the doubled centre of the completed square.

The discriminant determines the real solutions. A positive value gives two distinct real roots, zero gives one repeated root, and a negative value gives no real roots, although two complex roots still exist. The restriction (a\ne0) keeps the denominator valid, and the two sign choices remain valid even when (a) is negative.

Checking the derivation with an example

Take (x^2-6x+5=0). Move the constant, add (9), and write the perfect square: [ x^2-6x=-5 \quad\Rightarrow\quad x^2-6x+9=4 \quad\Rightarrow\quad (x-3)^2=4. ] Hence (x-3=\pm2), so (x=5) or (x=1).

Now use the formula with (a=1), (b=-6), and (c=5). The discriminant is (36-20=16), giving [ x=\frac{6\pm4}{2}=5\ \text{or}\ 1. ] Both methods agree. As a further check, the roots have sum (6=-b/a) and product (5=c/a), matching the relationships between roots and coefficients taught in Australian senior secondary courses.

Tools, study habits, and local support

CurryPlum’s step-by-step solutions, calculators and other maths tools can support independent practice without replacing the working. For a visual explanation, the design team at classroom algebra graphics can help turn the before-and-after steps into a polished study-sheet image.

Australia’s homework-help market includes school teachers, private tutors, learning centres and online services, with many packages priced in Australian dollars. This mix matters in regional and remote areas, where online homework assistance can connect families in central Australia with specialist support while classes in Sydney or Brisbane follow their own state syllabuses.

Two compact revision checklists

For the derivation:

For checking a solution:

A practical takeaway

The quadratic formula is not an isolated trick: it is the final line of a reversible sequence—divide, halve, square, add and take square roots. Recognising that sequence makes the signs less mysterious and links roots directly to the vertex form of a parabola.

The practical takeaway is a sequence: divide, halve, square, add and take square roots. A calculator can confirm the arithmetic, but the completed-square working makes every part of the formula explainable.