I'm trying to solve this function using the Laplace Transform theorem.
$f(t) = \cos2(t-\frac{1}{8}\pi)$
Sure I could just use the table, which would give me the answer right away, but pretend that I do not have that kind of luxury, I'd like to know how to approach these types of functions, more specifically, $f(t)=\cos(at+b)$ or $f(t)=\sin(at+b)$.
Thank you in advance.
$$f(t)=\sin(at+b)$$
$$\mathcal{L}(f) = \int_0 ^\infty e^{-st} f(t) \ dt=\int_0 ^\infty e^{-st} \sin(at+b) dt$$
You can solve $$I=\int e^{-st} \sin(at+b) \ dt$$ ...by using integration by parts:
$$u=e^{-st},\space du=-se^{-st},\space dv=\sin(at+b), \space v=-{\cos(at+b) \over a}$$
$$I=-{e^{-st}\cos(at+b) \over a}-\frac sa\int e^{-st} \cos(at+b)\ dt$$
Again:
$$u=e^{-st},\space du=-se^{-st},\space dv=\cos(at+b), \space v={\sin(at+b) \over a}$$
$$I=-{e^{-st}\cos(at+b) \over a}-\frac sa\left( {e^{-st}\sin(at+b) \over a} +\frac sa \int e^{-st} \sin(at+b) dt \right)$$
$$I=-{e^{-st}\cos(at+b) \over a}-\frac sa\left( {e^{-st}\sin(at+b) \over a} +\frac sa I \right)$$
$$(1+{s^2\over a^2}) \ I=-{ae^{-st}\cos(at+b) +se^{-st}\sin(at+b)\over a^2}$$
$$I=-{ae^{-st}\cos(at+b) +se^{-st}\sin(at+b)\over s^2 + a^2}$$
Finally:
$$\mathcal{L}(f)=I\ |_0^\infty=I(\infty)-I(0)={a\cos b +s\sin b\over s^2 + a^2}$$
In your case:
$$f(t) = \cos(2t-\frac{\pi}{4})=\sin(\frac\pi2 - 2t+\frac{\pi}{4})=\sin(-2t+\frac{3\pi}{4})\implies a=-2, \ b=\frac{3\pi}{4}$$
$$\mathcal{L}(f)={-2\cos \frac{3\pi}{4} +s\sin \frac{3\pi}{4}\over s^2 + 4}=\frac{\sqrt{2}+s\frac{\sqrt{2}}{2}}{s^2 + 4}={\sqrt{2}\over2}\frac{s+2}{s^2+4}$$
you can check the final result on WolframAlpha: https://www.wolframalpha.com/input/?i=laplace+transform+cos(2t-pi%2F4)