Results 1 to 10 of 10

Math Help - 2nd order DE inhomogeneous help!

  1. #1
    Newbie
    Joined
    May 2008
    Posts
    8

    2nd order DE inhomogeneous help!

    hi, i am havin alot of trouble gettin the general solution to the ODE:

    y'' - 7y' + 6y = 2(e^(3x)) + x(e^x)

    i tried using the function for the particular solution as : C(e^3x) + (Ax+B)e^x but it doesnt work, like some of the constants cancel out and i cant get a proper solution!

    how would i go about doin this question?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Flow Master
    mr fantastic's Avatar
    Joined
    Dec 2007
    From
    Zeitgeist
    Posts
    16,948
    Thanks
    5
    Quote Originally Posted by fuzzylogic25 View Post
    hi, i am havin alot of trouble gettin the general solution to the ODE:

    y'' - 7y' + 6y = 2(e^(3x)) + x(e^x)

    i tried using the function for the particular solution as : C(e^3x) + (Ax+B)e^x but it doesnt work, like some of the constants cancel out and i cant get a proper solution!

    how would i go about doin this question?
    It should work. Eg. C = -1/3. Post your working.

    Note: The same DE was posted by a different member at this thread: http://www.mathhelpforum.com/math-he...equations.html
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    May 2008
    Posts
    8
    yes i got c = -1/3 and also got A = -t/5 but i cant get a value for B.

    i ended up with -5Ae^t = te^t

    i had another expression (At+B)e^t but they all canceled out.

    so now i have for y = (At+B)e^t = ((-t^2)/5 + B)e^t

    what happens to the B? does it jus equal zero or something? im not sure?
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Flow Master
    mr fantastic's Avatar
    Joined
    Dec 2007
    From
    Zeitgeist
    Posts
    16,948
    Thanks
    5
    Quote Originally Posted by fuzzylogic25 View Post
    yes i got c = -1/3 and also got A = -t/5
    [snip]
    Do you mean A = -1/5?

    Quote Originally Posted by fuzzylogic25 View Post
    [snip] but i cant get a value for B.

    i ended up with -5Ae^t = te^t

    i had another expression (At+B)e^t but they all canceled out.

    so now i have for y = (At+B)e^t = ((-t^2)/5 + B)e^t

    what happens to the B? does it jus equal zero or something? im not sure?
    Please don't just say what you did and what you ended up with. Show all your working (set out clearly and logically so that it's easy to follow).
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie
    Joined
    May 2008
    Posts
    8
    ok sorry. i did mean A = -t/5 sorry i ended up using t's instead of x's coz of that post u linked me to.

    well for y'' - 7y' + 6y = t(e^t) (i have taken out 2(e^(3t)) since i have no problem with that) - now im jus goin with t's

    what i did was set y = (Ax+B)e^t
    and then y' = (Ax+B)e^t + Ae^t
    and then y'' = (Ax+B)e^t + 2Ae^t

    so we have for y'' -7y' +6y :
    (Ax+B)e^t + 2Ae^t - 7[(Ax+B)e^t + Ae^t] + 6[(Ax+B)e^t]

    which when expanded is:
    (Ax+B)e^t + 2Ae^t - 7(Ax+B)e^t - 7Ae^t + 6(Ax+B)e^t
    which simplifies to:
    -5Ae^t

    so i equated the term to t(e^t) to get:
    -5Ae^t = te^t
    -5A = t
    A = -t/5

    and now i put that into y = (At+B)e^t = ((-t^2)/5 + B)e^t

    so question is, what do i do with the B?

    also i am sorry for writing it out with t's when i wrote the initial question in x's....
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Eater of Worlds
    galactus's Avatar
    Joined
    Jul 2006
    From
    Chaneysville, PA
    Posts
    3,001
    Thanks
    1
    Do you HAVE TO use undetermined coefficients?. Variation of Parameters is OK.

    y''-7y'+6y=2e^{3x}+xe^{x}

    By using the auxiliary equation m^{2}-7m+6=(m-6)(m-1)

    We get y_{c}=C_{1}e^{6x}+C_{2}e^{x}

    Compute the Wronskian:

    W=\begin{vmatrix}e^{6x}&e^{x}\\6e^{6x}&e^{x}\end{v  matrix}=-5e^{7x}

    W_{1}=\begin{vmatrix}0&e^{x}\\2e^{3x}+xe^{x}&e^{x}  \end{vmatrix}=-e^{2x}\left(2e^{2x}+x\right)

    W_{2}=\begin{vmatrix}e^{6x}&0\\6e^{6x}&2e^{3x}+xe^  {x}\end{vmatrix}=\left(2e^{2x}+x\right)e^{7x}

    u'_{1}=\frac{W_{1}}{W}=\frac{e^{-5x}(2e^{2x}+x)}{5}

    u'_{2}=\frac{W_{2}}{W}=\frac{-(2e^{2x}+x)}{5}

    Integrate The last two to get:

    u_{1}=\frac{-e^{-5x}(50e^{2x}+15x+3)}{375}

    u_{2}=\frac{-(2e^{2x}+x^{2})}{10}

    y_{p}=u_{1}e^{6x}+u_{2}e_{x}

    Now, after all that we can put it together.

    \boxed{y=y_{c}+y_{p}=C_{1}e^{6x}+C_{2}e^{x}-\frac{1}{3}e^{3x}-\frac{1}{10}x^{2}e^{x}-\frac{1}{25}xe^{x}-\frac{1}{125}e^{x}}
    Follow Math Help Forum on Facebook and Google+

  7. #7
    Flow Master
    mr fantastic's Avatar
    Joined
    Dec 2007
    From
    Zeitgeist
    Posts
    16,948
    Thanks
    5
    Quote Originally Posted by fuzzylogic25 View Post
    ok sorry. i did mean A = -t/5 sorry i ended up using t's instead of x's coz of that post u linked me to.

    well for y'' - 7y' + 6y = t(e^t) (i have taken out 2(e^(3t)) since i have no problem with that) - now im jus goin with t's

    what i did was set y = (At+B)e^t
    and then y' = (At+B)e^t + Ae^t
    and then y'' = (At+B)e^t + 2Ae^t

    so we have for y'' -7y' +6y :
    (At+B)e^t + 2Ae^t - 7[(At+B)e^t + Ae^t] + 6[(At+B)e^t]

    which when expanded is:
    (At+B)e^t + 2Ae^t - 7(At+B)e^t - 7Ae^t + 6(At+B)e^t
    which simplifies to:
    -5Ae^t

    so i equated the term to t(e^t) to get:
    -5Ae^t = te^t
    -5A = t
    A = -t/5

    and now i put that into y = (At+B)e^t = ((-t^2)/5 + B)e^t

    so question is, what do i do with the B?

    also i am sorry for writing it out with t's when i wrote the initial question in x's....
    My mistake. Clearly y = (At + B) e^t = At e^t + B e^t is redundant since B e^t is part of the homogenous solution.

    So you try y = A t e^t. This doesn't work because you end up with -5 A e^t on the left and t e^t on the right. By definition A is a constant and so things aren't right.

    So try y = (A t^2 + Bt) e^t as a particular solution .....
    Follow Math Help Forum on Facebook and Google+

  8. #8
    Newbie
    Joined
    May 2008
    Posts
    8
    ahh ive tried y = (A t^2 + Bt) e^t as well and i jus get it down to:

    2A-10At - 5B = t

    I also tried y = (At^2 + Bt + C) e^t but get the same result as above. I tried this one too because from the answer galactus got there seems to be 3 terms for e^t.

    I dont think iam doing it right (i did it same method as i showed u previously)...could someone show me how it is done using undetermined coefficients, i would really appreciate it coz im pretty lost now lol
    Follow Math Help Forum on Facebook and Google+

  9. #9
    Newbie
    Joined
    May 2008
    Posts
    8
    ok wait sorry i jus realised what i did.

    i had the answer:
    from 2A-10At - 5B = t
    we equate -10At = t to get A = -1/10
    and then 2A - 5B = 0
    and then B = -1/25

    so now we have for y= (At^2 + Bt)e^t = (-1/10t^2 -1/25t)e^t

    so it works BUT why is my answer different to galactus???
    i dont end up with a (-1/125e^t) term??
    Follow Math Help Forum on Facebook and Google+

  10. #10
    Flow Master
    mr fantastic's Avatar
    Joined
    Dec 2007
    From
    Zeitgeist
    Posts
    16,948
    Thanks
    5
    Quote Originally Posted by fuzzylogic25 View Post
    ok wait sorry i jus realised what i did.

    i had the answer:
    from 2A-10At - 5B = t
    we equate -10At = t to get A = -1/10
    and then 2A - 5B = 0
    and then B = -1/25

    so now we have for y= (At^2 + Bt)e^t = (-1/10t^2 -1/25t)e^t

    so it works BUT why is my answer different to galactus???
    i dont end up with a (-1/125e^t) term??
    The -\frac{1}{125} e^t term that galactus has can be put into the complementary solution:

    y_{c}= C_{1}e^{6t}+C_{2}e^{t} - \frac{1}{125} e^t =  C_{1}e^{6t}+ \left( C_{2} - \frac{1}{125}\right) e^{t} = C_{1}e^{6t}+ C_{3} e^{t}

    where C_3 = C_2 - \frac{1}{125} is just as arbitrary as C_2 .....
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Second Order Inhomogeneous ODE
    Posted in the Differential Equations Forum
    Replies: 0
    Last Post: February 17th 2010, 09:04 AM
  2. Second order ODEs - inhomogeneous
    Posted in the Differential Equations Forum
    Replies: 2
    Last Post: October 25th 2009, 06:50 AM
  3. 2nd Order Inhomogeneous DE
    Posted in the Differential Equations Forum
    Replies: 2
    Last Post: April 30th 2009, 08:17 AM
  4. Second Order Inhomogeneous Differential Equation
    Posted in the Differential Equations Forum
    Replies: 9
    Last Post: October 18th 2008, 08:52 PM
  5. inhomogeneous ODE 2. Order - a big problem
    Posted in the Calculus Forum
    Replies: 14
    Last Post: July 21st 2008, 05:42 AM

Search Tags


/mathhelpforum @mathhelpforum