In short

A polynomial has a repeated root (also called a multiple root) when a factor (x - r) appears more than once in its factorisation. The root r is said to have multiplicity k if (x - r)^k divides the polynomial but (x - r)^{k+1} does not. Repeated roots show up geometrically as places where the curve touches the axis without crossing it (for even multiplicity) or crosses it with a flat, inflection-like shape (for odd multiplicity greater than one). The condition for a repeated root is that both f(r) = 0 and f'(r) = 0 — a connection to derivatives that makes repeated roots detectable without factoring.

Consider the quadratic x^2 - 4x + 4 = 0. Factor it: (x - 2)^2 = 0. The only solution is x = 2, but the factor (x - 2) appears twice. This is different from x^2 - 5x + 6 = 0, which factors as (x - 2)(x - 3) = 0 and has two distinct roots.

The distinction matters. When you count roots "with multiplicity," both quadratics have two roots — the first has root 2 with multiplicity 2, and the second has roots 2 and 3 each with multiplicity 1. But the geometry is completely different: the parabola y = (x - 2)^2 touches the axis at x = 2 and bounces back up, while y = (x - 2)(x - 3) cuts through the axis at two points.

A parabola with a repeated root touches the axis versus one with distinct roots crossing the axisTwo parabolas side by side. The left parabola y equals x minus 2 squared touches the x-axis at x equals 2 and bounces back up. The right parabola y equals x minus 2 times x minus 3 crosses the x-axis at two distinct points x equals 2 and x equals 3. x y 2 touches (multiplicity 2) x y 2 3 crosses (distinct roots)
Left: the parabola $y = (x-2)^2$ just *touches* the $x$-axis at $x = 2$ and immediately turns back up — the hallmark of a repeated root. Right: the parabola $y = (x-2)(x-3)$ *crosses* the axis at two distinct points. The geometry encodes the algebraic multiplicity.

This touching-versus-crossing distinction is not a coincidence unique to parabolas. It persists at every degree, and it leads to a beautiful connection between roots of a polynomial and roots of its derivative.

What "repeated root" means precisely

Repeated root and multiplicity

A root r of a polynomial f(x) has multiplicity k if (x - r)^k divides f(x) but (x - r)^{k+1} does not. Equivalently, you can write f(x) = (x - r)^k \cdot g(x) where g(r) \neq 0.

A root of multiplicity 1 is called a simple root. A root of multiplicity 2 or higher is called a repeated root (or multiple root).

For the polynomial f(x) = (x - 1)^3 (x + 2)^2 (x - 5), the root x = 1 has multiplicity 3, the root x = -2 has multiplicity 2, and the root x = 5 has multiplicity 1. The total count — 3 + 2 + 1 = 6 — equals the degree of f.

This always holds: for any polynomial of degree n with real (or complex) coefficients, the multiplicities of all roots add up to exactly n. This is a consequence of the Fundamental Theorem of Algebra.

Geometry of repeated roots

The multiplicity determines how the curve behaves at the root.

Multiplicity 1 (simple root). The curve crosses the axis at a nonzero angle — it passes straight through.

Multiplicity 2 (double root). The curve touches the axis and turns back. It does not cross — the sign of f(x) does not change. Think of a ball bouncing off the floor.

Multiplicity 3 (triple root). The curve crosses the axis, but with a flat, inflection-like shape — the curve is tangent to the axis at the root, lingers near zero, and then continues through. The sign does change, but gently.

The pattern: even multiplicity means the curve touches and turns back (no sign change). Odd multiplicity means the curve crosses (sign changes), but for multiplicities greater than 1, the crossing is flattened.

Curve behaviour at roots of multiplicity 1, 2, and 3Three curves shown side by side. The first crosses the axis sharply at a simple root. The second touches the axis and bounces back at a double root. The third crosses the axis with a flat tangency at a triple root. Multiplicity 1 crosses sharply Multiplicity 2 touches and turns back Multiplicity 3 crosses, but flat
How the curve meets the axis depends on the multiplicity. A simple root gives a clean crossing. A double root gives a touch-and-turn — the curve is tangent to the axis. A triple root gives a flat crossing — the curve is tangent *and* has an inflection point at the root.

The condition for repeated roots

Here is the central question: given a polynomial f(x), how do you tell whether it has a repeated root without fully factoring it? The answer involves the derivative.

