Method of undetermined coefficients

In summary, for linear ODEs with constant coefficients, the general solution is the sum of the homogeneous solution and the particular solution. The particular solution is determined by the RHS of the equation. In this case, the particular solution is chosen by multiplying the general solution by 'x' twice. This is due to the method of annihilators and the fact that the roots of the characteristic equation are real and identical. For more details, refer to the link provided.
  • #1
CeilingFan
11
0
Hi all,

I have a quick question. I was taught this, but wasn't explained to at all why it is the case.

So let's say I have a differential equation with constant coefficients

i.e. y'' - 4y' + 4y = e^2x

And the general solution to its associated homogeneous equation is

Ae^2x + Bxe^2x [A & B are constants]

I was told that when deciding on the particular solution to solve for the general solution of the D.E.,

I should multiply it by 'x' twice, i.e. instead of choosing Ce^2x , I should choose C (x^2) (e^2x)

Now, I have tried solving the D.E. with either particular solution, and found out that what I was told is correct, but I have no idea why I should be doing it.

Is there a reason for doing it (raising the solution by x^2) or is it just something that is tested and proven and I should just remember it like any other facts?
 
Physics news on Phys.org
  • #2
Have you studied Laplace transforms yet?
 
  • #3
CeilingFan said:
Hi all,

I have a quick question. I was taught this, but wasn't explained to at all why it is the case.

So let's say I have a differential equation with constant coefficients

i.e. y'' - 4y' + 4y = e^2x

And the general solution to its associated homogeneous equation is

Ae^2x + Bxe^2x [A & B are constants]

I was told that when deciding on the particular solution to solve for the general solution of the D.E.,

For linear ODEs with constant coefficients, like you have, the general solution is the sum of the homogeneous solution and the particular solution.

The homogeneous solution is of course, the solution to y" - 4y' + 4y = 0, and is called yh

The particular solution is the solution when the RHS of the equation = e2x in this case, and this solution is called yp

The general solution to the ODE is then y = yh + yp

For linear ODEs with constant coefficients, the homogenous solution is assumed to be yh = erx

After substituting yh = erx into the ODE and dividing out ex, we are left with a polynomial in r which is called the characteristic equation, in this case:
r2 - 4r + 4 = 0

The correct solution for the homogeneous ODE is obtained by solving the characteristic equation for r.

In this case, factoring gives us r2 - 4r + 4 = (r - 2)(r - 2); thus r = 2 and 2, so both roots are real and identical.

I should multiply it by 'x' twice, i.e. instead of choosing Ce^2x , I should choose C (x^2) (e^2x)

Now, I have tried solving the D.E. with either particular solution, and found out that what I was told is correct, but I have no idea why I should be doing it.

Is there a reason for doing it (raising the solution by x^2) or is it just something that is tested and proven and I should just remember it like any other facts?
Since the roots of the characteristic equation are real and identical, then yh = C1 * er x + C2 * x * er x

If the solutions were real and distinct, say r1 and r2, then yh = C1 * er1x + C2 * er2x

The choice of the particular solution yp depends on the RHS of the ODE.

For more details about these solutions, look at:

http://tutorial.math.lamar.edu/Classes/DE/IntroSecondOrder.aspx

There is a more complete discussion along with worked examples.
 
  • #4
CeilingFan said:
Hi all,

I have a quick question. I was taught this, but wasn't explained to at all why it is the case.

So let's say I have a differential equation with constant coefficients

i.e. y'' - 4y' + 4y = e^2x

And the general solution to its associated homogeneous equation is

Ae^2x + Bxe^2x [A & B are constants]

I was told that when deciding on the particular solution to solve for the general solution of the D.E.,

I should multiply it by 'x' twice, i.e. instead of choosing Ce^2x , I should choose C (x^2) (e^2x)

Now, I have tried solving the D.E. with either particular solution, and found out that what I was told is correct, but I have no idea why I should be doing it.

Is there a reason for doing it (raising the solution by x^2) or is it just something that is tested and proven and I should just remember it like any other facts?

Yes, there is a reason. It comes from the method of annihilators:
http://www.math.uiuc.edu/~laugesen/286/annihilators.pdf
 
  • #5
DEvens said:
Have you studied Laplace transforms yet?

Hi. Thanks for replying. I don't think I have.

SteamKing said:
For linear ODEs with constant coefficients, like you have, the general solution is the sum of the homogeneous solution and the particular solution.

The homogeneous solution is of course, the solution to y" - 4y' + 4y = 0, and is called yh

The particular solution is the solution when the RHS of the equation = e2x in this case, and this solution is called yp

The general solution to the ODE is then y = yh + yp

For linear ODEs with constant coefficients, the homogenous solution is assumed to be yh = erx

