diff (cot (x*y),y)

diff(cot(x*y), y)

solve(cot(x*y), y)

series(cot(x*y), y, 0, 10)

Want a full Python shell? Use SymPy Live.