First Order Linear Equations
The following are some examples of first-order linear differential equations (FOLDE):
The general form is where and are continuous, but not necessarily linear. These are called linear differential equations because they are linear with respect to meaning that they can be written in precisely this form. Notice that the last example above isn't in this form, but it can be easily rewritten in the proper form by dividing each term by
Procedure
First, we'll work through the first example above, skimming over some details. Once we've seen a full problem worked out, it will be easier to go back and fill in those details. We begin, then, with the following differential equation:
Without explaining why (this is what we'll come back to), I'll multiply every term in the equation by ; this is what we call the integrating factor, because it will help us get to a point where we can solve by integrating. After doing this, we have
How does this help? Notice that the left-hand side is equal to (check this using the Product Rule). We'll see this in the other examples we do, but once we know what the integrating factor is, multiplying it on both sides will always make the left-hand side (assuming we've written the differential equation in standard FOLDE form) equal to the derivative of the integrating factor times In any case, now we have which we can integrate with respect to in order to undo the derivative.
Finally, to solve for simply divide by : If we had an initial condition to go with this problem, we could then solve for as usual.
Integrating Factor:
The one point that we didn't see in detail was where the integrating factor came from in that example. The integrating factor can always be found by first writing the FOLDE in its standard form: in which case the integrating factor is
Why?
To be honest, you can skip this section and go on to the examples if you like; as long as you memorize how to find the integrating factor, you don't need to worry about where it came from. I believe in being thorough, though, and showing that nothing in math comes out of the blue.
To see where came from, think about what we wanted: we wanted the left-hand side to collapse to so we want
Let's start from here and simplify things until it becomes clear what must be.
Solve the following differential equation.
Solution
This one's already written in standard form, so it is clear that which means that
Once we multiply that by every term, we get the following (noting that the left-hand side collapses as always):
To integrate, use u-substitution (not shown fully here, but you can verify the details).
Finally, solve for by dividing both sides by :
Solve the following differential equation.
Solve the following differential equation.
Solution
This one is not written in standard form, so we must do that before picking out in order to find
To simplify further, you must remember your log rules: remember that a constant in front of a logarithm can be moved to the exponent inside the logarithm:
After multiplying the integrating factor through the equation, we get the following: which we can integrate.
Solve the following differential equation.
Solution
With this one, too, we have to start by writing it in standard form:
After multiplying the integrating factor through, we get and after integrating, we find that
Solve the following differential equation.
Mixing Problem Example
We can now return to the mixing problems that were introduced in the previous section, and we can deal with some complications now.
Mixing Problem
A tank initially contains 1000 L of pure water. There are two pipes that bring brine into the tank: one stream contains 0.1 kg of salt per liter of water and enters the tank at a rate of 10 L/min, and the other contains 0.2 kg of salt per liter of water and enters the tank at a rate of 5 L/min. The solution in the tank is kept thoroughly mixed and drains from the tank at 10 L/min. Find a solution for the amount of salt in the tank after minutes.
Solution
This mixing problem is different from the one in the last section; all three differences that I pointed out after doing that problem are present here. Remember, though, the only one that really changes the problem is the fact that the inlet and outlet flowrates are different. This means that instead of the concentration of salt in the tank being it
Again,
Note that this one is not separable, specifically because of that in the denominator. We'll have to solve this one using an integrating factor. To do so, start by writing it in standard FOLDE form:
Now multiply this integrating factor through:
To find this constant, use the initial condition: if the tank is initially full of pure water, then