Advanced maths

Polynomial composition inverse series calculator to specified order

Formal series reversion finds the coefficients of a compositional inverse near the zero constant term.

Your numbers

Degree ≤20. Constant coefficient must be zero and linear coefficient nonzero.
Integer 1–20. Terms above x^N are discarded.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Formal series reversion finds the coefficients of a compositional inverse near the zero constant term. It is different from taking a reciprocal series or solving a global inverse-function branch. This calculator builds the inverse coefficients exactly, truncates products at the requested order and verifies both composition identities. The output is a finite polynomial representative of an inverse formal series.

THE FORMULAf(g(x))=x mod x^(N+1), g(f(x))=x mod x^(N+1), with f(0)=0 and f′(0)≠0.

A worked example

For f(x)=x+x², the inverse through order five is g(x)=x−x²+2x³−5x⁴+14x⁵. Composing f with this polynomial cancels the coefficients of x² through x⁵, leaving x modulo x⁶. The opposite composition g(f(x)) has the same truncated identity. The numbers one, minus one, two, minus five and fourteen are exact coefficients, not fitted decimal samples.

Good to know

Rational polynomial input degree at most twenty with f(0)=0 and nonzero linear coefficient. Truncation order is one through twenty. Intermediate exact-fraction limits apply. The returned formal identity does not certify a convergence radius, a numerical approximation error or a global one-to-one inverse. Nonzero constant terms and zero derivatives at the origin require different expansions and are rejected.

Composition inverse and reciprocal are different operations

A reciprocal h satisfies f(x)h(x)=1, while a compositional inverse g satisfies f(g(x))=x. For a polynomial with zero constant term, an ordinary power-series reciprocal does not exist, but a compositional inverse can exist when the linear coefficient is nonzero. Confusing the two operations changes both the existence condition and the expected coefficients.

The first inverse coefficient is one divided by the linear coefficient of f. Once the lower inverse coefficients are fixed, the coefficient of x^n in f(g(x)) depends linearly on the new unknown g_n, with that same nonzero multiplier. Solving one exact equation at each order therefore determines the coefficients uniquely.

The inverse-series coefficients cancel every higher term through degree five1x^1-1x^22x^3-5x^414x^5Coefficients of g + g²: 1,0,0,0,0f(g(x)) = x mod x⁶
For f=x+x², g=x−x²+2x³−5x⁴+14x⁵. The displayed coefficients of g+g² through degree five are 1,0,0,0,0, certifying f(g)=x modulo x⁶. This is coefficient cancellation, not a global numerical error plot.

The Inverse function calculator for supported families seeks an inverse function, while this page derives a truncated formal compositional inverse coefficient by coefficient.

A truncation identity is not a global error guarantee

The notation modulo x^(N+1) means all coefficients through degree N agree. It says nothing by itself about evaluating the truncated series far from zero. Even when an analytic inverse exists locally, singularities or branch points can limit convergence before a user’s chosen numeric value is reached.

For x+x², the branch fixing zero can be written using a square root, and its series has a finite radius of convergence. This page does not search for that radius or choose a global branch automatically. It reports a coefficient-level certificate, leaving numerical approximation bounds to a separate analysis.

Keep both coefficient order and precision explicit

Input coefficients descend from the highest power and include zeros down to the constant term. Entering 1,1,0 means x²+x, not 1+x. The output table reverses the presentation intentionally: it labels each ascending power next to its coefficient, making it easy to use in another formal-series calculation without guessing an index convention.

Truncated multiplication discards terms above the requested precision at every stage. Those discarded terms cannot affect lower coefficients, so the procedure preserves the exact formal result. The final code independently composes in both directions and requires the truncated remainder to vanish coefficient by coefficient, rather than testing a few approximate numeric x values.

A few questions, answered

Why must f′(0) be nonzero?

That coefficient multiplies every new inverse coefficient during the recursion. If it vanishes, an ordinary inverse power series with this contract is not determined by the same procedure.

Does the result work for any x?

No. It is an exact truncated formal identity. Numerical convergence and an error bound at a chosen x are not calculated here.

Find your calculator

Start typing to explore the library.