integrate (tan (x))

integrate(tan(x), x)

plot(-log(cos(x)))

solve(-log(cos(x)), x)

diff(-log(cos(x)), x)

series(-log(cos(x)), x, 0, 10)

Experiment with SymPy at SymPy Live.