diff (cot (x*y),y)

diff(cot(x*y), y)

solve(cot(x*y), y)

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

Want to compute something more complicated? Try a full Python/SymPy console at SymPy Live.