First order linear ordinary differential equations
A common equation that pops up in a lot of applications is a Linear First Order Equation. The form that this takes is
Similar to separable, you will probably have to use some algebra to rearrange it to get it into this form, but the key parts of it are that its the
differential +
a function that is in terms of the independent variable times the dependent variable =
a function that is in terms of the independent variable
in order to solve this, were going to multiply the whole equation by an integrating factor
If we can find a function that satisfies the equation
and then substitute that into the middle term we get
we did this because this makes the left side of the equation just a product rule (
Integrate both sides and simplify with some algebra
Note that the c eats the negative when you subtract it
With this we have a way to solve for what
Note that in order to show how we are interacting with the constants after we integrate, the integral without
Using the chain rule, we know that
We can set
equal to integrating both sides
subtracting the
's '(one eats the other) and solving for
Now we plug our generalized integrating factor into the original equation to see what happens
Note the constant from the general solution will be labeled
splitting the fraction and pulling the constant out of the integrated function
the
's from the first term will cancel and the from the general solution will eat the from the integrating factor
With this we can see that the
and with a little bit of factoring and arranging what we did above to clean it up, we can have a nice formula to follow
Quick note: We don't actually need to include the "c" in the formula as we will get one that we when we integrate, I like to leave it in because its a good reminder not to forget about it, and technically it's still correct because the "c" you get from the integral can also eat/be eaten by the extra c
With that we have a simple generalized formula for solving this type of equation.
Form
General Solution
Quick Example before moving on
Divide by
to isolate the differential Find our
, , and integrating factor Using the above formula solve for
Note: Don't forget the "+c", and that it gets multiplied by
, the general solution to this is and not With our general solution lets use the given initial value to find the particular solution
Plugging in our given
and to solve for After solving for
we can write out the full solution