Introduction to Differential Equations
We now come to one of the most widely-used areas in all of mathematics: differential equations. Of course, you may go on to take an entire course (or several) in differential equations, but we've gotten to the point where we can discuss them, and I believe that the more you see of these before going into those courses, the more prepared you'll be. The natural first question, of course, is: what is a differential equation? As the name suggests, it's an equation involving a derivative. For instance, is a differential equation.
We can use this simple example to get an idea of our goal. Notice, first of all, that the equation involves and its derivative, so must be a function. Therefore, there's an implied independent variable (usually or ). Also, notice that all we're given is a relationship between this function and its derivative; we're not told explicitly what the function is. This brings us to our goal: our goal is to figure out what this function is. In Calc I, we were given a function and asked to find its derivative. In Calc II, much of our effort has been spent in reversing this process; given a derivative, we integrate to find the function. A differential equation is related, but it's different than either: here we're not given the function or its derivative, but rather a relationship between them, and we want to find the function
I should warn you of a common rookie mistake: you might be tempted to do the following:
Although this actually looks similar to a method that we'll see later for solving differential equations, it's not valid. Can you spot the error? Notice that in doing this, we tried to integrate with respect to which of course is wrong, since is an unknown function of (or possibly but what we name the independent variable is irrelevant). Thus, we cannot integrate with respect to making this integral meaningless. I caution you to avoid this mistake.
Solution to this example
What, then, is this function ? You may have spotted the answer already, but if not, let me rephrase the problem: what function is equal to its derivative? The answer should be clear now; the only function that works is the exponential function. If then so . In fact, the general solution (we'll get to specific solutions later) to this problem is
When we get to actually solving differential equations later, we want to take advantage of the fact that we can (as we did here) check our answer by plugging it back into the differential equation and verifying it.
In general, we don't study differential equations for their own sake (although I must confess that I find them to be very fun), but rather because they are tremendously applicable. Whenever you study something that you'd like to model, and you find something out about how it is changing over time, there's a differential equation buried there. To illustrate this, I'll go through a few examples, showing differential equations that are associated with different applications. I'll give you the solutions for some, but for others we'll simply make a few observations. Don't worry if this isn't perfectly clear at the moment; if you'd like, you can come back and reread this section after you've gotten more comfortable with differential equations. No doubt it will be clearer then.
Suppose we want to measure some population over time. This could be the population of a city, a country, the world, or the population of deer in a forest. Let's call this unknown function One simple observation we can make is that the rate of change of the population depends on the size of the population, because a larger population will have more offspring and thus grow faster.
A simple model assumes that the rate of change of the population is simply proportional to the size of the population (thus, it equals a constant multiple of the population size):
Clearly, if is positive, the rate of change is positive, so the population is increasing; if is negative, the population is shrinking. Without going into how to solve this one (that will come in later sections), I'll tell you that the solution is
We can check this:
This model is a good place to start, but it's far too simplistic to be of long-term use; looking at the graph above, it is clear that this model predicts that the population will increase without bound, which ingnores the presence of limiting factors. In reality, limited resources will lead to a slowing in the growth of the population.
Better (more complicated) Model
Let's take a look at a slightly more complicated model of population growth. This one will take these limitations into account: for some positive constants and
We won't see the details of the solution to this one, for sake of simplicity at this stage, but we can make one observation: we can see when the population will be growing and when it will be shrinking. Since and are all positive, will be positive as long as is positive, and will be negative when is negative. Rearranging terms to solve for :
Therefore, whenever the population is below a certain point ( to be precise), the population is growing, but if the population is higher than that point, it will shrink. If the population is exactly equal to that value, will equal , so the population will remain unchanged.
For example, in the graph above, this limiting value is If the population starts below this value, it increases toward it; if the population starts above it, it decreases to this limit. In other words, this is the natural population level for this habitat.
Newton's Law of Cooling
Suppose you leave a hot cup of coffee on a counter; you know that the cup will cool down, but it will only cool to the temperature of its surroundings (we'll call this where stands for the medium, another word for surroundings). This represents the limiting value, similar to the limiting population value in the model above. Specifically, Newton's Law of Cooling looks like where is some positive constant (note: some people write this model without the negative sign, and let be a negative constant).
Here again, I'll show you the solution without describing how we find it (that'll have to wait until we have some methods for solving diff eq). The solution is where is the initial temperature. Let's check the solution; this can be hard to keep track of algebraically, but we'll do so by finding and and showing that these are equal.
Spread of Epidemics
One model for measuring the spread of epidemics tracks the members of the population who are infected and those who are susceptible (including the infected). Obviously, there are many complexities that can be added, from whether someone who survives can be re-infected or develops an immunity to whether or not a vaccine exists. However, our simple model assumes that the number of infected changes in proportion to the product of those who are and those who aren't but could be: where is the rate of infection.
Newton's Second Law of Motion
Recall: Newton's Second Law of Motion states that the force on an object is proportional to the acceleration of that body, where the constant of proportionality is its mass (as long as mass is constant):
Consider a simple vibration model (like a car's suspension). There are three basic components to this model: a mass, a spring, and a damper. The damper (a shock) behaves like a simple bicycle pump: if you've ever used one, it shouldn't be surprising that the force on the damper is proportional to the speed with which it is traveling (). And we've already seen that the spring force is proportional to the displacement Therefore, according to Newton's Second Law, the sum of the damper force, spring force, and possibly some external force equal the mass times acceleration:
Note that the spring and damper forces are both negative, since they both act in opposition to the motion.
Rearranging the terms:
This is the first example we've seen of a second-order differential equation; this one involves the second derivative of At the end of this unit, we'll learn how to solve second-order equations like this one.
In general, a differential equation involves an unknown function (or several) and its (or their) derivative(s). The highest-order derivative in the equation gives the order of the diff eq (meaning that all of the examples in this section except for the last were first order). Although we'll learn some methods to solve simple diff eq, you should know that the majority of these equations do not yield to these analytical methods. We'll shortly get to other ways of analyzing differential equations that we can't explicitly solve.
Our goal is to find this unknown function, or if that isn't possible, to analyze it more qualitatively.
Initial Value Problems
Let's go back to the simple population growth model:
I pointed out that this solution is the general solution. So what's a specific solution? This general solution is really a family of solutions, where different values of give different specific solutions. The key is that the value of this constant can be found if we know the initial value. If the population when is then so the specific solution is
This is an example of an initial value problem. In general, when we solve a differential equation, we'll find the general solution, which will contain one or more arbitrary constants (specifically, a second order diff eq will have two constants, etc.), and to find a specific solution, we'll need an initial condition like this.