let I = e^x cos2x
u=e^x => u' = e^x
v' = cos2x => v = 1/2 sin2x
I = 1/2 e^x sin2x - 1/2 INT e^x sin2x
p=e^x => p'=e^x
q'=sin2x => q= -1/2 cos2x
I = 1/2 e^x sin2x - 1/2 [-1/2 e^x cos2x + 1/2 INT e^x cos2x]
= 1/2 e^x sin2x + 1/4 e^x cos 2x -1/4 I
=> 5/4 I = 1/2 e^x sin2x + 1/4 e^x cos 2x
Blah, blah, blah. Dunno if that's right. But the main thing is:
By parts twice to get I = f(x) + aI where a is some fraction