Toolkit 31

Signs and Roots of Quadratics

f(x)=ax2+bx+c,Δ=b24acf(x)=ax^2+bx+c,\qquad \Delta=b^2-4ac
ConditionNumber of Real RootsSign of f(x)f(x)
Δ>0\Delta>02
sign(a)0−sign(a)0sign(a)r₁r₂
Δ=0\Delta=01
sign(a)0sign(a)r
Δ<0\Delta<00
sign(a)

Proof

Let

f(x)=ax2+bx+c,a0,f(x)=ax^2+bx+c, \qquad a\ne 0,

and let

Δ=b24ac.\Delta = b^2 - 4ac.

We consider three cases.

Case 1: Δ>0\Delta > 0

The quadratic has two distinct real roots

r1=bΔ2a,r2=b+Δ2a,r_1 = \frac{-b-\sqrt{\Delta}}{2a}, \qquad r_2 = \frac{-b+\sqrt{\Delta}}{2a},

where r1<r2r_1 < r_2. Thus,

f(x)=a(xr1)(xr2).f(x) = a(x-r_1)(x-r_2).
Sign chart for a(x-r_1)(x-r_2) with two real roots

From the sign chart above, we immediately obtain

sgn(f(x))={sgn(a),x<r1,0,x=r1,sgn(a),r1<x<r2,0,x=r2,sgn(a),x>r2.\operatorname{sgn}(f(x)) = \begin{cases} \operatorname{sgn}(a), & x<r_1, \\ 0, & x=r_1, \\ -\operatorname{sgn}(a), & r_1<x<r_2, \\ 0, & x=r_2, \\ \operatorname{sgn}(a), & x>r_2. \end{cases}

Case 2: Δ=0\Delta = 0

The quadratic has one repeated real root

r=b2a.r = -\frac{b}{2a}.

Hence,

f(x)=a(xr)2.f(x) = a(x-r)^2.
Sign chart for a(x-r)^2 with one repeated root

From the sign chart above, we immediately obtain

sgn(f(x))=sgn(a)\operatorname{sgn}(f(x)) = \operatorname{sgn}(a)

for xrx \ne r, while

f(r)=0.f(r) = 0.

Case 3: Δ<0\Delta < 0

Completing the square,

f(x)=a(x2+bax+ca)=a((x+b2a)2+4acb24a2).\begin{aligned} f(x) &= a\left(x^2+\frac{b}{a}x+\frac{c}{a}\right) \\ &= a\left(\left(x+\frac{b}{2a}\right)^2 + \frac{4ac-b^2}{4a^2}\right). \end{aligned}

Since Δ=b24ac<0\Delta = b^2-4ac < 0, we have 4acb2>04ac-b^2 > 0. Therefore,

(x+b2a)2+4acb24a2>0\left(x+\frac{b}{2a}\right)^2 + \frac{4ac-b^2}{4a^2} > 0

for every real xx. Thus,

sgn(f(x))=sgn(a)\operatorname{sgn}(f(x)) = \operatorname{sgn}(a)

for every real xx. These three cases give the complete root and sign classification of a quadratic polynomial.

\square