Results 1 to 4 of 4

Math Help - Can't get this Differential Eq

  1. #1
    Newbie
    Joined
    Sep 2006
    From
    Reading, MA
    Posts
    5

    Unhappy Can't get this Differential Eq

    Find a particular solution for y"+y=sinx+xcosx

    I used an initial guess of

    yp(x)= Asinx+Bcosx+Cxcosx+Dxsinx

    y'p(x)= Acosx-Bsinx-Cxsinx+Ccosx+Dxcosx+Dsinx

    y"p(x)= -Asinx-Bcosx-Cxcosx-Csinx-Csinx-Dxsinx+Dcosx+Dcosx

    I end up with the following system of equations to solve my coefficients

    -A+A-C-C (sinx)=1(sinx)

    -B+D+D+B(cosx)=0(cosx)

    -C+C=1 (xcosx) How can this be??? 0=1??

    -D+D=0 (xsinx)

    Here's where I hit my snag. The answer has an x^2 power in it too. I'm stumped!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member

    Joined
    May 2006
    From
    Lexington, MA (USA)
    Posts
    11,713
    Thanks
    633
    Hello, doke!

    Find a particular solution for: .  y'' + y\:=\:\sin x + x\cos x

    We already know that: y \:=\:C_1\cos x + C_2\sin x is a homogenous solution.


    Due to the y'', we must begin "two level higher".

    We will try:
    . . y \:=\:Ax\sin x + Bx\cos x + Cx^2\sin x + Dx^2\cos x

    Then:
    . . y'\:=\:A\sin x + B\cos x + (C-2B)\sin x + (A + 2D)x\cos x - Dx^2\sin x + Cx^2\cos x

    And:
    . . y'' \:=\:2(C - B)\sin x + 2(A + D)\cos x - (A + 4D)\sin x \,+  (4C - B)x\cos x - Cx^2\sin x + Dx^2\cos x


    Hence:
    . . y'' + y \;=\;2(C - B)\sin x + 2(A + D)\cos x - 4Dx\sin x + 4Cx\cos x =\;\sin x + x\cos x

    Then: . \begin{Bmatrix}2(C - B) = 1 \\2(A + D) = 0\\ -4D = 0 \\ 4C = 1\end{Bmatrix}

    Solve the system and get: . A = 0,\;\;B = \text{-}\frac{1}{4},\;\;C = \frac{1}{4},\;\;D = 0

    Therefore, the particular solution is: . \boxed{y_p \:=\:-\frac{1}{4}x\cos x + \frac{1}{4}x^2\sin x}

    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Sep 2006
    From
    Reading, MA
    Posts
    5
    Wow! Thank you very much. I do have a question though... as a matter of general procedure, I suppose I could have used Asinx + Bcosx +Cxsinx +Dxcosx + Ex^2sinx + Fx^2cosx correct? I guess the extra terms will probably drop out but it seems more "consistent" to me.

    I've done other problems such as y" -4y = sinhx and didn't start "two levels higher". Why did those work out okay and this one didn't?

    Thank you in advance.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Global Moderator

    Joined
    Nov 2005
    From
    New York City
    Posts
    10,616
    Thanks
    9
    Quote Originally Posted by doke View Post
    I've done other problems such as y" -4y = sinhx and didn't start "two levels higher". Why did those work out okay and this one didn't?
    The equation is,
    y''-4y=\frac{1}{2}e^x-\frac{1}{2}e^{-x}
    The charachteristic equation is,
    k^2-4=0
    The solutions are,
    k=\pm 2
    Thus, the two linearly independant solutions are,
    e^{2x} \mbox{ and }e^{-2x}
    That means when you search for a particular solution to the non-homogenous equation you look for,
    Ae^{x}+Be^{-x}
    Since, e^x,e^{-x} are not part of the two linearlt independant solutions.
    However you had, \sinh (2x) then you need to "raise one level" because, e^{2x}, e^{-2x} are the independant solutions.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 4
    Last Post: May 8th 2011, 12:27 PM
  2. 'Differential' in differential equations
    Posted in the Differential Equations Forum
    Replies: 0
    Last Post: October 5th 2010, 10:20 AM
  3. Double differential / differential squared
    Posted in the Calculus Forum
    Replies: 3
    Last Post: February 3rd 2010, 03:51 PM
  4. help me with differential
    Posted in the Calculus Forum
    Replies: 1
    Last Post: October 17th 2009, 09:36 PM
  5. Replies: 2
    Last Post: May 18th 2009, 03:49 AM

Search Tags


/mathhelpforum @mathhelpforum