Skip to content

0205 Modeling by First Order Linear ODE's

Introduction

If we have a DE which models a situation involving a physical quantity then solving the DE means finding the unknown function . Knowing the possible solutions allows to understand the physical system. Of course someone needs to build the DE doing the modeling. In this note we will see how to do this for some real systems.

The savings account model

Modeling a savings account gives a good way to understand the significance of many of the features of a general first order linear ordinary differential equation.
Write for the number of dollars in the account at time . It accrues interest at an interest rate . The interest rate has units of percent/year. The more money in the account the more interest you earn. At the end of an interest period of years (e.g. , or ) the bank adds dollars to your account. This means the change in your account is has units of . Mathematicians and some bankers like to take things to the limit. Rewrite our equation as and suppose that the interest period is made to get smaller and smaller. In the limit as , we get the differential equation One of the beautiful facts about this type of modeling is that it covers more complicated situations. In our computation, there was no assumption that the interest rate was constant in time; it could well be a function of time, . In fact it could have been a function of both time and the existing balance, . Banks often do make such a dependence - you get a better interest rate if you have a bigger bank account. If is involved, however, the equation is what is called nonlinear and we will not consider that case in this session.
Now suppose we make contributions to this savings account. We'll record this by giving the rate of savings, . This rate has units dollars per year, so if you contribute every month then the monthly payments will be with . This payment also adds to your account, so, when we divide by and take the limit, we get Once again, your rate of payment into the account may not be constant in time; we might have a function . Also, we can allow to be negative, which corresponds to withdrawing money from the account.
What we have, then, is the general first order linear ODE:

Linear insulation

Here is another example of a linear ODE. The linear model here is not as precise as in the bank account example.
A cooler insulates my lunchtime root beer against the warmth of the day, but ultimately heat penetrates. Let's see how you might come up with a mathematical model for this process. You can jump right to equation if you want, but we would like to spend a some time talking about how one might get there, so that you can carry out the analogous process to model other situations.
The first thing to do is to identify relevant parameters and give them names. Let's write for the time variable, for the temperature inside the cooler, and for the temperature outside.
Let's assume that the insulating properties of the cooler don't change over time. (We're not going to watch this process for so long that the aging of the cooler itself becomes important!) However, the insulating properties probably do depend on the inside and outside temperatures. Insulation affects the rate of change of the temperature: the rate of change at time of temperature inside depends upon the temperatures inside and outside at time . This gives us a first order differential equation of the form Now it's time for the next simplifying assumption, namely that this rate of change depends only on the difference between the temperatures, and not on the temperatures themselves. This means that for some function of one variable. If the temperature inside the cooler equals the temperature outside, we expect no change. This means that .
Now, any reasonable function has a tangent line approximation, and since we have That is, when is fairly small, is fairly close to . (From calculus you know that , but we won't use that here.) When we replace by in the differential equation, we are linearizing the equation. We get the ODE The final assumption we are making, in justifying this last simplification, is that we will only use the equation when is reasonably small - small enough so that the tangent line approximation is reasonably good. For large temperature differences the linearized model will not generally give realistic results.
We can write this equation as This is Newton's law of cooling.
The constant is called the coupling constant. It mediates between the two temperatures. It will be large if the insulation is poor, and small if it's good. If the insulation is perfect, then . The factor of on the right might seem odd, but it you can see that it is forced on us by checking units: the left hand side is measured in degrees per hour, so must be measured in units of .
We can see some general features of insulating behavior from this equation. For example, the times at which the inside and outside temperatures coincide are the times at which the inside temperature is at a critical point: