Quadratics and Polynomials

☰ Contents

A quadratic is any equation where the highest power of the unknown is two, and the reason it gets a chapter of its own is that it is the last family of equations that always yields to a formula you can memorize. Everything above it — cubics, quartics, quintics — either factors by luck or gets solved numerically.

There are three ways to solve one, and they are not interchangeable. Each answers a slightly different question, and knowing which to reach for is most of the skill.

How do you solve a quadratic by factoring?

To solve a quadratic by factoring, get everything on one side so the other side is zero, factor into two brackets, and set each equal to zero. x² + 5x + 6 = 0 factors to (x + 2)(x + 3) = 0, so x = −2 or x = −3. The brackets come from two numbers that multiply to the constant and add to the x coefficient: 2 and 3, since 2 × 3 = 6 and 2 + 3 = 5. It works because if two numbers multiply to zero, one of them is zero. With x² + x = 12, writing x(x + 1) = 12 proves nothing; subtract 12 first, then factor x² + x − 12 as (x + 4)(x − 3), so x = −4 or x = 3. Check each root in its original equation: for x = 3, 9 + 3 = 12, and for x = −2, 4 − 10 + 6 = 0.

x²2x4x8x2

the middle term is the sum of the two strips: 2x + 4x = 6x

Make the middle term 7x

0123456x = 2x = 3
Each bracket has its own zero: x = 2 and x = 3 — two answers rather than one. Full lesson: Solving by Factoring

The lesson on solving a quadratic by factoring drills the search for those two numbers until it is automatic.

Setting each bracket to zero works because of a property of numbers that is so familiar it goes unnoticed: if two things multiply to zero, at least one of them is zero. Nothing else in arithmetic behaves this way — two numbers can multiply to 12 in endless ways, but they can only multiply to 0 by one of them being 0. That is why the whole method insists on getting the equation to equal zero first.

Now you

factor first, then zero each bracket

Solve x² − 9x + 18 = 0

0725

Solve (x − 2)(x − 5) = 0

What do you do when it will not factor?

When a quadratic will not factor, use the quadratic formula: x = (−b ± √(b² − 4ac)) / 2a, with a, b and c taken from ax² + bx + c = 0. For x² + 4x + 1 = 0, a = 1, b = 4 and c = 1. The part under the root is 16 − 4 = 12, so x = (−4 ± √12) / 2, which simplifies to −2 ± √3. The formula is completing the square done once, on the general equation. See the quadratic formula, which explains the ± and the 2a. If b is negative, −b is positive: for x² − 6x + 7 = 0, b² − 4ac is 36 − 28 = 8, so x = (6 ± √8) / 2 = 3 ± √2. A negative number under the root means no real solution. As a check, the roots add to −b/a: −2 + √3 and −2 − √3 add to −4.

any a, b and c
/ 2a
Here it is — plug in a, b and c, and both answers come out at once. Full lesson: The Quadratic Formula

2x² + 3x − 4 = 0 → x = (−3 ± √(9 + 32)) / 4 = (−3 ± √41) / 4.

Most real quadratics do not factor. Whole-number factorizations are a small and lucky subset, which is why textbook exercises are full of them and physics problems almost never are.

Now you

xy

For x² + 5x − 2, what is b² − 4ac?

a = 1, b = −8, c = 12
/ 2a

Solve x² − 8x + 12 = 0 with the formula

Where does the quadratic formula come from?

The quadratic formula comes from completing the square, done once on ax² + bx + c = 0 instead of on every problem. Completing the square turns the x² and x terms into one squared bracket. For x² + 8x + 3 = 0, halve the 8, since 8 ÷ 2 = 4, and note that (x + 4)² brings in an extra 4² = 16. The equation becomes (x + 4)² − 16 + 3 = 0, which is (x + 4)² = 13, so x = −4 ± √13. Run the same steps with letters and they produce the formula. See deriving the quadratic formula. When the x² term has a coefficient other than 1, divide the whole equation by it first; that division is where the 2a comes from. To check the halving, expand: (x + 4)² − 13 is x² + 8x + 16 − 13, and 16 − 13 = 3 is the original constant.

