Solving linear differential equations
Standard form of a first order linear differential equation
To investigate first order differential equations, we’ll start by looking at equations given in a few very specific forms. The first of these is a first order linear differential equation.
Form of a first order linear differential equation
First order linear differential equations are equations given in the form
Hi! I'm krista.
I create online courses to help you rock your math class. Read more.
where and are continuous functions. They always have a solution in the form . Realize that some linear equations might be disguised in a slightly different form. For instance, the equation
is a linear equation because it can be manipulated to match the form above simply by adding to both sides of the equation.
Either way, these linear equations are first order equations because they contain a first derivative. Later we’ll look at how to solve higher order linear differential equations (which contain higher order derivatives), but for now we’ll focus only on first order equations.
When , the first order linear equation is homogeneous, and the equation simplifies to
These homogeneous linear equations are also called separable differential equations, which we’ll cover a little later. For now, we’ll only say that the solution to a homogeneous linear equation is
, where
Solving first order linear differential equations using the integrating factor method
Take the course
Want to learn more about Differential Equations? I have a step-by-step course for that. :)
Two examples of finding the general solution to a first-order linear differential equation
Here’s a quick example showing how we can use these formulas to find the solution to the homogeneous linear equation (separable equation).
Example
Find the solution to the linear differential equation.
We start with
so the general solution is
Again, we’ll talk more about these homogeneous linear equations (separable equations) later, but our focus here is really on solving nonhomogeneous first order linear equations, in which .
Solving equations with the integrating factor
Once we’ve identified that we have a first order linear differential equation, we can always follow the same set of steps to arrive at the solution to the equation, .
Make sure that the equation matches the general form of a first order linear differential equation
From the equation, identify and .
Find the equation’s integrating factor, .
Multiply through the linear equation by the integrating factor.
Reverse the product rule to rewrite the left side of the resulting equation as .
Integrate both sides of the equation to find .
Let’s work through an example so that we can see these steps in action.
Example
Find the solution to the linear differential equation.
Our first step is to match the given equation to the standard form of a first order linear differential equation, which we’ll do by dividing through both sides of the equation by .
(Step 1)
This new form matches the standard form we need, which means we can now identify and (Step 2) as
Notice that we included the negative sign in front of the as part of the function. Any negative sign that precedes the function should be included in , and any negative sign that leads the right side function should be included in .
Now that we have , we can find the integrating factor (Step 3).
When we integrated, notice that we didn’t add to account for the constant of integration, like we normally would whenever we’re evaluating an indefinite integral.
We can always leave it out during this process, because we’re only looking for one solution to the linear differential equation, and that one solution can be associated with . Other values of could give other solutions to the linear equation, but we only need one solution, so for the sake of simplicity, we’ll always choose .
Once we have the integrating factor, we’ll multiply it by both sides of our equation (Step 4).
Rewriting as , we get
The reason we multiply through by the integrating factor is that it does something for us that’s extremely convenient, even though we don’t realize it yet.
It turns out that the left side of , , is actually the derivative of . This is interesting because is the product of and our integrating factor. In other words, . We can prove this to ourselves if we take the derivative of . We’ll need to use the product rule for derivatives,
Applying product rule, the derivative of is
See how the derivative we just found matches , the left side of ? This is the magic of the integrating factor.
In other words, if we multiply our original linear differential equation by its integrating factor, the left side of the resulting equation will always be equal to
Which means, coming back to this example, that we can make a substitution, replacing the left side of the resulting equation with (Step 5), which gives
Once we have the equation in this form, we integrate both sides (Step 6). On the left, the integral and the derivative cancel out, since they are inverse operations.
We solve for , and find that the solution to the linear differential equation is
Let’s do one more example to show that this method works on another first order linear differential equation, but this time we’ll go a little faster.
Example
Solve the differential equation.
The equation is already in standard form for a linear differential equation, so we can identify and , and then use to find the integrating factor.
Multiply through the linear differential equation by the integrating factor.
We’ll replace the left side of the equation with ,
then integrate both sides of the equation, remembering that the integral and derivative will cancel each other.
Dividing both sides by to get by itself, we can say that the solution to the linear differential equation is
Once we have the equation in this form, we integrate both sides (Step 6). On the left, the integral and the derivative cancel out, since they are inverse operations.
Why the integrating factor solves linear equations
The most interesting part about solving these linear equations is the idea of the integrating factor, . Here’s the reason this special value helps us to solve linear differential equations. If we start with a simplified version of the standard form of a linear equation,
and then we multiply through by the integrating factor , we get
Now if we were somehow able to replace the left side of this equation with , the derivative of , then we would have
We could then integrate both sides of this,
and the derivative and integral operations would cancel each other on the left side, leaving us with just
We’d then be able to divide through by , and thereby quickly and easily find the solution to the linear differential equation,
Okay, it’s great that we’ve found a solution equation for , but we only got here by making the significant assumption that we could just replace the left side of with , and we can’t just change equations like this without some kind of justification.
If we’re going to do this, we need to show that it’s valid to say
Well, notice that the left side of this equation is the derivative of a product, which should make us think about the product rule for derivatives. If we treat as one function and as another, then the derivative of the product, , would be equal to
If we compare this equation to , we can see that they are perfectly identical, as long as
If we rewrite this equation and then separate variables (we’ll talk more about separating variables in a later lesson), we get
Integrating both sides gives
This is how we build the formula for the integrating factor. We’ve shown why it’s the special function that, when we use it to multiply through the linear differential equation, it gives us a really easy way to find the solution to that linear equation.