If r is a root of multiplicity k \geq 2, then f(x) = (x - r)^k \cdot g(x) for some polynomial g with g(r) \neq 0. Differentiate using the product rule:

f'(x) = k(x - r)^{k-1} \cdot g(x) + (x - r)^k \cdot g'(x)
= (x - r)^{k-1} \left[ k \cdot g(x) + (x - r) \cdot g'(x) \right]

At x = r: the factor (x - r)^{k-1} becomes 0 (since k \geq 2 means k - 1 \geq 1). So f'(r) = 0.

Conversely, if r is a simple root (multiplicity 1), then f(x) = (x - r) \cdot g(x) with g(r) \neq 0, and f'(r) = 1 \cdot g(r) + 0 = g(r) \neq 0.

This gives a clean test:

Condition for a repeated root

A root r of f(x) is repeated (multiplicity \geq 2) if and only if both f(r) = 0 and f'(r) = 0.

Equivalently, r is a repeated root of f(x) if and only if r is a common root of f(x) and f'(x).

This is remarkable. The derivative — a concept from calculus — detects repeated roots purely algebraically. You do not need to fully factor f(x) or find all roots. You just need the GCD of f(x) and f'(x).

Finding repeated roots

The condition gives a practical algorithm:

  1. Compute f'(x).
  2. Find \gcd(f(x), f'(x)) using the Euclidean algorithm for polynomials.
  3. If the GCD is a constant (degree 0), there are no repeated roots.
  4. If the GCD has positive degree, its roots are exactly the repeated roots of f(x).

Take f(x) = x^3 - 3x + 2. Compute f'(x) = 3x^2 - 3 = 3(x^2 - 1) = 3(x - 1)(x + 1).

Check f(1) = 1 - 3 + 2 = 0 and f'(1) = 3 - 3 = 0. Both are zero, so x = 1 is a repeated root.

Check f(-1) = -1 + 3 + 2 = 4 \neq 0. So x = -1 is a root of f' but not of f — it is not relevant.

Factor f(x): since (x - 1) is a repeated factor, divide: x^3 - 3x + 2 = (x - 1)^2(x + 2). The root x = 1 has multiplicity 2 and x = -2 has multiplicity 1.

Interactive graph of x cubed minus 3x plus 2 showing a repeated root at x equals 1A coordinate plane showing the cubic y equals x cubed minus 3x plus 2. The curve touches the x-axis at x equals 1 (a double root) and crosses at x equals minus 2 (a simple root). A draggable point lets the reader trace the curve and see the tangency at x equals 1. x y −2 −1 1 2 drag the red point
The cubic $f(x) = x^3 - 3x + 2 = (x - 1)^2(x + 2)$. Drag the red point to see the curve *touch* the axis at $x = 1$ (the repeated root — it reaches zero but turns back without crossing) and *cross* the axis at $x = -2$ (the simple root). At $x = 1$, both $f(1) = 0$ and $f'(1) = 0$ — the derivative condition is visible as the tangency.

The discriminant connection

For a quadratic ax^2 + bx + c = 0, you already know the discriminant D = b^2 - 4ac. When D = 0, the two roots coincide — the quadratic has a repeated root. This is the quadratic's version of the "both f and f' vanish" condition.

The discriminant of a cubic or higher-degree polynomial is a more complex expression, but it plays the same role: when the discriminant is zero, the polynomial has at least one repeated root.

For the general quadratic, the repeated root when D = 0 is x = -b/(2a). For the cubic x^3 + px + q = 0, the discriminant is \Delta = -4p^3 - 27q^2, and \Delta = 0 signals a repeated root.

Discriminant equals zero implies a repeated root across different degreesA table showing the discriminant condition for degrees 2, 3, and n. For degree 2, D equals b squared minus 4ac equals zero gives a double root. For degree 3, Delta equals negative 4p cubed minus 27q squared equals zero gives a repeated root. For degree n, discriminant equals zero means f and f prime share a root. Discriminant = 0 ↔ repeated root Degree Discriminant Repeated root 2 b² − 4ac = 0 x = −b/(2a) 3 −4p³ − 27q² = 0 gcd(f, f') ≠ const n Δ = 0 f(r) = f'(r) = 0
At every degree, the discriminant vanishing is equivalent to the polynomial having a repeated root. The derivative condition $f(r) = f'(r) = 0$ is the universal version that works at any degree.

Connection with derivatives: a preview

The fact that f(r) = 0 and f'(r) = 0 at a double root is the beginning of a deeper pattern. If r has multiplicity k, then:

f(r) = f'(r) = f''(r) = \cdots = f^{(k-1)}(r) = 0

and f^{(k)}(r) \neq 0. Each successive derivative "peels off" one layer of the repeated factor. The first nonzero derivative tells you the multiplicity.

For a triple root: f(r) = 0, f'(r) = 0, f''(r) = 0, but f'''(r) \neq 0.

This makes sense geometrically. At a simple root, the curve crosses the axis with a nonzero slope — f'(r) \neq 0, so the tangent line is tilted. At a double root, the slope is zero — the curve is flat, tangent to the axis. At a triple root, even the curvature (f'') is zero — the curve is not just tangent but has an inflection point on the axis.

You will study derivatives properly in calculus. For now, the key takeaway is this: the derivative of a polynomial is itself a polynomial, computable by the rule that \frac{d}{dx}(x^n) = nx^{n-1}, and it reveals the multiplicity structure of the roots.

Two worked examples

Example 1: Find the value of $k$ for which $x^3 - 3x + k = 0$ has a repeated root

Step 1. Compute the derivative: f(x) = x^3 - 3x + k, so f'(x) = 3x^2 - 3 = 3(x^2 - 1) = 3(x - 1)(x + 1).

Why: the derivative of x^3 is 3x^2, the derivative of -3x is -3, and the derivative of the constant k is 0. The factored form shows the derivative's roots immediately.

Step 2. The repeated root must be a common root of f and f'. The roots of f' are x = 1 and x = -1. So the repeated root is either 1 or -1.

Why: a repeated root of f must satisfy f(r) = 0 and f'(r) = 0. Since f' has only two roots, the repeated root must be one of them.

Step 3. Case r = 1: f(1) = 1 - 3 + k = k - 2 = 0, so k = 2.

Case r = -1: f(-1) = -1 + 3 + k = k + 2 = 0, so k = -2.

Why: for each candidate, setting f(r) = 0 determines k.

Step 4. Verify both cases.

For k = 2: f(x) = x^3 - 3x + 2 = (x - 1)^2(x + 2). Root x = 1 has multiplicity 2. Confirmed.

For k = -2: f(x) = x^3 - 3x - 2 = (x + 1)^2(x - 2). Root x = -1 has multiplicity 2. Confirmed.

Result. The equation has a repeated root when k = 2 (double root at x = 1) or k = -2 (double root at x = -1).

Two cubics with repeated roots: k equals 2 and k equals negative 2Two cubic curves side by side. The left curve is x cubed minus 3x plus 2, touching the axis at x equals 1 and crossing at x equals minus 2. The right curve is x cubed minus 3x minus 2, touching the axis at x equals minus 1 and crossing at x equals 2. k = 2 −2 −1 1 2 crosses touches k = −2 −2 −1 1 2 touches crosses
The two values of $k$ that produce a repeated root. When $k = 2$, the curve touches the axis at $x = 1$ (a double root) and crosses at $x = -2$. When $k = -2$, the curve touches at $x = -1$ and crosses at $x = 2$. The two curves are reflections of each other through the origin — a consequence of the odd symmetry of $x^3 - 3x$.

The two cubics are mirror images. The function g(x) = x^3 - 3x is an odd function (g(-x) = -g(x)), so adding k to get a tangency on one side corresponds to adding -k for the other side. The derivative test cleanly identifies both possibilities.

Example 2: Show that $f(x) = x^4 - 4x^3 + 6x^2 - 4x + 1$ has a root of multiplicity $4$

Step 1. Compute successive derivatives.

f(x) = x^4 - 4x^3 + 6x^2 - 4x + 1

f'(x) = 4x^3 - 12x^2 + 12x - 4

f''(x) = 12x^2 - 24x + 12

f'''(x) = 24x - 24

f^{(4)}(x) = 24

Why: each derivative is computed using the power rule \frac{d}{dx}(x^n) = nx^{n-1}, applied term by term.

Step 2. Evaluate each derivative at x = 1.

f(1) = 1 - 4 + 6 - 4 + 1 = 0

f'(1) = 4 - 12 + 12 - 4 = 0

f''(1) = 12 - 24 + 12 = 0

f'''(1) = 24 - 24 = 0

f^{(4)}(1) = 24 \neq 0

Why: the first nonzero derivative at r = 1 is the fourth derivative. This means r = 1 has multiplicity exactly 4.

Step 3. Confirm by factoring. Notice the coefficients 1, -4, 6, -4, 1 — these are \binom{4}{0}, -\binom{4}{1}, \binom{4}{2}, -\binom{4}{3}, \binom{4}{4}, which is the binomial expansion of (x - 1)^4.

f(x) = (x - 1)^4

Why: the binomial coefficients with alternating signs are the signature of (x - 1)^n. Recognising this pattern confirms the multiplicity without any division.

Step 4. Verify the degree count: one root (x = 1) with multiplicity 4 accounts for all four roots of a degree-4 polynomial. The factorisation is complete.

Result. f(x) = (x - 1)^4, so x = 1 is a root of multiplicity 4.

Graph of (x minus 1) to the fourth showing a quartic touching the axis with extreme flatness at x equals 1A coordinate plane showing the curve y equals (x minus 1) to the fourth. The curve touches the x-axis at x equals 1 with extreme flatness — it barely lifts off the axis near the root. The curve rises steeply for x values far from 1. x y 1 2 3 x = 1 (multiplicity 4) f, f', f'', f''' all zero at x = 1 f⁴(1) = 24 ≠ 0
The curve $y = (x - 1)^4$ touches the axis at $x = 1$ with extraordinary flatness — the first, second, and third derivatives are all zero there. The curve is "super-tangent" to the axis: four layers of contact, visible as the long stretch where the curve hugs zero before peeling away. Only the fourth derivative is nonzero at $x = 1$, confirming multiplicity $4$.

The extreme flatness near x = 1 is visible in the graph — the curve barely lifts off the axis for a noticeable interval. Each additional layer of multiplicity flattens the approach further. Multiplicity 2 gives a gentle touch; multiplicity 4 gives a curve that practically sleeps on the axis before rising.

Common confusions

Going deeper

If you came here to learn what repeated roots are, how to detect them, and why the derivative matters, you have the complete picture — you can stop here. The rest is for readers who want to see the algebraic structure underneath.

The GCD method in detail

The polynomial GCD \gcd(f(x), f'(x)) captures all the repeated-root information of f(x). If f(x) = (x - r_1)^{m_1} (x - r_2)^{m_2} \cdots (x - r_s)^{m_s} with each m_i \geq 1, then

\gcd(f(x), f'(x)) = \prod_{m_i \geq 2} (x - r_i)^{m_i - 1}

The GCD includes only the roots with multiplicity \geq 2, and each such root appears with multiplicity reduced by one. So if f has a triple root at r, the GCD has a double root at r. If f has a double root, the GCD has a simple root.

To extract all repeated roots, divide f(x) by \gcd(f(x), f'(x)). The result is the square-free part of f — a polynomial with the same roots as f, but all with multiplicity 1.

Formal derivatives

In abstract algebra, the derivative of a polynomial is defined without any reference to limits. For f(x) = a_n x^n + a_{n-1} x^{n-1} + \cdots + a_1 x + a_0, the formal derivative is

f'(x) = n a_n x^{n-1} + (n-1) a_{n-1} x^{n-2} + \cdots + a_1

This is a purely algebraic operation — it works over any field, not just the real numbers. The product rule (fg)' = f'g + fg' holds for formal derivatives, and that is all you need for the repeated-root theory. The connection to tangent lines and rates of change is a consequence of this algebraic definition when you specialise to real-valued functions, not a prerequisite for it.

Multiplicity and Taylor expansion

If r is a root of multiplicity k, the Taylor expansion of f(x) around x = r starts at the k-th power:

f(x) = \frac{f^{(k)}(r)}{k!}(x - r)^k + \frac{f^{(k+1)}(r)}{(k+1)!}(x - r)^{k+1} + \cdots

The first k - 1 derivatives vanish, so the first k - 1 terms of the Taylor series are zero. The leading term is (x - r)^k times a nonzero constant. This is why the curve is "flat to order k" at the root — the local behaviour is dominated by (x - r)^k, which vanishes faster and faster as k increases.

Where this leads next

Repeated roots connect algebra and calculus in ways that deepen as you study both subjects.