MathLabs

Grade 9

Quadratic equations

Equations of the form ax²+bx+c=0, solved by factoring, completing the square or the quadratic formula.

IntuitionA curved path, not a straight one

Throw a ball, and it does not travel in a straight line — gravity curves its path into a parabola. Anywhere a quantity depends on the square of another (area of a square field, distance fallen under gravity, compound growth over two steps), the relationship y=ax2+bx+cy=ax^2+bx+c shows up, and asking "when does y hit a target value?" means solving ax2+bx+c=0ax^2+bx+c=0. Unlike a straight line, a parabola can cross a fixed height zero, one, or two times — so a quadratic equation can have two solutions, one, or none.

Interactive parabola with adjustable coefficients showing zero, one, or two real roots
The parabola y=x2−2x−3y=x^2-2x-3: drag cc and dd to watch the two crossings of y=0y=0 move together, merge into one, or disappear entirely.

SchoolStandard form and the discriminant

Definition: Quadratic equation and discriminant

A quadratic equation in xx is one that can be written in the standard form ax2+bx+c=0ax^2+bx+c=0 with a≠0a\neq0. Its discriminant is the number Δ=b2−4ac\Delta=b^2-4ac, built entirely from the three coefficients, and — as the theorems below show — its sign alone decides how many real solutions the equation has.

ax2+bx+c=0ax^2+bx+c=0

Three techniques solve a quadratic: factoring when the left side splits into two simple linear factors (fast, but only works for nice numbers), completing the square (always works, and is the engine behind the next technique), and the quadratic formula x=−b±Δ2ax=\dfrac{-b\pm\sqrt{\Delta}}{2a}, which always works and needs no guessing.

x=−b±Δ2ax=\dfrac{-b\pm\sqrt{\Delta}}{2a}
What the discriminant tells you
Sign of ΔNumber of real rootsFormula for the root(s)
Δ>0\Delta>0Two, distinctx=−b±Δ2ax=\dfrac{-b\pm\sqrt{\Delta}}{2a}
Δ=0\Delta=0One (double root)x=−b2ax=-\dfrac{b}{2a}
Δ<0\Delta<0None (real)—

UndergraduateTwo key theorems

For a≠0a\neq0, every real solution of ax2+bx+c=0ax^2+bx+c=0 satisfies x=−b±Δ2ax=\dfrac{-b\pm\sqrt{\Delta}}{2a}, where Δ=b2−4ac\Delta=b^2-4ac; conversely, whenever Δ≥0\Delta\ge0 this formula produces genuine solutions.

Why is it true?

Factoring only works when we get lucky with nice numbers; completing the square turns any quadratic into a perfect square equalling a number, which we can then "undo" with a square root — this gives one formula that solves every quadratic equation, no guessing required.

Proof

Step 1 (Normalize). Since a≠0a\neq0, divide every term of ax2+bx+c=0ax^2+bx+c=0 by aa: this gives x2+bax+ca=0x^2+\dfrac{b}{a}x+\dfrac{c}{a}=0, an equivalent equation where the leading coefficient is 11.

Step 2 (Complete the square). The first two terms x2+baxx^2+\dfrac{b}{a}x are the start of the perfect square (x+b2a)2=x2+bax+b24a2\left(x+\dfrac{b}{2a}\right)^2=x^2+\dfrac{b}{a}x+\dfrac{b^2}{4a^2}. Adding and subtracting b24a2\dfrac{b^2}{4a^2} inside x2+bax+ca=0x^2+\dfrac{b}{a}x+\dfrac{c}{a}=0 lets us rewrite it as (x+b2a)2−b24a2+ca=0\left(x+\dfrac{b}{2a}\right)^2-\dfrac{b^2}{4a^2}+\dfrac{c}{a}=0.

Step 3 (Isolate the square). Move the constant terms to the right side and combine them over the common denominator 4a24a^2: −b24a2+ca=−b2+4ac4a2=−b2−4ac4a2=−Δ4a2-\dfrac{b^2}{4a^2}+\dfrac{c}{a}=\dfrac{-b^2+4ac}{4a^2}=-\dfrac{b^2-4ac}{4a^2}=-\dfrac{\Delta}{4a^2}. This gives (x+b2a)2=Δ4a2\left(x+\dfrac{b}{2a}\right)^2=\dfrac{\Delta}{4a^2}.

Step 4 (Take the square root). When Δ≥0\Delta\ge0, the right side is a nonnegative real number, so both sides have real square roots: x+b2a=±Δ2ax+\dfrac{b}{2a}=\pm\dfrac{\sqrt{\Delta}}{2a} (the ±\pm already accounts for both signs, whichever sign aa itself has).

Step 5 (Isolate x). Subtract b2a\dfrac{b}{2a} from both sides: x=−b2a±Δ2a=−b±Δ2ax=-\dfrac{b}{2a}\pm\dfrac{\sqrt{\Delta}}{2a}=\dfrac{-b\pm\sqrt{\Delta}}{2a}, which is exactly x=−b±Δ2ax=\dfrac{-b\pm\sqrt{\Delta}}{2a}. Every algebraic step used (dividing by nonzero aa, adding/subtracting the same quantity, taking square roots of equal nonnegative numbers) is reversible, so this formula is both necessary and sufficient whenever Δ≥0\Delta\ge0.

