What is the Laplace transform of $\sin^2(t)$?
My question is use $L(f^{'}(t))=sF(s)-f(0)$ to show that $L(\sin^{2}(t))=2/(s^2+4)$.
My approach was to integrate $\sin^2(t)$ to find $f(t)$, then use this to find $F(s)$ and $f(0)$.
However, using that method, I find that the Laplace transform of $\sin^2(t)$ is $(s/2-1/2(s/(s^2+4))$, not $2/(s^2+4)$.
This is also the answer I get using an online Laplace calculator.
So where am I going wrong, or is the question wrong?
We have that $$\cos(2x)=\cos^2(x)-\sin^2(x)=1-2\sin^2(x) \quad\Rightarrow \quad\sin^2(x)=\frac{1 - \cos (2x)}{2}.$$ Hence $$f(t):=\int_0^t\sin^2(x) dx=\int_0^t \frac{1 - \cos (2x)}{2} \ dx =\frac{t}{2}-\frac{\sin(2t)}{4},$$ and $$F(s)=\frac{1}{2s^2}−\frac{2}{4(s^2+4)}.$$ Therefore $$L(\sin^2(t))=L(f^{'}(t))=sF(s)-f(0)=\frac{1}{2s}−\frac{s}{2(s^2+4)}-0=\frac{2}{s(s^2+4)}.$$ Check the final result here.
P.S. There is an easier way to obtain the Laplace Transform of $\sin^{2}(t)$: transform directly the identity $\sin^2 (t) =\frac{1 - \cos (2t)}{2}$.