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)

Want a full Python shell? Use SymPy Live.