My Math Studio  ·  Precalculus

9.4. The Quadratic Formula

10/10 Mastery
Watch the video
Optional
Do the practice set
Required
Take the mastery quiz
Required

First: do the work once instead of every time

Twelve times, completing the square, you did the same five steps and only the numbers changed. So do them once, with letters, and keep the answer. That is all the quadratic formula is. It is not a new method and it is not something to take on trust: it is completing the square carried out on \(ax^2+bx+c=0\) itself, with \(a\), \(b\) and \(c\) standing in for whatever numbers turn up later.

The derivation is below, and it is worth reading once even though you will never need to repeat it. After that the formula answers every quadratic there is: factorable or not, rational or not, real or not.

The derivation: completing the square, done in letters

\(ax^2 + bx + c = 0\)
Any quadratic at all, in standard form, with \(a \ne 0\).
\(x^2 + \dfrac{b}{a}x + \dfrac{c}{a} = 0\)
Divide by \(a\). Allowed precisely because \(a \ne 0\): the one condition in the definition.
\(x^2 + \dfrac{b}{a}x = -\dfrac{c}{a}\)
Move the constant across.
\(\left(\dfrac{b}{2a}\right)^2 = \dfrac{b^2}{4a^2}\)
Halve the middle coefficient and square it: the missing corner from the completing-the-square picture.
\(\left(x + \dfrac{b}{2a}\right)^2 = \dfrac{b^2}{4a^2} - \dfrac{c}{a}\)
Add it to both sides and factor the left. It factors by construction.
\(\left(x + \dfrac{b}{2a}\right)^2 = \dfrac{b^2 - 4ac}{4a^2}\)
Put the right side over one denominator. That numerator is about to matter a great deal.
\(x + \dfrac{b}{2a} = \dfrac{\pm\sqrt{b^2-4ac}}{2a}\)
Take the square root of both sides, with the \(\pm\). The bottom comes out as \(2a\) because \(\sqrt{4a^2} = 2|a|\), and the \(\pm\) absorbs the sign.
\(x = \dfrac{-b \pm \sqrt{b^2-4ac}}{2a}\)
Subtract \(\dfrac{b}{2a}\). Done, and never to be done again.

The formula

The quadratic formula
For any equation \(ax^2 + bx + c = 0\) with \(a \ne 0\), the solutions are \[x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\] Put the equation in standard form, read off \(a\), \(b\) and \(c\) with their signs, and substitute.
\(-b\), not \(b\) If \(b = -7\) then \(-b = +7\). The formula begins by changing the sign of whatever \(b\) actually is.
\(b^2\) is never negative \((-7)^2 = 49\), not \(-49\). Square first, then worry about \(-4ac\).
\(2a\) is under all of it The whole numerator sits over \(2a\): both the \(-b\) and the radical, not just one.
Worked in full  ·  Exercise 6l
\(x^2 - 9x + 4 = 0\), so \(a = 1\), \(b = -9\), \(c = 4\). \[x = \frac{-(-9) \pm \sqrt{(-9)^2 - 4(1)(4)}}{2(1)} = \frac{9 \pm \sqrt{81 - 16}}{2} = \frac{9 \pm \sqrt{65}}{2}\] \(65 = 5 \times 13\) has no square factor, so \(\sqrt{65}\) will not simplify and the answer is finished. Write the brackets round \(-9\) when you substitute, that one habit prevents most of the sign errors in this exercise.
Do not cancel a number that is only part of the top
In \(\dfrac{9 \pm \sqrt{65}}{2}\) you cannot cancel the 9 against the 2: the 2 divides the whole numerator, and \(\sqrt{65}\) is not divisible by it. Cancelling is only allowed when every term on top shares the factor, as in \(\dfrac{-6 \pm 2\sqrt{3}}{2} = -3 \pm \sqrt{3}\).

The part under the radical decides everything

The discriminant
The quantity \(b^2 - 4ac\) is called the discriminant, written \(D\). You can compute it on its own, before solving anything, and it tells you how many real answers to expect, because it is the number sitting under the square root. \[D = b^2 - 4ac\] It also names the three pictures you have already met in this chapter.
The discriminantHow many real rootsWhat the curve doesSeen in
\(D \gt 0\) two, and they differ cuts through the axis at two points the two easy kinds
\(D = 0\) one repeated root comes down and just touches solving by factoring, Exercise 4
\(D \lt 0\) none that are real misses the axis entirely not on this sheet
The three cases, side by side
Same shape each time; only the height has moved. The discriminant measures how far the curve has been pushed relative to the axis, and the square root of a negative number is where a real answer stops existing, which is exactly the case that misses.
A perfect-square discriminant is worth noticing for a different reason: it means the radical disappears and the roots come out rational, which is precisely when factoring would have worked. In Exercise 6, parts (a), (b), (c) and (g) have \(D = 1, 1, 9, 9\), and all four are equations you already solved by factoring.
A negative discriminant is an answer, not a dead end
If \(D \lt 0\), write no real solution and say why: the formula asks for the square root of a negative number, and no real number squares to something negative. That is the complete answer and it is worth full marks.

Exercise 6  ·  all twelve, by formula

HistoryMathematics in many hands
The most awkward part of completing the square was the fractions. Dividing by \(a\) turns tidy integers into \(\tfrac{b}{a}\) and \(\tfrac{b^2}{4a^2}\), and most of the errors on that page came from there rather than from the mathematics.

There is a version that avoids them completely. Instead of dividing by \(a\), multiply everything by \(4a\), then add \(b^2\):

\(4a^2x^2 + 4abx + b^2 = b^2 - 4ac\), which is \((2ax+b)^2 = b^2-4ac\), and the formula falls out in one more line: with no fraction written anywhere until the last step.

That is not a modern trick. It is essentially the rule attributed to Śrīdhara, an Indian mathematician usually placed somewhere in the eighth or ninth century: his dates are genuinely uncertain and are argued over. His own algebra does not survive. We have the rule because Bhāskara II wrote it down in the Bījagaṇita around 1150 and credited it to him: multiply by four times the coefficient of the square, add the square of the coefficient of the unknown, and take the root. So the neatest derivation on this page reaches us only as a quotation, a rule preserved because someone four centuries later thought it worth attributing rather than absorbing. If the fractions in completing the square defeated you, try Śrīdhara's arrangement on Exercise 5 and see how much of the difficulty was never the method at all.

© 2026 S. R. Kingan. All rights reserved. Free for your own study. No copying or redistribution without written permission. Terms of use