4
$\begingroup$

I am trying to solve the following question in my homework:

Use the method of undetermined coefficients to solve the following differential equation: $$y'' + y = -\sin(x), \ y(0) = 0, \ y'(0) = 0.$$

I feel that I have a fairly good grasp of the concepts, that I need to find a general solution of the homogeneous equation and then a particular solution. Then I need to solve for the constants $c_1$ and $c_2$ by plugging in the initial conditions. However, my answer is not being accepted by the computer program my teachers use. Here is my answer: $$ y = -0.5\sin(x) + 0.5x\cos(x). $$ I have checked this answer several times by finding its first and second derivatives, plugging both into the original DE, and also plugging in the initial conditions. I am wondering if there is a typo, since my teachers create our homework online. Is anyone getting the same answer? I want to know if I need to approach my teachers and tell them that there is a possible typo in the homework. Thank you!

$\endgroup$
  • $\begingroup$ Thank you for the consensus. I gave your variant a try, but it did not take it. I will get in touch with my profs at this point. $\endgroup$ – Catherine Porter Oct 11 '14 at 0:00
  • $\begingroup$ I actually copied and pasted it, but I double checked. It's the same. $\endgroup$ – Catherine Porter Oct 11 '14 at 0:37
  • $\begingroup$ I tried the question and get the same answer as yours! Discuss with your teacher to see if there is any typos!:) $\endgroup$ – Nighty Oct 12 '14 at 13:32
  • $\begingroup$ Your answer is correct. $\endgroup$ – JohnD Oct 14 '14 at 3:26
  • $\begingroup$ I have discussed this with my professors. They have made a correction to the online homework, and all is fixed. Thanks! $\endgroup$ – Catherine Porter Oct 14 '14 at 16:13
1
$\begingroup$

I don't have time for a general solution I feel sick but here you go. It should put your mind at ease.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.