Problem:
Find the first order expansion about $x = -4$ of the composition $f(g(x))$ for $f(x) = x$ and $g(x) = $\sin \left(x^3\right)$
from sympy import *
from sympy.abc import x

f = x
g = sin(x**3)
series = f.subs(x, g).series(x, -4, 1)
print(series)
