Answer
See below
Work Step by Step
Since the given function is periodic on $[0,∞)$ with period $T=\pi$, we have
$L(f)=\frac{1}{1-e^{-\pi s}}\int ^\pi_0e^{-st}f(t)dt=\frac{1}{1-e^{-\pi s}}\int ^\pi_0 \cos t e^{-st} dt$
Using the standard integral
$\int e^{at}\sin bt dt=\frac{1}{a^2+b^2}e^{at}(a\sin bt-b\cos bt)+c$
it follows that
$L(f)=\frac{1}{1-e^{-\pi s}}\int ^\pi_0\cos t e^{-st} dt\\
=\frac{1}{1-e^{-\pi s}}[\frac{e^{-s}(\cos t (-s)+\sin t)}{s^2+1}]\\
=\frac{1}{1-e^{-\pi s}}[\frac{s+se^{-\pi s}}{s^2+1}]$