Maths WorkshopMaths problems with full solutions
Exercise 1018Algebra › InequalitiesL1Added 3 Nov 2026

Discriminant and positivity

#discriminant#positivity#quadratic

Statement

Let a,b,c∈Ra,b,c\in\mathbb{R} with a>0a>0. Show that the quadratic ax2+bx+cax^2+bx+c is positive for all x∈Rx\in\mathbb{R} if and only if b2−4ac<0b^2-4ac<0.

Hint

Complete the square: ax2+bx+c=a(x+b2a)2+4ac−b24aax^2+bx+c=a\left(x+\frac{b}{2a}\right)^2+\frac{4ac-b^2}{4a}.

Show solutionHide solution

Solution

Completed square.
ax2+bx+c=a(x+b2a)2+4ac−b24a.ax^2+bx+c=a\left(x+\frac{b}{2a}\right)^2+\frac{4ac-b^2}{4a}.

Case Δ<0\Delta<0. Then 4ac−b2=−Δ>04ac-b^2=-\Delta>0, and since a>0a>0, the second term is positive. The first term is ≥0\ge0, so the sum is >0>0 for all xx.

Case Δ≥0\Delta\ge0. Then 4ac−b2≤04ac-b^2\le0. At x=−b2ax=-\frac{b}{2a}, the quadratic equals 4ac−b24a≤0\frac{4ac-b^2}{4a}\le0, so it is not always positive.

Conclusion. ax2+bx+c>0ax^2+bx+c>0 for all xx iff a>0a>0 and Δ<0\Delta<0.