Find the Laplace transform of $t^2e^{at}cos(bt)$
My attempt:
$\large\mathit{L}\{t^2e^{at}\cos(bt)\}$
= $\large\mathit{L}\{\frac12t^2e^{at}(e^{ibt}+e^{-ibt})\}$
...
...
$=\large\dfrac{1}{(s-a-ib)^3} + \dfrac{1}{(s - a +ib)^3}$
Where $i^2 = -1$
My current answer right now was from using the Laplace table
How can I get rid of $i$?
Method 1: Using A Laplace Transform Table
Use Table item $20$:
$$\tag 1 \mathscr{L}(e^{a t} \cos (b t)) = \dfrac{s-a}{(s-a)^2 + b^2}$$
Use Table item $30$ for $\mathscr{L}(t^2e^{at}\cos(bt))$:
$$\mathscr{L}(t^n f(t)) = (-1)^n F^{(n)}(s)$$
In other words, take the second derivative of the $(1)$, yielding:
$$\dfrac{d^2}{ds^2}\left(\dfrac{s-a}{(s-a)^2 + b^2}\right) = -\dfrac{2 (a-s) \left(a^2-2 a s-3 b^2+s^2\right)}{\left(a^2-2 a s+b^2+s^2\right)^3}$$
Method 2: use the definition of the Laplace Transform:
$$F(s) = \displaystyle \int_0^\infty~ f(t) e^{- s t}~dt = \int_0^\infty t^2~e^{a t}\cos(b t)e^{- s t}~dt$$
This yields the same result as above:
$$\mathscr{L}(t^2e^{at}\cos(bt)) = -\dfrac{2 (a-s) \left(a^2-2 a s-3 b^2+s^2\right)}{\left(a^2-2 a s+b^2+s^2\right)^3}$$