Solve the equation \begin{equation} y''-2y'+y=t^3\\ y(0)=1\\ y'(0)=0 \end{equation} Solved the homogeneous equation $y''-2y +y=0$, which gives the general solution $y_0(t)=Ae^t+Bte^t\\$ Then, the solution supposedly involves a $y_p$ such that \begin{equation}y(t)=y_p+Ae^t+Bte^t\end{equation} I thought the solution could be on the form $at^3+bt^2+ct+d$ since this is of the same order, but plugging it into the equation just gives me gibberish back. Am I at least on the right track? Thank you for your feedback :)
edit: All right so I went all the way through with the polynomial of degree 3: Assuming that \begin{equation} y_p=at^3+bt^2+ct+d \end{equation} I plug it into the equation and get \begin{equation} (6at+2b)-2(3at^2+2bt+c)+at^3+bt^2+ct+d=t^3 \end{equation} Rearranging, I get \begin{equation} at^3+(b-6a)t^2+(6a-4b+c)t+(2b-2c+d)=t^3 \end{equation} which implies that $a=1$, $b=6$, $c=18$, $d=24$ (assuming I did the calculations correctly) Plugging back in, I get \begin{equation}y(t)=t^3+6t^2+18t+24+Ae^t+Bte^t\end{equation} Remembering our initial conditions, we get $A=-23$ and $B=5$ if I'm not mistaken. Then, the solution sounds: \begin{equation} y(t)=\underline{t^3+6t^2+18t+24-23e^t+5te^t} \end{equation} Did I do this correctly? Again, thank you for your wonderful responses :) edit 2: fixed bad algebra