In this section we need to take a look at the equation of a line in R 3 R 3 . As we saw in the previous section the equation y = m x + b y = m x + b does not describe a line in R 3 R 3 , instead it describes a plane. This doesn’t mean however that we can’t write down an equation for a line in 3-D space. We’re just going to need a new way of writing down the equation of a curve. So, before we get into the equations of lines we first need to briefly look at vector functions. We’re going to take a more in depth look at vector functions later. At this point all that we need to worry about is notational issues and how they can be used to give the equation of a curve. The best way to get an idea of what a vector function is and what its graph looks like is to look at an example. So, consider the following vector function. → r ( t ) = ⟨ t , 1 ⟩ r → ( t ) = ⟨ t , 1 ⟩ A vector function is a function that takes one or more variables, one in this case, and returns a...
Linear Differential Equations
The first special case of first order differential equations that we will look at is the linear first order differential equation. In this case, unlike most of the first order cases that we will look at, we can actually derive a formula for the general solution. The general solution is derived below. However, we would suggest that you do not memorize the formula itself. Instead of memorizing the formula you should memorize and understand the process that I'm going to use to derive the formula. Most problems are actually easier to work by using the process instead of using the formula.
So, let's see how to solve a linear first order differential equation. Remember as we go through this process that the goal is to arrive at a solution that is in the form . It's sometimes easy to lose sight of the goal as we go through this process for the first time.
In order to solve a linear first order differential equation we MUST start with the differential equation in the form shown below. If the differential equation is not in this form then the process we’re going to use will not work.
Where both and are continuous functions. Recall that a quick and dirty definition of a continuous function is that a function will be continuous provided you can draw the graph from left to right without ever picking up your pencil/pen. In other words, a function is continuous if there are no holes or breaks in it.
Now, we are going to assume that there is some magical function somewhere out there in the world, , called an integrating factor. Do not, at this point, worry about what this function is or where it came from. We will figure out what is once we have the formula for the general solution in hand.
So, now that we have assumed the existence of multiply everything in by . This will give.
Now, this is where the magic of comes into play. We are going to assume that whatever is, it will satisfy the following.
Again do not worry about how we can find a that will satisfy . As we will see, provided is continuous we can find it. So substituting we now arrive at.
At this point we need to recognize that the left side of is nothing more than the following product rule.
So we can replace the left side of with this product rule. Upon doing this becomes
Now, recall that we are after . We can now do something about that. All we need to do is integrate both sides then use a little algebra and we'll have the solution. So, integrate both sides of to get.
Note the constant of integration, , from the left side integration is included here. It is vitally important that this be included. If it is left out you will get the wrong answer every time.
The final step is then some algebra to solve for the solution, .
Now, from a notational standpoint we know that the constant of integration, , is an unknown constant and so to make our life easier we will absorb the minus sign in front of it into the constant and use a plus instead. This will NOT affect the final answer for the solution. So with this change we have.
Again, changing the sign on the constant will not affect our answer. If you choose to keep the minus sign you will get the same value of as we do except it will have the opposite sign. Upon plugging in we will get exactly the same answer.
There is a lot of playing fast and loose with constants of integration in this section, so you will need to get used to it. When we do this we will always to try to make it very clear what is going on and try to justify why we did what we did.
So, now that we’ve got a general solution to we need to go back and determine just what this magical function is. This is actually an easier process than you might think. We’ll start with .
Divide both sides by ,
Now, hopefully you will recognize the left side of this from your Calculus I class as nothing more than the following derivative.
As with the process above all we need to do is integrate both sides to get.
You will notice that the constant of integration from the left side, , had been moved to the right side and had the minus sign absorbed into it again as we did earlier. Also note that we’re using here because we’ve already used and in a little bit we’ll have both of them in the same equation. So, to avoid confusion we used different letters to represent the fact that they will, in all probability, have different values.
Exponentiate both sides to get out of the natural logarithm.
Now, it’s time to play fast and loose with constants again. It is inconvenient to have the in the exponent so we’re going to get it out of the exponent in the following way.
Now, let’s make use of the fact that is an unknown constant. If is an unknown constant then so is so we might as well just rename it and make our life easier. This will give us the following.
So, we now have a formula for the general solution, , and a formula for the integrating factor, . We do have a problem however. We’ve got two unknown constants and the more unknown constants we have the more trouble we’ll have later on. Therefore, it would be nice if we could find a way to eliminate one of them (we’ll not be able to eliminate both….).
This is actually quite easy to do. First, substitute into and rearrange the constants.
So, can be written in such a way that the only place the two unknown constants show up is a ratio of the two. Then since both and are unknown constants so is the ratio of the two constants. Therefore we’ll just call the ratio and then drop out of since it will just get absorbed into eventually.
The solution to a linear first order differential equation is then
where,
Now, the reality is that is not as useful as it may seem. It is often easier to just run through the process that got us to rather than using the formula. We will not use this formula in any of out examples. We will need to use regularly, as that formula is easier to use than the process to derive it.
Solution Process
The solution process for a first order linear differential equation is as follows.
- Put the differential equation in the correct initial form, .
- Find the integrating factor, , using .
- Multiply everything in the differential equation by and verify that the left side becomes the product rule and write it as such.
- Integrate both sides, make sure you properly deal with the constant of integration.
- Solve for the solution .
Let’s work a couple of examples. Let’s start by solving the differential equation that we derived back in the Direction Field section.
From the solution to this example we can now see why the constant of integration is so important in this process. Without it, in this case, we would get a single, constant solution, . With the constant of integration we get infinitely many solutions, one for each value of .
Example 1 Find the solution to the following differential equation.
First, we need to get the differential equation in the correct form.
From this we can see that and so is then.
Note that officially there should be a constant of integration in the exponent from the integration. However, we can drop that for exactly the same reason that we dropped the from .
Now multiply all the terms in the differential equation by the integrating factor and do some simplification.
Integrate both sides and don't forget the constants of integration that will arise from both integrals.
Okay. It’s time to play with constants again. We can subtract from both sides to get.
Both and are unknown constants and so the difference is also an unknown constant. We will therefore write the difference as . So, we now have
From this point on we will only put one constant of integration down when we integrate both sides knowing that if we had written down one for each integral, as we should, the two would just end up getting absorbed into each other.
The final step in the solution process is then to divide both sides by or to multiply both sides by . Either will work, but we usually prefer the multiplication route. Doing this gives the general solution to the differential equation.
From this we can see that and so is then.
Note that officially there should be a constant of integration in the exponent from the integration. However, we can drop that for exactly the same reason that we dropped the from .
Now multiply all the terms in the differential equation by the integrating factor and do some simplification.
Integrate both sides and don't forget the constants of integration that will arise from both integrals.
Okay. It’s time to play with constants again. We can subtract from both sides to get.
Both and are unknown constants and so the difference is also an unknown constant. We will therefore write the difference as . So, we now have
From this point on we will only put one constant of integration down when we integrate both sides knowing that if we had written down one for each integral, as we should, the two would just end up getting absorbed into each other.
The final step in the solution process is then to divide both sides by or to multiply both sides by . Either will work, but we usually prefer the multiplication route. Doing this gives the general solution to the differential equation.
From the solution to this example we can now see why the constant of integration is so important in this process. Without it, in this case, we would get a single, constant solution, . With the constant of integration we get infinitely many solutions, one for each value of .
Back in the direction field section where we first derived the differential equation used in the last example we used the direction field to help us sketch some solutions. Let's see if we got them correct. To sketch some solutions all we need to do is to pick different values of to get a solution. Several of these are shown in the graph below.
So, it looks like we did pretty good sketching the graphs back in the direction field section.
Now, recall from the Definitions section that the Initial Condition(s) will allow us to zero in on a particular solution. Solutions to first order differential equations (not just linear as we will see) will have a single unknown constant in them and so we will need exactly one initial condition to find the value of that constant and hence find the solution that we were after. The initial condition for first order differential equations will be of the form
Recall as well that a differential equation along with a sufficient number of initial conditions is called an Initial Value Problem (IVP).
Example 2 Solve the following IVP.
To find the solution to an IVP we must first find the general solution to the differential equation and then use the initial condition to identify the exact solution that we are after. So, since this is the same differential equation as we looked at in Example 1,we already have its general solution.
Now, to find the solution we are after we need to identify the value of that will give us the solution we are after. To do this we simply plug in the initial condition which will give us an equation we can solve for . So, let's do this
So, the actual solution to the IVP is.
A graph of this solution can be seen in the figure above.
Now, to find the solution we are after we need to identify the value of that will give us the solution we are after. To do this we simply plug in the initial condition which will give us an equation we can solve for . So, let's do this
So, the actual solution to the IVP is.
A graph of this solution can be seen in the figure above.
Let’s do a couple of examples that are a little more involved.
Example 3 Solve the following IVP.
Rewrite the differential equation to get the coefficient of the derivative a one.
Now find the integrating factor.
Can you do the integral? If not rewrite tangent back into sines and cosines and then use a simple substitution. Note that we could drop the absolute value bars on the secant because of the limits on . In fact, this is the reason for the limits on . Note as well that there are two forms of the answer to this integral. They are equivalent as shown below. Which you use is really a matter of preference.
Also note that we made use of the following fact.
This is an important fact that you should always remember for these problems. We will want to simplify the integrating factor as much as possible in all cases and this fact will help with that simplification.
Now back to the example. Multiply the integrating factor through the differential equation and verify the left side is a product rule. Note as well that we multiply the integrating factor through the rewritten differential equation and NOT the original differential equation. Make sure that you do this. If you multiply the integrating factor through the original differential equation you will get the wrong solution!
Integrate both sides.
Note the use of the trig formula that made the integral easier. Next, solve for the solution.
Finally, apply the initial condition to find the value of .
The solution is then.
Below is a plot of the solution.
Now find the integrating factor.
Can you do the integral? If not rewrite tangent back into sines and cosines and then use a simple substitution. Note that we could drop the absolute value bars on the secant because of the limits on . In fact, this is the reason for the limits on . Note as well that there are two forms of the answer to this integral. They are equivalent as shown below. Which you use is really a matter of preference.
Also note that we made use of the following fact.
This is an important fact that you should always remember for these problems. We will want to simplify the integrating factor as much as possible in all cases and this fact will help with that simplification.
Now back to the example. Multiply the integrating factor through the differential equation and verify the left side is a product rule. Note as well that we multiply the integrating factor through the rewritten differential equation and NOT the original differential equation. Make sure that you do this. If you multiply the integrating factor through the original differential equation you will get the wrong solution!
Integrate both sides.
Note the use of the trig formula that made the integral easier. Next, solve for the solution.
Finally, apply the initial condition to find the value of .
The solution is then.
Below is a plot of the solution.
Comments
Post a Comment