Best Guess for Partial Solution for Diff EQ?

  • Thread starter Thread starter kq6up
  • Start date Start date
  • Tags Tags
    Diff eq Partial
kq6up
Messages
366
Reaction score
13

Homework Statement



Find the specific solution for: y''-2y'+y=xe^x+4, y(0)=1, y'(0)=1.

Homework Equations


N/A

The Attempt at a Solution



Since xe^x is already in the general solution of the homogeneous version of this diff eq (complementary solution), my first guess for a partial solution term would be x^2e^x (xe^x is already taken by the complementary sol). However, it no worky. The correct guess is x^3e^x. I am not sure why this term has a higher power of x then the order of the DiffEq. I would have never have guessed this. Is there a reason I should have guessed this, or in general do I have to keep increasing powers until I find one that works? I am trying to find ways to save time on an exam.

Thanks,
Chris [/B]
 
Physics news on Phys.org
kq6up said:

Homework Statement



Find the specific solution for: y''-2y'+y=xe^x+4, y(0)=1, y'(0)=1.

Homework Equations


N/A

The Attempt at a Solution



Since xe^x is already in the general solution of the homogeneous version of this diff eq (complementary solution), my first guess for a partial solution term would be x^2e^x (xe^x is already taken by the complementary sol). However, it no worky. The correct guess is x^3e^x. I am not sure why this term has a higher power of x then the order of the DiffEq. I would have never have guessed this. Is there a reason I should have guessed this, or in general do I have to keep increasing powers until I find one that works? I am trying to find ways to save time on an exam.

Thanks,
Chris [/B]
The best way is to eliminate the guesswork with the annihilator method. It is really pretty simple. See
http://www.utdallas.edu/dept/abp/PDF_Files/DE_Folder/Annihilator_Method.pdf
 
Last edited by a moderator:
LCKurtz said:
The best way is to eliminate the guesswork with the annihilator method. It is really pretty simple. See
http://www.utdallas.edu/dept/abp/PDF_Files/DE_Folder/Annihilator_Method.pdf

Ah, I vaguely remember that method from 20 years ago. Thanks for the post. According to the text my prof photocopied we are using the Method of undetermined coefficients, and I am going to assume there is guessing involved with my question above. So there is no straight forward way of knowing ahead of time with my professor's method -- just trial and error?

She assigned some painful extra credit for the whole class to repair a midterm grade, and I am thinking she wants us to just slog through it her way -- she is a bit sadistic like that :D

Thanks,
Chris
 
Last edited by a moderator:
Actually, the method of undetermined coefficients is the method of annihilators. That's where the "guess" comes from. On an actual problem it is pretty quick and quicker if you guess wrong for your trial solution. For a particular problem it is really quite quick. To illustrate, in your problem$$y''-2y'+y = xe^x + 4$$your annihilator on the left is ##(D-1)^2## and on the right is ##D(D-1)^2## for a combined annihilator of ##D(D-1)^4##. So you can annihilate both sides with$$
\color{red}{Ae^x+Bxe^x}+Cx^2e^x+Dx^3e^x+E$$I have highlighted in red the part of that which is in the homogeneous solution. The rest of it is the correct "guess" to use for undetermined coefficients.
 
  • Like
Likes kq6up
Thanks,
Chris
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top