Method of undetermined coefficients

Click For Summary

Discussion Overview

The discussion revolves around the method of undetermined coefficients in solving linear ordinary differential equations (ODEs) with constant coefficients. Participants explore the rationale behind modifying the form of the particular solution when terms appear in the homogeneous solution, particularly focusing on cases where the right-hand side of the equation includes terms that are also solutions to the homogeneous equation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant questions why, when solving the differential equation y'' - 4y' + 4y = e^2x, the particular solution must be chosen as C(x^2)e^2x instead of Ce^2x, noting that they have verified the necessity through solving the equation.
  • Another participant suggests that the reasoning behind this adjustment relates to the method of annihilators, providing a link for further reading.
  • There is a discussion about the general solution of linear ODEs being the sum of the homogeneous and particular solutions, with emphasis on the characteristic equation and its roots affecting the form of the homogeneous solution.
  • A participant raises a related question about a different equation where the 'y' term is missing, asking if the need to raise the polynomial terms in the particular solution has a similar rationale as the previous case.
  • Responses indicate that the choice of particular solution depends on the right-hand side of the equation, but do not clarify the reasoning behind the necessity of raising terms in both cases.

Areas of Agreement / Disagreement

Participants express uncertainty about the underlying reasons for modifying the particular solution, with some agreeing that there is a rationale but not reaching a consensus on what that rationale is. Multiple viewpoints on the necessity of adjustments in the particular solution remain unresolved.

Contextual Notes

Participants reference external resources for further exploration of the method of undetermined coefficients and the method of annihilators, indicating that the discussion may benefit from additional context or examples not fully covered in the thread.

CeilingFan
Messages
11
Reaction score
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
Have you studied Laplace transforms yet?
 
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.
 
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
 
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]
 
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
 
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.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
12
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 17 ·
Replies
17
Views
5K
Replies
3
Views
2K