Mathwords logoMathwords

Polynomial Decomposition — Definition, Formula & Example

Polynomial decomposition is the process of rewriting a polynomial as one polynomial plugged into another, p(x) = f(g(x)). It breaks a polynomial into nested layers, not into multiplied factors.

Let p∈K[x]p \in K[x] have degree at least 2, where KK is a field. Then pp is decomposable if p=f∘gp = f \circ g for some f,g∈K[x]f, g \in K[x] with deg⁡f≥2\deg f \ge 2 and deg⁡g≥2\deg g \ge 2. Otherwise pp is indecomposable. Linear changes such as g↦ag+bg \mapsto ag + b give trivially different decompositions. To remove them, the inner polynomial is usually normalized to be monic with g(0)=0g(0) = 0.

Key Formula

p(x)=f(g(x)),deg⁡p=(deg⁡f)(deg⁡g)p(x) = f(g(x)), \qquad \deg p = (\deg f)(\deg g)
Where:
  • pp = The polynomial being decomposed
  • ff = The outer polynomial, applied last
  • gg = The inner polynomial, applied first to x

Worked Example

Problem: Decompose p(x)=x4−4x3+7x2−6x+1p(x) = x^4 - 4x^3 + 7x^2 - 6x + 1 as f(g(x))f(g(x)), where ff and gg are both quadratics.
Step 1: Degrees multiply under composition, so 4=2⋅24 = 2 \cdot 2. Normalize the inner quadratic to g(x)=x2+bxg(x) = x^2 + bx. Then g2g^2 supplies the top two terms of pp, and matching the x3x^3 coefficients fixes bb.
(x2+bx)2=x4+2bx3+b2x2  ⇒  2b=−4  ⇒  b=−2(x^2 + bx)^2 = x^4 + 2bx^3 + b^2x^2 \;\Rightarrow\; 2b = -4 \;\Rightarrow\; b = -2
Step 2: Subtract g(x)2=x4−4x3+4x2g(x)^2 = x^4 - 4x^3 + 4x^2 from pp. Then write what remains in terms of gg.
p(x)−g(x)2=3x2−6x+1=3(x2−2x)+1p(x) - g(x)^2 = 3x^2 - 6x + 1 = 3(x^2 - 2x) + 1
Step 3: Read off the outer polynomial with u=g(x)u = g(x). Then check at x=1x = 1: g(1)=−1g(1) = -1, f(−1)=1−3+1=−1f(-1) = 1 - 3 + 1 = -1, and p(1)=1−4+7−6+1=−1p(1) = 1 - 4 + 7 - 6 + 1 = -1.
f(u)=u2+3u+1f(u) = u^2 + 3u + 1
Answer: p(x)=f(g(x))p(x) = f(g(x)) with g(x)=x2−2xg(x) = x^2 - 2x and f(u)=u2+3u+1f(u) = u^2 + 3u + 1.

Why It Matters

Decomposition lets you solve some quartic equations with two quadratic steps. To solve p(x) = 0 above, you first solve f(u) = 0 for u, then solve x² − 2x = u. Computer algebra systems such as Mathematica (through its Decompose command) run this check to simplify equations and integrals.

Common Mistakes

Mistake: Treating decomposition as factoring, and so looking for f(x) · g(x) instead of f(g(x)).
Correction: Factoring splits a polynomial into a product, and the degrees add. Decomposition splits it into a composition, and the degrees multiply. A polynomial of prime degree, such as any cubic, can never be decomposed into two pieces of degree 2 or more. Many cubics still factor.

Related Terms