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

in #steemstem6 years ago (edited)

In my last post, I stated something rather paradoxical about solving non-homogeneous differential equations: ...to find a solution to the non-homogeneous equation, we need to find a solution to the non-homogeneous equation.

A bit of a 'Catch-22'? Well, in this post we'll walk through the first of such methods...

u39.png
Figure 1. Graph of the particular solution to equation (6)

The method of undetermined coefficients is a simple, but effective way of finding solutions to the non-homogeneous equation. Here, we use more or less a trial-and-error approach to find solutions for u56.png.

Rather than explaining how it's done, first let's just go through a few examples to understand the mechanics of finding these solutions. After that, we'll summarise the method. So let's go straight to Example 1...

Example 1

Let's find the particular solution to the equation (I started with the number (6), as it follows equation (5) from the last post)...

u14.png

With initial conditions...

u15.png

First, we must find the solution to the homogeneous equation...

u16.png

...the characteristic equation of which is...

u17.png

...giving rise to the roots...

u18.png

...and thus the general solution to the homogeneous equation is...

u19.png

Ok, so now that we have a solution to the homogeneous equation, we need to find a solution to the non-homogeneous equation.

How do we go about it?

Well, let's try a solution of the form that is similar to the term on the right-hand side of equation (6). Let's try...

u20.png

...thus u21.png and u22.png. Let see how this goes when we substitute these expressions into (6)...

u23.png

Now, equating the coefficients, we see that 3C = 18 (i.e. C = 6), but 2C = 0 as well (i.e. C = 0). This is a conflicting, or contradicting result.

So that obviously didn't work, but let's not give up here.

Let's try including some of the lower degrees to turn the trial solution into a polynomial...

u24.png

Now, the first and second derivatives are...

u25.png

..and...

u26.png

And now substituting these into (6)...

u27.png

So equating the coefficients again, we have...

u28.png

...we also have...

u29.png

...and finally, we have...

u30.png

Therefore, our solution for u56.png is...

u31.png

So, from (3) of the last post, the general solution is...

u32.png

In similar fashion to previous methods of finding particular solutions, we apply the initial conditions. Firstly...

u33.png

To apply the second initial condition, we need to find the first derivative...

u34.png

And therefore, the final particular solution is...

u35.png

Figure 1 above shows a graph of this solution. The solution is simply a superposition (i.e. a fancy way of saying 'addition') of an oscillating (circular) component: u36.png; and a polynomial component u37.png.

As you can see by the red curve, the solution is dominated by the polynomial.

We will go through another example in the next post.


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

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.

Tip me some DogeCoin: A4f3URZSWDoJCkWhVttbR3RjGHRSuLpaP3

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

Sort:  

Welcome back again :o)

Thank you @mathowl! Once again, I'm going to try to be more consistent with my posting.

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

You received more than 4000 upvotes. Your next target is to reach 5000 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:

Trick or Treat - Publish your scariest halloween story and win a new badge
SteemitBoard notifications improved

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





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!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 62869.05
ETH 2545.35
USDT 1.00
SBD 2.72