x²2.5x2.5x(2.5)²x + 2.5

half of bx along each of two sides leaves a corner of side b/2 unfilled, which is why (b/2)² is added and then subtracted; the corner is 6.25

Make the missing corner 9

divide through by a
Start with any quadratic and divide through by a, so the x² stands alone. Full lesson: Deriving the Quadratic Formula

Completing the square rewrites x² + 6x − 1 as (x + 3)² − 10: halve the 6 to get the 3 inside the bracket, then subtract the 9 the bracket brought in with it, along with the original −1. Completing the square is the lesson that makes the halving step feel inevitable rather than magical.

x²2x2x(2)²x + 2
Half of 4 is 2, so (x + 2)² fits — but it brings a spare 4, so take that back off. Full lesson: Completing the Square
Why halve? Because (x + p)² expands to x² + 2px + p². The middle term always comes out as twice p, so to hit a middle term of 6x you need p = 3. The square you are completing is a literal one — a p-by-p corner tile that finishes off an L-shaped region — and that picture is why the technique is a thousand years older than the notation it is written in.

The rewritten form is worth more than the roots. (x + 3)² − 10 says at a glance that the minimum value is −10, reached at x = −3, because a squared bracket is never negative and is zero exactly once.

Now you

x²5x5x?x5x5

x² + 10x + ? completes the square. What is the missing number?

x²3x3x?x3x3

x² + 6x + ? completes the square. What is the missing number?

How many solutions does a quadratic have, and can you tell before solving?

A quadratic has two real solutions, one or none, and the discriminant, b² − 4ac, tells you which before you solve. Positive means two, zero means one repeated root, and negative means none. For 2x² + 3x − 5 = 0, the discriminant is 9 + 40 = 49, so there are two roots. For x² + 2x + 5 = 0, it is 4 − 20 = −16, so there is no real solution. The discriminant sits under the square root in the formula: a negative number has no real root, and zero makes the ± change nothing. See the discriminant and the nature of the roots. Asked for the k that makes the roots equal, set the discriminant to zero: for x² + kx + 9 = 0, k² − 36 = 0, so k = 6 or k = −6. Check k = 6: x² + 6x + 9 is (x + 3)², and 3 × 3 = 9.

−3−2−1123−6−4−2246xy√Δ = 4x = −2x = +242 distinct real roots

the roots sit √Δ = 4 apart

Drag the vertex until the discriminant is zero

−3−2−1123−6−4−2246xy√Δ = 4x = −2x = +242 distinct real roots
For x² − 4 it is 16, above zero: the curve crosses the axis in two places. Full lesson: The Discriminant and the Nature of the Roots

The same quantity answers a question that looks unrelated: whether a quadratic expression is ever negative. If a is positive and the discriminant is negative, the parabola sits entirely above the axis, so the expression is always positive for every real x — a fact used constantly in proofs and in checking that a model cannot produce nonsense.

Now you

above, at, or below zero?

A quadratic has b² − 4ac = −4. How many real roots?

above, at, or below zero?

A quadratic has b² − 4ac = 1. How many real roots?

What do the two roots add up to?

The two roots of a quadratic add to −b/a and multiply to c/a, so both can be read off the equation without solving it. For 2x² − 7x + 3 = 0, the sum is 7/2 and the product is 3/2. Solving confirms it: the roots are 3 and 1/2, and 3 + 1/2 = 7/2 while 3 × 1/2 = 3/2. See The sum and product of the roots. Both facts come from the factored form. Expanding a(x − α)(x − β) gives ax² − a(α + β)x + aαβ, and matching it against ax² + bx + c term by term forces the two relationships. The signs catch people: the sum carries a minus sign and the product does not, so for x² + 5x + 6 = 0 the roots add to −5 and multiply to 6, which makes both negative. Here −2 and −3 fit both facts, since −2 + −3 = −5 and −2 × −3 = 6.

−5−4−3−2−10123456x = 2.5x² − (1 + 4)x + (1)(4)= x² − 5x + 4

sum 5, product 4: x² − (sum)x + product, so the middle coefficient is −5 and the constant is 4; the axis of symmetry x = 2.5 is half the sum

