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. 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 , writing x(x + 1) = 12 proves nothing; subtract 12 first, then factor 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.
the middle term is the sum of the two strips: 2x + 4x = 6x
Make the middle term 7x
The lesson on solving a quadratic by factoring drills the search for those two numbers until it is automatic.
Now you
Solve
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: / 2a, with a, b and c taken from . For , a = 1, b = 4 and c = 1. The part under the root is 16 − 4 = 12, so / 2, which simplifies to . 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 , is 36 − 28 = 8, so / . A negative number under the root means no real solution. As a check, the roots add to : and add to −4.
/ / 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
For , what is ?
Solve with the formula
Where does the quadratic formula come from?
The quadratic formula comes from completing the square, done once on instead of on every problem. Completing the square turns the and x terms into one squared bracket. For , halve the 8, since 8 ÷ 2 = 4, and note that brings in an extra . The equation becomes , which is , so . Run the same steps with letters and they produce the formula. See deriving the quadratic formula. When the 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: is , and 16 − 13 = 3 is the original constant.
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
Completing the square rewrites as : 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.
The rewritten form is worth more than the roots. 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
? completes the square. What is the missing number?
? 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, , tells you which before you solve. Positive means two, zero means one repeated root, and negative means none. For , the discriminant is 9 + 40 = 49, so there are two roots. For , 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 , , so k = 6 or k = −6. Check k = 6: is , and 3 × 3 = 9.
the roots sit √Δ = 4 apart
Drag the vertex until the discriminant is zero
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
A quadratic has . How many real roots?
A quadratic has . How many real roots?
What do the two roots add up to?
The two roots of a quadratic add to and multiply to , so both can be read off the equation without solving it. For , the sum is and the product is . Solving confirms it: the roots are 3 and , and while . See The sum and product of the roots. Both facts come from the factored form. Expanding gives , and matching it against term by term forces the two relationships. The signs catch people: the sum carries a minus sign and the product does not, so for 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.
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
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 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.
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 , the expression factors as (x + 2)(x − 3), so the roots are −2 and 3. The parabola 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: holds for x < −2 or x > 3. A negative 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.
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
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 and y = 2x + 3, setting gives , 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, and 2 × 3 + 3 = 9.
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
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.
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
What is the binomial theorem?
The binomial theorem expands a bracket raised to a whole-number power without multiplying it out. , 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 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 the coefficients 1, 3, 3, 1 are multiplied by falling powers of 2, giving , 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 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
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 and 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 the coefficients of ?
What is the coefficient of in ?
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 , try x = 1: 1 − 6 + 11 − 6 = 0, so (x − 1) is a factor. Dividing leaves , 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.
With whole-number coefficients, a cubic ending in −6 has only , , , 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 , one rearrangement is . Starting from 1 gives , and the next step gives , already close to . 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 , 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 squared is just over 2.
each step follows the tangent to the axis: xn+1 = xn − f(xn)/f′(xn)
Start at x₀ = 0 and take four steps
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
- Solving before setting it to zero. (x + 2)(x + 3) = 2 tells you nothing about the brackets. The zero-product property needs the zero.
- Losing the negative root. is 3, but "" has two answers. The square root symbol and the act of undoing a square are different things.
- Forgetting to subtract what completing the square added. is not ; it carries a spare 9.
- Trusting a squared equation. Every radical equation ends with substituting the answers back in.
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.