I am trying to use the contour integration formula for the inverse Laplace transform, find the inverse transform of $\dfrac{s}{s^2 + a^2}$.
My textbook says that the solution is $\cos(at)$, but it doesn't show any intermediate steps, and it isn't clear to me how this is done.
Do we somehow use Cauchy's residue theorem?
If $f(z)$ is analytic in a domain $D$ then for every closed path $C$ in $D$,
$$\oint_C f(z) \ dz = 0$$
Can someone please show and explain how this is done so that I can understand it and do it myself for future problems? Thank you.

We go by the definition here: $$f(t) = \frac{1}{2 \pi i} \oint_{C}^{}F(s)e^{st}ds = \frac{1}{2\pi i} 2\pi i \sum{}ResF(s)e^{st}$$ We can see that we have poles in $s=ia$ and $s = -ia$ and these are complex conjugetes and therefore we have that the sum of these residues is: $$Res_{s=ia} F(s)e^{st} + Res_{s=-ia} F(s)e^{st} = 2Re(Res_{s=ia} F(s)e^{st})$$ So we have: $$Res_{s=ia} = \lim_{s\rightarrow ia} \frac{(s-ia)se^{st}}{(s-ia)(s+ia)} = \frac{e^{iat}}{2} = \frac{1}{2} (cos(at) + i sin(at))$$ therefore: $$f(t) = 2 * \frac{1}{2} Re(cos(at) + i sint(at))$$ $$f(t) = cos(at)$$