Put the roots at 2 and 6 and read the expansion

match the x terms
Match the x terms: b = −a(α + β), so the sum of the roots is −b/a. Full lesson: The Sum and Product of the Roots

This turns out to be a construction tool. If you know what you want the roots to be, you can build the equation backwards, which is what forming quadratic equations is about — asked for an equation with roots 2 and −5, you write x² − (sum)x + (product) = x² + 3x − 10 without touching a formula.

It scales up too. A cubic has three roots, and they satisfy three matching relationships; roots and coefficients of a cubic extends the pattern, and transforming the roots of a polynomial shows the trick that follows from it: to find the equation whose roots are double the old ones, you never need the old roots at all.

multiply through by 4
Substitute and tidy up. The new equation is the old one written in the new variable. Full lesson: Transforming the Roots of a Polynomial

How do you solve a quadratic inequality?

A quadratic inequality is solved by finding the roots first, then deciding which side of them you want. For x² − x − 6 < 0, the expression factors as (x + 2)(x − 3), so the roots are −2 and 3. The parabola y = x² − x − 6 opens upward and dips below the axis only between its roots, so the answer is −2 < x < 3. The sign can only change where the curve crosses the axis. See Solving a quadratic inequality. The answer splits in two when the inequality asks for the outside: x² − x − 6 > 0 holds for x < −2 or x > 3. A negative x² coefficient turns the parabola over, so multiply through by −1 and reverse the sign first. Test a value from each region: x = 0 gives 0 − 0 − 6, a negative, and x = 4 gives 16 − 4 − 6 = 6, a positive.

25y = (x − 2)(x − 5) > 0x = 6: y = 4 ✓y > 0y < 0turn it over

y > 0 holds outside the roots, x < 2 or x > 5, because the curve is a bowl and that is where it is on that side of the axis: two rays, joined by 'or'

Choose y < 0 and park x where it holds

14y = (x − 1)(x − 4) < 0x = 2.5: y = −2.25 ✓
Sketch it. Between 1 and 4 the curve dips under the axis, so the value is negative. Full lesson: Solving a Quadratic Inequality
The tempting shortcut — divide both sides and treat it like a linear inequality — fails because the sign of the thing you divide by depends on x, and dividing by a negative flips the inequality. The sketch sidesteps the whole problem: the curve is either above the axis or below it, and you are simply reading off which stretch of x does what.

The same caution applies to rational inequalities, where the denominator can change sign; multiplying up without knowing that sign is the classic way to produce a confident wrong answer.

When does a line meet, touch or miss a curve?

To decide whether a line meets, touches or misses a curve, substitute the line into the curve's equation and read the discriminant of the quadratic. Two solutions mean two crossings, one means a tangent, and none means a miss. For y = x² and y = 2x + 3, setting x² = 2x + 3 gives x² − 2x − 3 = 0, with discriminant 4 + 12 = 16, so the line cuts the curve where x = 3 and x = −1. Each solution is the x-coordinate of a shared point. See when a line meets, touches or misses a curve. If the line holds an unknown, such as y = 2x + k, and must be a tangent, set the discriminant to zero and solve for k: 4 + 4k = 0 gives k = −1. Check a meeting point on both graphs: at x = 3, 3² = 9 and 2 × 3 + 3 = 9.

x² = 2x + cx² − 2x − 1 = 0Δ = 4 + 4c = 8two crossingsc = 1

c = 1: Δ = 8 > 0, so x² − 2x − c = 0 has two roots, x = −0.41 and x = 2.41, one for each crossing

Slide the line down until it only just touches the parabola

touches once
never meets
Above zero cuts, exactly zero touches, below zero misses. One test, three answers. Full lesson: When a Line Meets, Touches or Misses a Curve

Getting there needs the substitution step itself, which is the subject of a linear equation paired with a quadratic: rearrange the linear equation for one variable, put it into the quadratic, and solve the single-variable equation that results.

Equations that turn into quadratics

A great many equations that look nothing like a quadratic become one after a single rearrangement. Clearing a denominator turns a fractional equation into a quadratic, and squaring both sides does the same for a equation with a square root.

