The integral I need to solve is
$$ \int e^{\kappa t}\cos \omega t\, dt $$
The answer is
$$ \frac{e^{\kappa t}}{\kappa^2 + \omega^2}(\kappa \cos wt + \omega \sin \omega t) + c $$
But how do I do it? The hint is that we use integration by parts, but I'm going around in circles with it.
Ok so here's my issue. When integrating by parts, I presume the point is that one of the terms diminishes, yet neither the $e^{\kappa t}$ term nor the $\cos \omega t$ term is going to do that. Or rather, say $u=e^{\kappa t}$ and $dv = cos \omega t dt$ then $du = \kappa u$ and $v = \frac{1}{\omega} sin\omega t$ so we have
$$ \int u\, dv = uv - \int v\,du\\ = \frac{e^{\kappa t} }{\omega} \sin{\omega t} - \frac{\kappa}{\omega}\int e^{\kappa t} \sin \omega t\,dt $$
which is no less ugly than it began. On the other hand, say $u=\cos \omega t$ and $dv = e^{\kappa t}\,dt$ then $du = -\omega \sin \omega t\,dt$ and $v = \frac{1}{\kappa} e^{\kappa t}$. So we get
$$ \int u \,dv = uv - \int v\,du\\ = \frac{1}{\kappa}e^{\kappa t}\cos \omega t+\frac{\omega}{\kappa}\int e^{\kappa t} \,sin \omega t\, dt $$
So either way I now need to solve $\int e^{\kappa t} \sin \omega t\, dt$. Applying the same process to this new problem, I wind up again needing to solve the original $\int e^{\kappa t}\,cos \omega t\, dt$.