Solving second order non homogeneous diff. equation by a particular method

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 2K views
Telemachus
Messages
820
Reaction score
30
Hi. I have to solve this:

[tex]y''-3y'+2y=e^x[/tex],
Using the replacement [tex]y=\phi y_1[/tex] being [tex]y_1[/tex] a solution of the homogeneous differential equation. I can't do it "traditionally", I have to use this method.

So I have to solve that [tex]\phi ''y_1+ \phi ' \left[2y_1'+Py_1] \right]=e^x[/tex]

So, this is what I did:

[tex]y_1=C_1 e^x+C_2e^{2x}\rightarrow y_1'=C_1 e^x+2C_2e^{2x}[/tex]
Then:
[tex]\phi ''C_1 e^x+\phi '' C_2 e^{2x}+ \phi ' \left[C_2e^{2x}-C_1e^x \right]=e^x[/tex]
What should I do from here? I don't know how to handle [tex]\phi[/tex]

Bye there.
 
Physics news on Phys.org
This looks like a reduction of order type thing, if y1 is a solution of y''-3y'+2y = 0, why don't you just choose a 'y1' from the equation and then substitute?
 
You're right, that's what it is. But I don't know what you mean with the substitution you proposed. Isn't it what I did? I mean this:
[tex]\phi ''C_1 e^x+\phi '' C_2 e^{2x}+ \phi ' \left[C_2e^{2x}-C_1e^x \right]=e^x[/tex]
What I have to find is [tex]\phi '[/tex], but I don't know how. May be I shouldn't use the constants, but I'm not sure about it.

Thanks for posting BTW.

This is how I say thanks to you

:D
 
Last edited by a moderator:
I think this technique is also called "variation of parameters." If I remember correctly, what you have is y1 is one of the solutions of the homogeneous equation, y'' - 3y' + 2y = 0.

Let y = φy1 be a solution of the nonhomogeneous equation y'' - 3y' + 2y = ex.

y' = φ'y1 + φy1'
y'' = φ''y1 + 2φ'y1' + φy1''

When you substitute the right sides of the three equations above into the nonhomogeneous equation, group the terms so that you have φ'' times some expression, φ' times some expression, and φ times some expression.

You should get something like this: φ''(y1'' - 3y1' + 2y1) + <other stuff> = ex. The quantity in parentheses simplifies to 0, since y1 is one of the solutions to the homogeneous problem. This reduces the order of the differential equation, which should allow you to find φ, and from it, your other solution to the nonhomogeneous problem.
 
Mark44 said:
I think this technique is also called "variation of parameters.

Variation of parameters has the Wronskian in it if I remember from like 2 years ago.


Telemachus said:
This is how I say thanks to you

:D


I like me some Hendrix.

But Mark44 has posted some sound guidance there.
 
Last edited by a moderator:
I got it. I've made a few mistakes here. At first, I shouldn't take the entire solution for the DE when applying the formula, I just needed one solution, y1. The other thing I shouldn't use are the constants. Doing that one gets a DE equation on [tex]\phi[/tex] of second order. Getting the solution and replacing back in [tex]y=\phi y_1[/tex] gives the entire solution for the original DE.

Thank you both.
Bye there.