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)

Need more control? Try SymPy Live.