Polynomial composition calculator

Compute f(g(x)) by substituting one polynomial into another.

Enter values

Start with the example below, or enter your own values.

How it works

Use polynomial Horner recurrence, replacing the scalar variable by the second polynomial. Expanded degree is bounded by 24.

Try an example

Outer polynomial f(x): x^2+1; Inner polynomial g(x): 2x-1. The form starts with these values; change them to explore your own case.

Example result: 4*x^2 - 4*x + 2

  1. Substitute g(x) for each occurrence of x in f(x).
  2. Evaluate the composition with polynomial Horner recurrence.

Learn more in Symbolic algebra: brackets, identities and polynomial division.

Results are calculated locally. Floating-point tools provide numerical approximations, not formal proof certificates.