Series reversion (source code)

= Series reversion
{wiki}

<Series reversion> constructs the <power series> for a local <inverse function>. If $f(g)=a_1g+a_2g^2+\cdots$ with $a_1\ne0$, substitute $g=b_1f+b_2f^2+\cdots$ into the original <power series> and compare coefficients. The linear coefficient determines $b_1$; each later coefficient enters linearly after the earlier ones are known. This also defines reversion of a <formal power series>, independently of convergence.

For example, $f=g+g^2$ gives
$$
g=f-f^2+2f^3+O(f^4).
$$
Substitution makes the coefficients of $f^2$ and $f^3$ cancel. The exact local inverse $g=(\sqrt{1+4f}-1)/2$ verifies the calculation. The general coefficients through cubic order are derived under <cubic series reversion>.

For an <analytic function> with nonzero derivative, the <inverse function theorem> supplies an analytic local inverse, so the reverted series converges sufficiently near the base point. If the linear coefficient vanishes, an ordinary inverse <power series> may fail: $f=g^2$ instead needs a choice of square-root branch and a fractional scale.