xu = x²00.511.5201234Δx = 0.2Δu = 0.4Δu / Δx = 2 · 2x = 1.8

du = 2x dx: the u-line stretches the interval by 2x = 1.8, which is why ∫ 2x cos(x²) dx becomes ∫ cos u du with the 2x used up

Slide the interval to where du and dx have the same length

multiply both sides by x
6 = x(x − 1)a quadratic appears
The unknown sits underneath. Multiply both sides by x and a quadratic appears. Full lesson: Fractional Equations
Both moves can invent solutions that were never there. Squaring is the dangerous one: x = −2 is false, but square both sides and x² = 4 is true. The squared equation is a weaker statement than the one you started with, so it admits extra answers. This is why radical equations always end with a check — substituting each candidate back is not diligence, it is part of the method.
2 = −2squaring makes it true
Squaring accepts 2 = −2, so the extra answer appears there — only x = 6 holds. Full lesson: Solving Equations with a Square Root

What is the binomial theorem?

The binomial theorem expands a bracket raised to a whole-number power without multiplying it out. (1 + x)⁵ = 1 + 5x + 10x² + 10x³ + 5x⁴ + x⁵, and its coefficients are row 5 of Pascal's triangle. Each term takes either the 1 or the x from each of the five brackets. The x² term counts the ways to choose two brackets to supply an x, and there are 5 × 4 ÷ 2 = 10 of them. See The binomial theorem. When the first term is not 1, its powers enter every coefficient. In (2 + x)³ the coefficients 1, 3, 3, 1 are multiplied by falling powers of 2, giving 8 + 12x + 6x² + x³, because 3 × 4 = 12 and 3 × 2 = 6. Putting x = 1 checks the row: 1 + 5 + 10 + 10 + 5 + 1 = 32, five 2s multiplied together.

(a + b)³ = a³ + 3a²b + 3ab² + b³1 cube a³ · 3 slabs a²b · 3 rods ab² · 1 cube b³n = 2n = 3pull apart

a cube of side a + b, cut at a along each edge: pull it apart to count the pieces of each kind

Choose n = 3 and pull the cube apart

(a+b)⁰1(a+b)¹11(a+b)²121(a+b)³1331
Cubing gives 1, 3, 3, 1. Each number is the two above it added. Full lesson: The Binomial Theorem
Multiplying out (1 + x)⁵ means choosing either the 1 or the x from each of five brackets and adding up every possible outcome. A term in x² arises exactly when you picked the x from two brackets and the 1 from the other three — and there are ten ways to choose which two. That is why the coefficients are the combination numbers: they are literally counting choices.
× a× ba²a³a²b2ab2a²b2ab²
Why they add: a²b comes from a² times b and from 2ab times a, so its coefficient is 1 + 2 = 3. Full lesson: The Binomial Theorem

The theorem then extends past whole-number powers, which is where it stops being an algebra convenience and becomes an approximation tool. The binomial series for a negative or fractional index turns things like √(1 + x) and 1/(1 + x) into infinite series that are accurate for small x, and expanding (a + bx) to a rational power handles the case where the bracket does not conveniently start with a 1 — you factor the a out first, and the condition for validity comes along with it.

Now you

what are its coefficients?

What are the coefficients of (a + b)^2?

the term of
pick which brackets give an x

What is the coefficient of x³ in (1 + x)^5?

How do you factor a cubic?

To factor a cubic, find one root by trial, divide out the factor it gives, and factor what is left. For x³ − 6x² + 11x − 6, try x = 1: 1 − 6 + 11 − 6 = 0, so (x − 1) is a factor. Dividing leaves x² − 5x + 6, which is (x − 2)(x − 3), so the cubic is (x − 1)(x − 2)(x − 3). The factor theorem justifies the trial: if x = a makes a polynomial zero, then (x − a) is a factor. Only divisors of the constant term need trying. See The factor and remainder theorem. When the substitution does not give zero, the value is the remainder instead: at x = 4, 64 − 96 + 44 − 6 = 6, so dividing by (x − 4) leaves 6. Check the factored form at x = 0, where the brackets give −1 × −2 × −3 = −6, the constant term.

