I'm stuck half-way through a question where I need to find the integral (with respect to x) of: tan(x/2).(cosec x + cot x)^2 I've tried every method of integration that I know and I can't get it. Is it actually possible to integrate the expression? If it's any help, this problem is part of the further maths A-level and the original problem was: Find the general solution of the differential equation dy/dx - 2y.cosec x = tan(x/2), 0<x<pi I got to the integral I'm stuck on by using an integrating factor of (cosec x + cot x)^2, so that the LHS became the derivative of y(cosec x + cot x)^2 (and therefore y(cosec x + cot x)^2 = integral[tan(x/2).(cosec x + cot x)^2]dx ). P.S. Sorry if the above isn't very clear, since I don't know how to get mathematical symbols on these boards.