# 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?

Related Introductory Physics Homework Help News on Phys.org
dextercioby
$$y_{p}(t)=C(x) \sin x$$
{"ft_lang_label":"__label__en","ft_lang_prob":0.85499823,"math_prob":0.9970562,"size":2340,"snap":"2020-45-2020-50","text_gpt3_token_len":843,"char_repetition_ratio":0.11558219,"word_repetition_ratio":0.9287599,"special_character_ratio":0.35042736,"punctuation_ratio":0.06521739,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9999137,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-27T04:10:29Z\",\"WARC-Record-ID\":\"<urn:uuid:731b3555-49f7-48e4-bd09-65d1ed25ac3b>\",\"Content-Length\":\"65437\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:39774c6b-d569-4bf0-9711-204c11e315a3>\",\"WARC-Concurrent-To\":\"<urn:uuid:6708a997-8e8c-48d9-9f01-7d328f6df239>\",\"WARC-IP-Address\":\"23.111.143.85\",\"WARC-Target-URI\":\"https://www.physicsforums.com/threads/second-order-ode-problems.76505/\",\"WARC-Payload-Digest\":\"sha1:DG73JAOXVCKG3B6IA6X2TJAHSRXLSKKT\",\"WARC-Block-Digest\":\"sha1:KYUG7Y4SE77NUL635BMTBB2AVM57XBZA\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107893011.54_warc_CC-MAIN-20201027023251-20201027053251-00601.warc.gz\"}"}