Problem:
Find the first order expansion about $x = -1$ of the composition $f(g(x))$ for $f(x) = \cos (x)$ and $g(x) = $\sqrt[3]{x^3}$
from sympy import *
from sympy.abc import x

f = cos(x)
g = cbrt(x**3)
series = f.subs(x, g).series(x, -1, 1)
print(series)