After substituting yh = erx into the ODE and dividing out ex, we are left with a polynomial in r which is called the characteristic equation, in this case:
r2 - 4r + 4 = 0

The correct solution for the homogeneous ODE is obtained by solving the characteristic equation for r.

In this case, factoring gives us r2 - 4r + 4 = (r - 2)(r - 2); thus r = 2 and 2, so both roots are real and identical.Since the roots of the characteristic equation are real and identical, then yh = C1 * er x + C2 * x * er x

If the solutions were real and distinct, say r1 and r2, then yh = C1 * er1x + C2 * er2x

The choice of the particular solution yp depends on the RHS of the ODE.

For more details about these solutions, look at:

http://tutorial.math.lamar.edu/Classes/DE/IntroSecondOrder.aspx

There is a more complete discussion along with worked examples.

Hi. Thanks for replying. I understand the derivation of homogeneous equations, and how I should choose particular solutions when trying to solve, but I don't understand the rationale behind the need to adding the extra 'x' term when the term appears in the homogeneous solution, though I did try both ways and find out that I do need it.

LCKurtz said:
Yes, there is a reason. It comes from the method of annihilators:
http://www.math.uiuc.edu/~laugesen/286/annihilators.pdf

Hi. Thanks for replying. I don't think I've come across this yet... And I'm not a mathematically- (or academically-) inclined kind of guy so I don't exactly understand what's going on in there. I probably would learn this some day I hope. Thank you anyway.

------------------------------

I have another question that I would like to clarify too, if you guys have time for that.

I came across the equation where the 'y' is missing. e.g. y'' + 2y' = x^2 + 3

Something like that, can't remember the exact numbers.

In this case my particular solution choice (a polynomial) has to be raised by 'x' for every term i.e. Ax + Bx^2 + Cx^3 instead of A + Bx + Cx^2.

Does doing this have the same reason as that in my original question? (i.e. Yp = A(x^2)(e^2x) when e^2x appeared twice in Yh)

Or is the reason something completely different?

[Sorry if this could be answered if I could have understood Kurtz's post]
 
  • #6
CeilingFan said:
I have another question that I would like to clarify too, if you guys have time for that.

I came across the equation where the 'y' is missing. e.g. y'' + 2y' = x^2 + 3

Something like that, can't remember the exact numbers.

In this case my particular solution choice (a polynomial) has to be raised by 'x' for every term i.e. Ax + Bx^2 + Cx^3 instead of A + Bx + Cx^2.

Does doing this have the same reason as that in my original question? (i.e. Yp = A(x^2)(e^2x) when e^2x appeared twice in Yh)

Or is the reason something completely different?

[Sorry if this could be answered if I could have understood Kurtz's post]

As discussed before briefly, the type of particular solution for the non-homogeneous equation depends on the RHS of the equation.

This article discusses several different types of RHS and how to derive the particular solution for each, using the method of undetermined coefficients:

http://tutorial.math.lamar.edu/Classes/DE/NonhomogeneousDE.aspx
 
  • #7
CeilingFan said:
[Sorry if this could be answered if I could have understood Kurtz's post]

It would have been answered. It is the basis for making the choices for undetermined coefficients. Google "method of annihilators" and you may find other explanations more to your liking.
 

FAQ: Method of undetermined coefficients

What is the method of undetermined coefficients?

The method of undetermined coefficients is a technique used in mathematics and science to find the particular solution of a differential equation. It involves assuming a form for the particular solution and solving for the coefficients in order to satisfy the given differential equation.

When is the method of undetermined coefficients used?

The method of undetermined coefficients is typically used to solve linear differential equations with constant coefficients. It is also useful when the right-hand side of the equation is a sum of exponential, trigonometric, or polynomial functions.

How does the method of undetermined coefficients work?

The method of undetermined coefficients works by first assuming a general form for the particular solution, which includes undetermined coefficients. These coefficients are then solved for by plugging the assumed form into the differential equation and equating coefficients of like terms. The particular solution is then obtained by substituting the solved coefficients back into the assumed form.

What are the limitations of the method of undetermined coefficients?

One limitation of the method of undetermined coefficients is that it only works for certain types of differential equations with constant coefficients. It also cannot be used for non-homogeneous equations with non-constant coefficients or for equations with non-polynomial or non-exponential terms.

Are there any tips for using the method of undetermined coefficients effectively?

To use the method of undetermined coefficients effectively, it is important to choose the assumed form of the particular solution carefully. This form should be able to accommodate all terms in the right-hand side of the equation. It is also helpful to have a good understanding of the properties of exponential, trigonometric, and polynomial functions to correctly solve for the undetermined coefficients.

Similar threads

Back
Top