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

f = sin(x**3)
g = tan(x)
series = f.subs(x, g).series(x, 5, 1)
print(series)
