hello,
i was doing a past paper and this question appeared and i like lowkey know what to do but was slightly confused so i went to the solutions and their solutions they gave even confused my poor brain more. could you please help me out. it is question dii)
thank you 
We know that

Now, we want to find

Note that the integral is ALMOST the same as the result of part i) (which is obviously not accident!). In fact, if we rearrange the above, we find that

If we then integrate both sides, we would get to the answer required. ie.

Note that the second term is literally the integral of a differential. ie. first, differentiate xtan(x), then integrate it. Obviously, you'll just get xtan(x) again, but with some constant C added to it. We can also perform the first integral, as it is just the negative natural logarithm relation.
+x\tan x+C)
As required! Does that make sense?