Problem:
Find the third order expansion about $x = 0$ of the composition $f(g(x))$ for $f(x) = \sin ^{-1}\left(x^2\right)$ and $g(x) = $\sqrt{x}$
from sympy import *
from sympy.abc import x

f = asin(x**2)
g = sqrt(x)
series = f.subs(x, g).series(x, 0, 3)
print(series)