r = f(a)no remainderf(a) = 0 ⟹ r = 0so it is a factor(x − a) divides f exactly
If f(a) comes out as zero, there is no remainder and the bracket is a factor. Full lesson: Factor and Remainder Theorem

With whole-number coefficients, a cubic ending in −6 has only ±1, ±2, ±3, ±6 worth testing.

What if there is no exact answer?

When no exact solution can be written down, rearrange it into the shape x = g(x), start from a rough guess, and feed each output back in as the next input. The values usually settle toward a root. For x² = 2, one rearrangement is x = (x + 2/x) / 2. Starting from 1 gives (1 + 2) ÷ 2 = 3/2, and the next step gives (3/2 + 4/3) ÷ 2 = 17/12, already close to √2. A root is a fixed point: put it in and the same number comes out, so nearby values are pulled toward it. See Solving equations by iteration. Not every rearrangement settles. Written as x = 2/x, the same equation sends 1 to 2 and 2 back to 1 forever, so try another shape when values jump about. Substitute the result into the original equation: 17 × 17 = 289 and 2 × 144 = 288, so 17/12 squared is just over 2.

root−2−112x₀ = 2 · 0 stepsx₀ = 2steps

each step follows the tangent to the axis: xn+1 = xn − f(xn)/f′(xn)

Start at x₀ = 0 and take four steps

move the 4x across
divide by 4
Rearrange until a single x stands alone on the left. The right side is g(x), the expression to iterate. Full lesson: Solving Equations by Iteration

This matters more than it first appears. Beyond the fourth degree there is no general formula in radicals, so iteration is not a fallback for the lazy: for most polynomial equations that arise in practice, it is the method.

The mistakes worth naming

The natural next step from here is graphs of equations and coordinate geometry, which is the same parabola seen from the other side, and functions and rational functions, where completing the square reappears as a graph transformation. Related guides: Complex Numbers and Matrices and Markov Chains.

Your turn

Three to try — tap what you get.

Factor x² − 9

The roots of (x − 2)(x + 5) = 0

x² + 6x + 9 =

Questions and answers

How do you know which method to use to solve a quadratic?
Try factoring first, because when it works it is the fastest route and takes about ten seconds. If no pair of whole numbers multiplies to the constant and adds to the middle coefficient, go straight to the formula. Completing the square is the method you choose when the question asks for the vertex, the minimum value, or an exact surd answer rather than just the roots.
What does the discriminant tell you?
The discriminant is b squared minus 4ac, and it is the part under the square root in the quadratic formula. If it is positive there are two distinct real roots, if it is zero the two roots have collapsed into one repeated root, and if it is negative there is no real root because you cannot square-root a negative real number. It answers how many solutions there are without solving anything.
Why does a quadratic have two solutions?
Because squaring destroys sign information. Both 3 and minus 3 square to 9, so undoing a square has to admit both possibilities. Every method carries this: completing the square ends in a plus-or-minus, factoring gives two brackets each of which can be the zero, and geometrically a parabola crosses a horizontal line in two places.
What is the binomial theorem for?
It expands a bracket raised to a power without multiplying it out. To expand (1 + x) to the tenth power by hand you would multiply ten brackets; the theorem gives any single term directly, so you can find the coefficient of x cubed in one line. The coefficients count how many ways you can choose x from each bracket, which is why they are the combination numbers from Pascal's triangle.
How do you solve a quadratic inequality?
Solve the matching equation first to find where the curve crosses zero, then decide which side of those crossings satisfies the inequality. For x squared minus x minus 6 being less than zero, the roots are minus 2 and 3, and a parabola opening upwards sits below zero only between its roots, so the answer is minus 2 less than x less than 3. Sketching the parabola is more reliable than trying to rearrange the inequality directly.
Can every equation be solved exactly?
No. Quadratics always have a formula, cubics and quartics have formulas nobody uses, and from the fifth degree upwards no general formula in radicals exists. When an equation has no exact route, you rearrange it into the form x equals g(x) and iterate: feed a guess in, take the output as the next guess, and repeat until the digits stop moving. That is an answer to as many decimal places as you need, not an approximation of a lesser kind.
Mr. Chalk