1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Second Order Non Homogeneous DE

  1. Nov 23, 2011 #1
    1. The problem statement, all variables and given/known data

    Find the solution to :y''+2y'+y=t

    2. Relevant equations

    Suppose y(t)=B1t2+B2t+B3

    And I believe, Y(t)=Yh+Yp. That is the solution is equal to the solution to the homogenous equation, plus the particular solution.

    3. The attempt at a solution
    First Solve the homogeneous equation:

    Substitute this back into the homogenous problem(y''+2y'+y=0) gives:



    B1(t2+4t+2) +B2(t+2)+B3=0

    Solution is t=-2 or B1,B2,B3=0

    Now I'm unsure of what to do?

    As for the particular solution say Yp:

    Yp=ct, where c is a constant so,

    Substitute this into :y''+2y'+y=t


    Thanks for any help.
  2. jcsd
  3. Nov 23, 2011 #2
    You should try using the annihilator method.

    I got Yp=At+B
    Yp"=0 (A and B are constants)

    plugging them back into the ODE :

    2[A] + [At+B] = t


    (2A+B)[1] + A[t] = t




    getting A=1 and B= -2

    so then Yp= t-2

    add it to Yh and you should get Y(t)
  4. Nov 23, 2011 #3
    oh, and to find Yh just set the ODE = 0 and find the roots
  5. Nov 23, 2011 #4


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    That is not the correct thing to try for the homogeneous solution. Try [itex]y = e^{rt}[/itex].
  6. Nov 23, 2011 #5


    User Avatar
    Science Advisor

    No, that is NOT how you solve for Yh.

    That's because [itex]B1x^2+ B2x+ B3[/itex] is NOT a solution to the homogeneous equation. Use [itex]y= e^rt[/itex], as LCKurtz suggested, to get the "characteristic equation" to solve for r.

    You cannot just let yp= ct. If the right hand side is a power of t, yp can be a polynomial nof degree at most that power- try yp= ct+ d.
  7. Nov 24, 2011 #6
    Actually the annihilator method is correct. In fact I checked with my professor on this. The annihilator method takes out the factor of "guessing" a solution for the particular solution.

    I even had my professor solve this and she got the same answer as I did, especially since we just went over this section in class.

    Annihilator method is actually quite simple for this problem.
  8. Nov 24, 2011 #7
    As for Yh, what I mean by set the ODE to 0 is:

    Let y''=r^2, y'=r, y=constant

    ending up with:

    Factoring, you should end up with

    where r=-1,-1

    Since this is a repeated root you should use:
    Yh= c1*e^(rt) + c2*t*e^(rt)

    Once you have Yh, then find Yp (particular solution) and add it to Yh for your general solution Y.

    Just remember, since you DON'T have initial conditions

    (for example: y'(0)=0, y(0)=1)

    Your general solution is going to have constants c1 and c2 since there are no initial conditions given
  9. Dec 11, 2011 #8
    Sorry for the late reply, yes I made a bad mistake with respect to the characteristic equation . I got it now though thanks!

    Edit: I misunderstood the "hint" on the assignment. Every second order DE of this form, will have that solution given a single root.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook