tan (1+x)

solve(tan(x + 1), x)

diff(tan(x + 1), x)

series(tan(x + 1), x, 0, 10)

Want a full Python shell? Use SymPy Live.