tan (1+x)
solve(tan(x + 1), x)
diff(tan(x + 1), x)
series(tan(x + 1), x, 0, 10)
Experiment with SymPy at SymPy Live.