diff (x*sin (x)**2,x)

diff(x*sin(x)**2, x)

solve(x*sin(x)**2, x)

series(x*sin(x)**2, x, 0, 10)

Experiment with SymPy at SymPy Live.