As stated the title, I get to a point which I can't do anything, and I'm sure I've made a mistake some where, here is my full working out:
$$ \int e^{ix}\cos(x)dx \\ u = e^{ix} \text{ | } u'= ie^{ie} \\ v = \sin(x) \text{ | } v'=\cos(x) \\ e^{ix}\sin(x)-\int ie^{ix}\sin(x)dx + C \\ e^{ix}\sin(x)-i\int e^{ix}\sin(x)dx + C \\ u = e^{ix} \text{ | } u'= ie^{ie} \\ v = -\cos(x) \text{ | } v'=\sin(x) \\ e^{ix}\sin(x)-i(-e^{ix} \cos(x) + i \int e^{ix}cos(x)dx) + C \\ Let \int e^{ix}\cos(x)dx = I \\ I = e^{ix}(\sin(x) + i\cos(x)) - i^2I + C $$
But ($i^2 = -1$) so the equation should become: $$ I = e^{ix}(\sin(x) + i\cos(x)) + I + C $$ And this is where I'm stuck, I can't simply take $I$ away from both sides, that would make $$e^{ix}(\sin(x) + i\cos(x)) = 0$$ What have a messed up in the process? And just to make it clear someone in a previous question didn't under understand what $v'$ was, it's the same as $\frac{dv}{dx}$, thank you in advance.