Differential Equation Question

Calu
Messages
73
Reaction score
0
I have a differential equation

y'' + y' -2y = 3e-2x + 5cosx

y = yc + yp

I found

yc = Ae-2x + Bex

for A, B arb. Const.

Then when selecting a trial function to find the particular integral, yp I came up with:

yp = ae-2x + bcosx + csinx

However the correct trial function to choose is:

yp = axe-2x + bcosx + csinx

Where the ae-2x has been multiplied by x. I was wondering in what instance I would have to multiply the term in the yp equation by x or x2.
 
Physics news on Phys.org
Calu said:
I have a differential equation

y'' + y' -2y = 3e-2x + 5cosx

y = yc + yp

I found

yc = Ae-2x + Bex

for A, B arb. Const.

Then when selecting a trial function to find the particular integral, yp I came up with:

yp = ae-2x + bcosx + csinx

However the correct trial function to choose is:

yp = axe-2x + bcosx + csinx

Where the ae-2x has been multiplied by x. I was wondering in what instance I would have to multiply the term in the yp equation by x or x2.

When you plug in your expression for ##y_p##, you know you need to get out a ##3e^{-2x}## term. But if you plug ##ae^{-2x}## into the equation, you know you will get zero because it is in ##y_c##. That's when you want to try a term ##y_p=axe^{-2x}##. There's more to that story but that's the short answer.
 
  • Like
Likes 1 person
You want the terms in ##y_p## to be linearly independent of the terms in ##y_c##. Note that ##f(x) = 3e^{-2x} +5cos(x)##.

Your original guess for ##y_p## includes a multiple of one of your homogeneous solutions, namely the ##Ae^{-2x}## term, so it cannot be linearly independent of ##y_c##. Multiplying by ##x## is a quick shortcut to obtaining a linearly independent ##y_p## guess.

This method was developed by D'alembert, you can find out more by checking out "reduction order".
 
  • Like
Likes 1 person
LCKurtz said:
When you plug in your expression for ##y_p##, you know you need to get out a ##3e^{-2x}## term. But if you plug ##ae^{-2x}## into the equation, you know you will get zero because it is in ##y_c##. That's when you want to try a term ##y_p=axe^{-2x}##. There's more to that story but that's the short answer.



Zondrina said:
You want the terms in ##y_p## to be linearly independent of the terms in ##y_c##. Note that ##f(x) = 3e^{-2x} +5cos(x)##.

Your original guess for ##y_p## includes a multiple of one of your homogeneous solutions, namely the ##Ae^{-2x}## term, so it cannot be linearly independent of ##y_c##. Multiplying by ##x## is a quick shortcut to obtaining a linearly independent ##y_p## guess.

This method was developed by D'alembert, you can find out more by checking out "reduction order".

These were both great answers! Thanks a lot!
 
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...

Similar threads

Replies
7
Views
2K
Replies
1
Views
1K
Replies
3
Views
515
Replies
4
Views
6K
Replies
3
Views
2K
Replies
10
Views
2K
Back
Top