Solving Non-homogeneous ODE's: Method of Undetermined Coefficients Part 4steemCreated with Sketch.

in #steemstem7 years ago (edited)

Let's work through another example on how to solve non-homogeneous 2nd order differential equations. This is our final example before we look at practical applications of this method of solving ODE's. This example has yet another subtle twist from the previous 3.

desmos-graph.png
Figure 1. Graph of the particular solution to equation (1) in Example 4.

So without further adieu, let's work through Example 4.

Example 4

Let's find the particular solution to...

x2.png

...with initial conditions:

x24.png

The first step,as usual, is to solve for the homogeneous equation...

x4.png

The characteristic equation for (2) is...

x3.png

The roots of characteristic equation (3) are...

x1.png

So we have complex conjugate roots. Thus by equation (11) of post #3, the homogeneous solution is...

x5.png

Now, for the particular solution of the non-homogeneous equation, let's see what happens when we try:

x7.png

(note: this trial for yp is in exactly the same form as yh, and as you'll soon see, we are going to run into problems)

The first and second derivatives for yp are...

x6.png

x8.png

Sub these into (1) and we get...

x9.png

Now equating the coefficients of the left hand side to the right hand side...

x10.png

Do the simultaneous equations (5) and (6) make sense? From (5)...

x11.png

...which means by (6)...

x12.png

...an impossible result!

So how did this happen, and how do we solve it? Basically, this is the same situation as Case II in post #3, in that we need yp and yh to be linearly independent to form a basis for the particular solution.

See how expensive in effort math can get? Sigh...

So how do we work around that? Let's 'Modify' the trial solution a little bit by multiplying by x. Let's try...

x13.png

...and therefore...

x14.png

...and...

x15.png

Substituting these into (1), we get...

x16.png

Again, by equating coefficients, we have...

x17.png

Therefore we have found a solution for yp!

x18.png

The general solution of (1) is the addition of the homogeneous solution and the particular non-homogeneous solution...

x19.png

To find the particular solution to (1), we need to apply the initial conditions. Firstly,

x20.png

The first derivative of the general solution is...

x21.png

And applying the second initial condition...

x22.png

Finally...

x23.png

Figure 1 above is a graph of the solution, equation (8). This tutorial was an example of using the "Modification" rule whereby if the choice for yp is a solution in yh, we need to modify the choice by multiplying by x, or x2.

Summary of the Method of Undetermined Coefficients

a) Basic Rule

Table 1 below describes the choices for the particular solution to the non-homogeneous equation for the given non-zero term r(x).

Term in r(x) Choice for yp(x)
Table 1. Basic rule, choices for yp(x)

b) Modification Rule

If the choice for yp(x) is a solution of yh(x), multiply the term by x (or x2 if the solution is in the same form as a double root of the characteristic equation of the homogeneous ODE)

c) Sum Rule

If r(x) is a sum of functions in the first column of Table 1, sum the corresponding choices for yp(x) in the second column


Credits:

All equations in this tutorial were created with QuickLatex


First Order Differential Equations

  1. Introduction to Differential Equations - Part 1
  2. Differential Equations: Order and Linearity
  3. First-Order Differential Equations with Separable Variables - Example 1
  4. Separable Differential Equations - Example 2
  5. Modelling Exponential Growth of Bacteria with dy/dx = ky
  6. Modelling the Decay of Nuclear Medicine with dy/dx = -ky
  7. Exponential Decay: The mathematics behind your Camping Torch with dy/dx = -ky
  8. Mixing Salt & Water with Separable Differential Equations
  9. How Newton's Law of Cooling cools your Champagne
  10. The Logistic Model for Population Growth
  11. Predicting World Population Growth with the Logistic Model - Part 1
  12. Predicting World Population Growth with the Logistic Model - Part 2
  13. What's faster? Going up or Coming Down?

First order Non-linear Differential Equations

  1. There's a hole in my bucket! Let's turn it into a cool Math problem!
  2. The Calculus of Hot Chocolate Pouring!
  3. Foxes hunting Bunnies: Population Modelling with the Predator-Prey Equations

Second Order Differential Equations

  1. Introduction to Second Order Differential Equations
  2. Finding a Basis for solutions of Second Order ODE's
  3. Roots of Homogeneous Second Order ODE's and the Nature their Solutions
  4. Modelling with Second Order ODE's: Undamped Free Oscillations
  5. Modelling Car Suspension with ODE's: Damped Free Oscillations Part 1
  6. Modelling Car Suspension with ODE's: Damped Free Oscillations Part 2
  7. Modelling Car Suspension with ODE's: Damped Free Oscillations Part 3
  8. Non-homogeneous Differential Equations
  9. Solving Non-homogeneous ODE's: Method of Undetermined Coefficients Part 1
  10. Solving Non-homogeneous ODE's: Method of Undetermined Coefficients Part 2
  11. Solving Non-homogeneous ODE's: Method of Undetermined Coefficients Part 3
  12. Solving Non-homogeneous ODE's: Method of Undetermined Coefficients Part 4

Please give me an Upvote and Resteem if you have found this tutorial helpful.

Feel free to ask me any math question by commenting below and I will try to help you in future posts.

Visit my YouTube Channel at: https://www.youtube.com/masterwumathematics

Tip me some DogeCoin: A4f3URZSWDoJCkWhVttbR3RjGHRSuLpaP3

Tip me at PayPal: https://paypal.me/MasterWu

Sort:  




This post has been voted on by the SteemSTEM curation team and voting trail in collaboration with @curie.

If you appreciate the work we are doing then consider voting both projects for witness by selecting stem.witness and curie!

For additional information please join us on the SteemSTEM discord and to get to know the rest of the community!

Congratulations @masterwu! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 5000 upvotes. Your next target is to reach 6000 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

Meet the Steemians Contest - The results, the winners and the prizes
Meet the Steemians Contest - Special attendees revealed
Meet the Steemians Contest - Intermediate results

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @masterwu! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 17000 upvotes. Your next target is to reach 18000 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Pretty much straightforward. Thanks

Coin Marketplace

STEEM 0.10
TRX 0.32
JST 0.032
BTC 111992.09
ETH 4101.87
USDT 1.00
SBD 0.67