# Second-order ODE problems

There are a couple of problems on this week's homework assignment that are giving me trouble.

(1) Find a particular solution for $y'' + y = t^2$ by using the method of undetermined coefficients

Here I don't know which coefficient expression to use, for example if the term on the right side was e^t, I could sub y = Ae^t so that all 'e^t's would cancel out and I would be left with an expression for A.

(2) Solve the IVP: $y'' - 4y' +2y = e^{2t}$, homogenous initial conditions at t=0.

What I did was what I normally do for any first-order ODE. I separated the problem out into homogenous and particular parts.
$$y_h: y''-4y'+2y=0$$
$$s^2-4s+2=0\rightarrow s=2\pm\sqrt{2}$$ where s is a characteristic root. Therefore $y_h=c_1 e^{(2+\sqrt{2})t}+c_2 e^{(2-\sqrt{2})t}$
For the particular part I used undetermined coefficients and subbed y=Ae^2t and got an expression for A: 4A - 8A + 2A = 1, so A = -1/2, and $y_p = -\frac{1}{2}e^{2t}$
What I am confused about is what comes next.
Is the solution then just $y = y_p + y_h = c_1 e^{(2+\sqrt{2})t}+c_2 e^{(2-\sqrt{2})t} -\frac{1}{2}e^{2t}$ ? And how do I account for the initial conditions?

## Answers and Replies

Related Introductory Physics Homework Help News on Phys.org
dextercioby
$$y_{p}(t)=C(x) \sin x$$