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

f = atan(x**3)
g = cbrt(x)
series = f.subs(x, g).series(x, 2, 1)
print(series)
