$y'' -4y' = -4te^{2t}, y(0)=0, y'(0)=1$ If you take laplace Transform of all terms, isolate L(y), I got $$L(y) = \frac{1}{(p-2)^2} + \frac{-2}{(p-2)^2 -4}$$
Then, taking inverse Laplace, you get $$y(t) = te^{2t} - e^{2t}sinh(2t)$$
But the solution is just $te^{2t}$. WHat am I doing wrong
What are the initial conditions? What is the given solution?
Your $-e^{2t}\sinh(2t)$ is a solution to the homogeneous equation $y''-4y'=0$, and can also be written as $\frac12e^{4t}-\frac12$. The homogeneous equation has solutions $ae^{4t}+b$ for constants $a$ and $b$. If there are no initial conditions given, we take all of them, while if there are specific initial conditions we'll need specific values - which can be found by applying appropriate care in the Laplace transform equation.
Given initial conditions $y(0)=c_0$, $y'(0)=c_1$, the Laplace transform equation becomes $$(p^2L(p) - pc_0 - c_1) - 4(pL(p) - c_0) = \frac{-4}{(p-2)^2}$$ Solve that for $L(p)$, and you'll have the exact solution with initial conditions. If your form has hyperbolic functions $\cosh$ or $\sinh$ in it, remember that those can be converted into exponentials.