For a≠0a\neq0, the equation ax2+bx+c=0ax^2+bx+c=0 has exactly two distinct real roots if Δ>0\Delta>0, exactly one real root x=−b2ax=-\dfrac{b}{2a} if Δ=0\Delta=0, and no real root if Δ<0\Delta<0.

Why is it true?

This turns "how many times does the parabola cross the x-axis" — a question about a picture — into "check the sign of one number" — a question you can answer without drawing anything.

Proof

Every step of this proof reuses the identity (x+b2a)2=Δ4a2\left(x+\dfrac{b}{2a}\right)^2=\dfrac{\Delta}{4a^2} established in the previous theorem, which holds for any real a,b,ca,b,c with a≠0a\neq0 regardless of the sign of Δ\Delta — only the final square-root step depended on Δ≥0\Delta\ge0.

**Case Δ>0\Delta>0.** The right side Δ4a2\dfrac{\Delta}{4a^2} is a positive number (a positive numerator over a positive denominator 4a24a^2), so it has two distinct square roots, +Δ2a+\dfrac{\sqrt{\Delta}}{2a} and −Δ2a-\dfrac{\sqrt{\Delta}}{2a}, which differ because Δ≠0\sqrt{\Delta}\neq0. Each gives a different value of x+b2ax+\dfrac{b}{2a}, hence a different value of xx: exactly two distinct real roots.

**Case Δ=0\Delta=0.** The right side becomes 00, and the only real number whose square is 00 is 00 itself — there is no "±\pm" ambiguity left. So x+b2a=0x+\dfrac{b}{2a}=0, giving the single root x=−b2ax=-\dfrac{b}{2a}. This matches factoring the left side directly as a(x+b2a)2=0a\left(x+\dfrac{b}{2a}\right)^2=0, a perfect square touching zero exactly once.

**Case Δ<0\Delta<0.** The right side Δ4a2\dfrac{\Delta}{4a^2} is now negative. But the left side (x+b2a)2\left(x+\dfrac{b}{2a}\right)^2 is a square of a real number, and the square of any real number is always ≥0\ge0 — it can never equal a negative number. So no real xx can satisfy (x+b2a)2=Δ4a2\left(x+\dfrac{b}{2a}\right)^2=\dfrac{\Delta}{4a^2} in this case, meaning the original equation has no real solution at all.

UndergraduateReal-World Applications and Worked Examples

Quadratics appear whenever motion under constant acceleration, area, or products of two changing quantities are involved: a thrown object's height over time, the dimensions of a rectangular plot given a fixed perimeter and target area, or a firm's profit as a quadratic function of price. Solving "when is the quantity zero (or some target value)" is exactly solving a quadratic equation.

Example: Physics — when does a thrown object land?

A ball is thrown so that its height in meters after tt seconds is h(t)=−t2+4t+5h(t)=-t^2+4t+5. Find the time at which the ball hits the ground (height 00).

Solution

Step 1 (Set height to zero and standardize). Landing means −t2+4t+5=0-t^2+4t+5=0. Multiply both sides by −1-1 to get a positive leading coefficient: t2−4t−5=0t^2-4t-5=0.

Step 2 (Factor and interpret). Since −5×1=−5-5\times1=-5 and −5+1=−4-5+1=-4, this factors as (t−5)(t+1)=0(t-5)(t+1)=0, giving t=5t=5 or t=−1t=-1. A negative time makes no physical sense here (the ball is thrown at t=0t=0), so we discard it, leaving t=5t=5 seconds as the only meaningful answer.

Example: Business — zero-profit prices

A firm's monthly profit (in thousands of dollars) as a function of price level xx is P(x)=−x2+10x−16P(x)=-x^2+10x-16. Find the two price levels at which the firm exactly breaks even (profit =0=0).

Solution

Step 1 (Set profit to zero and standardize). Break-even means −x2+10x−16=0-x^2+10x-16=0. Multiplying both sides by −1-1 gives x2−10x+16=0x^2-10x+16=0.

Step 2 (Factor and interpret both roots). Since −2×−8=16-2\times-8=16 and −2+−8=−10-2+-8=-10, this factors as (x−2)(x−8)=0(x-2)(x-8)=0, giving x=2x=2 and x=8x=8. Both are physically meaningful price levels: profit is exactly zero at x=2x=2 and x=8x=8, and (since the profit parabola opens downward) positive in between — the firm should price somewhere between these two break-even points to be profitable.

Compute the discriminant of 2x2−4x−6=02x^2-4x-6=0.

If Δ<0\Delta<0, how many real roots does the quadratic have?

Solve x2−5x+6=0x^2-5x+6=0 by factoring.

A ball's height is h(t)=−t2+4t+5h(t)=-t^2+4t+5. At what positive time does it land?