How to find Integrating Factors for Linear First-Order Differential Equations

in #steemstem7 years ago (edited)

desmos-graph.png
Figure 1. Solutions of Equation (10)

Let's briefly recap the exponential decay model, which is typically modeled by...

j1.png

Being a separable first order differential equation, we can separate the variables and get all of the y's on the left-hand side and all of the x's on the right-hand side and solve accordingly...

j2.png

The general solution is...

j3.png

Ok, so we should be plenty familiar with the above solution. If not, please review my tutorials on separable DE's.

Now, let's rewrite equation (1), taking all of the terms to the left-hand side...

j4.png

Equation (3) is called a homogeneous, linear, first-order differential equation. It can be more generally written as...

j5.png

...where P(x) can be any continuous function over a specified domain. Let's add Q(x) (another continuous function) to the right-hand side and we have...

j6.png

Equation (5) is a non-homogeneous first-order differential equation, by virtue of the addition function Q(x).

For example, let's try to solve...

j7.png

Unfortunately we can't use separation of variables to solve (7) because we're not able to separate the variables! We are simply not able to rearrange dy/dx into the form F(x)G(x). The equation is still soluble, but we'll need a different approach.

Ok. What approach then?

What if we multiply equation (7) by x2? We get...

j8.png

What can you notice about the left-hand side of the above equation? Is it not the product rule expansion of j9.png? That is...

j10.png

So equating this to the x3 on the right-hand side...

j11.png

Now integrating both sides...

j12.png

How cool is that? We have found a solution to a non-separable DE. And it turns out that we can solve all linear, first-order equations in the same manner by multiplying everything by a function I(x) called an integrating factor...

The question is: how do we find this integrating factor?

Well, let's refer back to equation (5). We want to multiply equation (5) by I(x), that is...

j13.png

...such that the left-hand side of equation (8) becomes...

j14.png

What this means is that the product IP is the derivative of I(x). So equating the coefficients of y-term...

j15.png

It turns out equation (9) is a separable differential equation which we can solve...

j16.png

And thus we have found a general expression to find the integrating factor. There actually are an infinite number of integrating factors, but we only need one. Which is why for the above working, we do not need to include a constant of integration C, which would have given us the most general solution for the integrating factor. We just need a basic particular solution, so we'll consider C = 0.

Therefore, to solve any linear, first-order non homogeneous differential equation of the form in equation (5), all we need to do is multiply both sides of the equation by the integrating factor j17.png and integrate both sides.

Let's do a couple of examples...

Example 1: General Solution Problem

Let's jump straight into a reasonably tricky example...

j18.png

The first step is to rearrange equation (10) to the same form as equation (5)...

j19.png

Now we can find the integrating factor I(x) by the formula above...

j20.png

Then multiply (11) through by integrating factor and carrying through the subsequent operations...

j21.png

Great. Finally, we just multiplying everything by x2 to isolate y(x) on the left-hand side...

j22.png

Equation (12) is the general solution to equation (10)

A plot of the general solution for varying values of C is shown in Figure 1 above.

Example 2: Initial Value Problem

Let's solve...

j23.png

With initial condition j26.png.

The integrating factor for equation (13) is...

j24.png

Now multiplying (13) with integrating factor and carrying through with the integration...

j25.png

And applying the initial condition to find the particular solution...

j27.png

And thus the particular solution is...

j28.png

A plot of this very cool looking solution is shown in Figure 2 below.

j30.png


Credits:

Examples 1 and 2 are my worked solutions of exercises from Advanced Engineering Mathematics 10th Edition,
Kreyszig
.

All equations in this tutorial were created with QuickLatex

All graphs were created with www.desmos.com/calculator


First & Second Order Linear ODE's and their applications

  1. How to find Integrating Factors for Linear First-Order Differential Equations
  2. An Application of First Order ODEs: The RL Circuit

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

Please ask me a maths question by commenting below and I will try to help you in future videos.

I would really appreciate any small donation which will help me to help more math students of the world.

Tip me some DogeCoin: A4f3URZSWDoJCkWhVttbR3RjGHRSuLpaP3

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

Sort:  

You really do a great job with these tutorials. I don't even need differential equations anymore for I have finished all my maths classes, and I still find this to be very interesting stuff.

Thank you @sergejkarkarov. It's good to know there are people appreciating my work. I hope to collate all this material together to create coursework material one day.

Good luck with that! I'm sure it'll work out!

You got a 1.04% upvote from @buildawhale courtesy of @masterwu!
If you believe this post is spam or abuse, please report it to our Discord #abuse channel.

If you want to support our Curation Digest or our Spam & Abuse prevention efforts, please vote @themarkymark as witness.

This post has received a 0.52% upvote from thanks to: @masterwu.
For more information, click here!!!!
Send minimum 0.050 SBD/STEEM to bid for votes.


Do you know, you can also earn daily passive income simply by delegating your Steem Power to @minnowhelper by clicking following links: 10SP, 100SP, 500SP, 1000SP or Another amount

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by masterwu from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Coin Marketplace

STEEM 0.18
TRX 0.15
JST 0.029
BTC 62260.20
ETH 2431.98
USDT 1.00
SBD 2.64