




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Robert E. Terrell
Students of science and engineering often encounter a gap between their calculus text and the applied mathematical books they need to read soon after. What is that gap? A calculus student might have learned some calculus without learning how to read mathematics. A science major might be faced with an applied text which assumes the ability to read a somewhat encyclopedic mathematics and its application. I often find myself teaching students who are somewhere between these two states.
These notes are mostly from lectures I have given to bridge that gap, while teaching the Engineering Mathematics courses at Cornell University. The notes could be used for an introductory unified course on ordinary and par- tial differential equations. However, this is not a textbook in the usual sense, and certainly not a reference. The stress is on clarity, not completeness. It is an introduction and an invitation. Most ideas are taught by example. The notes have been available for many years from my web page.
For fuller coverage, see any of the excellent books:
Some of the exercises have the format “What’s rong with this?”. These are either questions asked by students or errors taken from test papers of students in this class, so it could be quite beneficial to study them.
Robert E. Terrell
January 1997 September 2005 April 2009
i
Today: An example involving your bank account, and nice pictures called slope fields. How to read a differential equation.
Welcome to the world of differential equations! They describe many pro- cesses in the world around you, but of course we’ll have to convince you of that. Today we are going to give an example, and find out what it means to read a differential equation.
A differential equation is an equation which contains an unknown function and one of its unknown derivatives. Here is a differential equation.
dy dt =. 028 y
It doesn’t look too exciting does it? Really it is, though. It might for example represent your bank account, where the balance is y at a time t years after you open the account, and the account is earning 2.8% interest. Regardless of the specific interpretation, let’s see what the equation says. Since we see the term dy/dt we can tell that y is a function of t, and that the rate of change is a multiple, namely .028, of the value of y itself. We definitely should always write y(t) instead of just y, and we will sometimes, but it is traditional to be sloppy.
For example, if y happens to be 2000 at a particular time t, the rate of change of y is then .028(2000) = 56, and the units of this rate in the bank account case are dollars/year. Thus y is increasing, whenever y is positive.
Practice: What do you estimate the balance will be, roughly, a year from now, if it is 2000 and is growing at 56 dollars/year? This is not supposed to be a hard question. By the way, when I ask a question, don’t cheat yourself by ignoring it. Think about it, and future things will be easier. I promise.
Later when y is, say, 5875.33, its rate of change will be .028(5875.33) = 164 .509 which is much faster. We’ll sometimes refer to y′^ =. 028 y as the banker’s equation.
Do you begin to see how you can get useful information from a differential equation fairly easily, by just reading it carefully? One of the most important skills to learn about differential equations is how to read them. For example in the equation y′^ =. 028 y − 10
there is a new negative influence on the rate of change, due to the −10. This −10 could represent withdrawals from the account.
Practice: What must be the units of the −10?
Whether the resulting value of y′^ is actually negative depends on the current value of y. That is an example of “reading” a differential equation. As a result of this reading skill, you can perhaps recognize that the banker’s equation is very idealized: It does not account for deposits or changes in interest rate. It didn’t account for withdrawals until we appended the −10, but even that is an unrealistic continuous rate of withdrawal. You may wish to think about how the equation might be modified to include those things more realistically.
It is significant that you can make graphs of the solutions sometimes. In the bank account problem we have already noticed that the larger y is, the greater the rate of increase. This can be displayed by sketching a “slope field” as in Figure 1.1. Slope fields are done as follows. First, the general form of a differential equation is
y′^ = f (y, t)
where y(t) is the unknown function, and f is given. To make a slope field for this equation, choose some points (y, t) and evaluate f there. According to the differential equation, these numbers must be equal to the derivative y′, which is the slope for the graph of the solution. These resulting values of y′^ are then plotted using small line segments to indicate the slopes. For example, at the point t = 6, y = 20, the equation y′^ =. 028 y says that the slope must be .028(20) = .56. So we go to this point on the graph and place a mark having this slope. Solution curves then must be tangent to the slope marks. This can be done by hand or computer, without solving the differential equation.
Some kinds of answers in math and science can’t be checked very well, but these can, so do it. Even guessing answers is a highly respected method! if you check them.
Your healthy scepticism may be complaining to you at this point about any bank account which grows exponentially. If so, good. It is clearly impossible for anything to grow exponentially forever. Perhaps it is reasonable for a limited time. The hope of applied mathematics is that our models will be idealistic enough to solve while being realistic enough to be worthwhile.
The last point we want to make about this example concerns the constant c 1 further. What is the amount of money you originally deposited, y(0)? Do you see that it is the same as c 1? That is because y(0) = c 1 e^0 and e^0 = 1. If your original deposit was 300 dollars then c 1 = 300. This value y(0) is called an “initial condition”, and serves to pick the solution we are interested in out from among all those which might be drawn in Figure 1.1.
Example: Be sure you can do the following kind x′^ = − 3 x x(0) = 5 Like before, we get a solution x(t) = ce−^3 t. Then x(0) = 5 = ce^0 = c so c = 5 and the answer is x(t) = 5e−^3 t Check it to be absolutely sure.
Problems
−2 0 2 4 6 8
−
−
−
0
1
2
3
x’ = x^2−sin(t)
t
x
Figure 1.2 The slope field for Problem 2, as drawn by dfield.
Today: A gallery is a place to look and to get ideas, and to find out how other people view things.
Here is a list of differential equations, as a preview of things to come. Unlike the banker’s equation y′^ = 0. 028 y, not all differential equations are about money.
somewhat rigid, not like a drum head, then the sound which comes out is caused by vibrations of the wood, and these are described by solutions of utt = −(uxxxx + 2uxxyy + uyyyy). Here u(x, y, t) is the vertical deflection of the table top while it bends and vibrates. Can you imagine that happening at a small scale? We will in fact do a related equation utt = −uxxxx for vibrations of a beam in Lecture 31.
At a much smaller scale, the behavior of electrons in an atom is described by Schr¨odinger’s equation iut = −(uxx + uyy + uzz ) +V (x, y, z)u. In this case, u(x, y, z, t) is related to the probability that the electron is at (x, y, z) at time t. At the other end of the scale there is an equation we won’t write down, but which was worked out by Einstein. Not E = mc^2 , but a differential equation. That must be why Einstein is so famous. He wrote down a differential equation for the whole universe.
Problems
Today: A first order partial differential equation.
Here is a partial differential equation, sometimes called a transport equation, and sometimes called a wave equation.
∂w ∂t
∂w ∂x
Practice: We remind you that partial derivatives are the rates of change holding all but one variable fixed. For example ∂ ∂t
x − y^2 x + 2yt ´ = 2y, (^) ∂x∂ x − y^2 x + 2yt ´ = 1 − y^2 What is the y partial?
Our PDE is abbreviated wt + 3wx = 0
You can tell by the notation that w is to be interpreted as a function of both t and x. You can’t tell what the equation is about. We will see that it can describe certain types of waves. There are water waves, electromag- netic waves, the wavelike motion of musical instrument strings, the invisible pressure waves of sound, the waveforms of alternating electric current, and others. This equation is a simple model.
Practice: You know from calculus that increasing functions have positive derivatives. In Figure 3.1 a wave shape is indicated as a function of x at one particular time t. Focus on the steepest part of the wave. Is wx positive there, or negative? Next, look at the transport equation. Is wt positive there, or negative? Which way will the steep profile move next? Remember how important it is to read a differential equation.
We’ll derive the equation as one model for conservation of mass. You might feel that the derivation of the equation is harder than the solving of the equation.
We imagine that w represents the height of a sand dune which moves by the wind, along the x direction. The assumption is that the sand blows along the surface, crossing position (x, w(x, t)) at a rate proportional to w. The proportionality factor is taken to be 3, which has dimensions of velocity, like the wind.
a a+h
w
Figure 3.1 The wind blows sand along the surface. Some enters the segment (a, a+h) from the left, and some leaves at the right. The net difference causes changes in the height of the dune there.
The law of conservation of sand says that over each segment (a, a + h) you have d dt
∫ (^) a+h
a
w(x, t) dx = 3w(a, t) − 3 w(a + h, t)
Practice: Find all solutions to our wave equation of the form w(x, t) = c cos(ax + bt)
So far, we have seen a lot of solutions to our transport equation. Here are a few of them:
w(x, t) = x − 3 t w(x, t) = − 2. 1 x + 6. 3 t w(x, t) = 40 cos(5x − 15 t) w(x, t) = −
cos(8x − 24 t)
For comparison, that is a lot more variety than we found for the banker’s equation. Remember that the only solutions to the ODE y′^ =. 028 y are constant multiples of e^0.^028 t. Now lets go out on a limb. Since our wave equation allows straight lines of all different slopes and cosines of all different frequencies and amplitudes, maybe it also allows other things too.
Try w(x, t) = f (x − 3 t)
where we won’t specify the function f yet. Without specifying f any further, we can’t find the derivatives we need in any literal sense, but can apply the chain rule anyway. The intention here is that f ought to be a function of one variable, say s, and that the number x − 3 t is being inserted for that variable, s = x − 3 t. The partial derivatives are computed using the chain rule, because we are composing f with the function x − 3 t of two variables. The chain rule here looks like this:
wt = ∂w ∂t
df ds
∂s ∂t
= − 3 f ′(x − 3 t)
Practice: Figure out why wx = f ′(x − 3 t).
Setting those into the transport equation we get
wt + 3wx = − 3 f ′^ + 3f ′^ = 0
That is interesting. It means that any differentiable function f gives us a solution. Any dune shape is allowed. You see, it doesn’t matter at all what f is, as long as it is some differentiable function.
Don’t forget: differential equations are a model of the world. They are not the world itself. Real dunes cannot have just any shape f whatsoever. They are more specialized than our model.
Practice: Check the case f (s) = 22 sin(s) − 10 sin(3s). That is, verify that w(x, t) = 22 sin(x − 3 t) − 10 sin(3x − 9 t) is a solution to our wave equation.
Problems
yt − 5 yx = 0
and tell which direction the waves move, and how fast.
Figure 4.1 A slope field for the Logistic Equation. Note that solutions starting near 0 have about the same shape as exponentials until they get near a. (figure made using dfield)
The solutions which begin with initial conditions between 0 and a evidently grow toward a as a limit. This in fact can be verified by finding an explicit formula for the solution. Proceeding much as we did for the bank account problem, first write 1 ay − y^2 dy = dt
To make this easier to integrate, we’ll use a trick which was discovered by a student in this class, and multiply first by y−^2 /y−^2. Then integrate ∫ y−^2 ay−^1 − 1 dy =
dt
a ln(ay−^1 − 1) = t + c
The integral can be done without the trick, using partial fractions, but that is longer. Now solve for y(t)
ay−^1 − 1 = e−a(t+c)^ = c 1 e−at
y(t) =
a 1 + c 1 e−at
These manipulations would be somewhat scary if we had not specified that we are interested in y values between 0 and a. For example, the ln of a negative number is not defined. However, we emphasize that the main point is to check any formulas found by such manipulations. So let’s check it:
y′^ =
a^2 c 1 e−at (1 + c 1 e−at)^2
We must compare this expression to
ay − y^2 =
a^2 1 + c 1 e−at^
a^2 (1 + c 1 e−at)^2 = a^2
(1 + c 1 e−at) − 1 (1 + c 1 e−at)^2
You can see that this matches y′. Note that the value of c 1 is not restricted to be positive, even though the derivation above may have required it. We have seen this kind of thing before, so checking is very important. The only restriction here occurs when the denominator of y is 0, which can occur if c 1 is negative. If you stare long enough at y you will see that this does not happen if the initial condition is between 0 and a, and that it restricts the domain of definition of y if the initial conditions are outside of this interval. All this fits very well with the slope field above. In fact, there is only one solution to the equation which is not contained in our formula.
Practice: Can you see what it is?
Problems
Example: Census data for 1810, 1820, and 1830 show populations of 7.2, 9.6, and 12.8 million. Trying those, it turned out that I couldn’t fit the numbers due to the numerical coincidence that (7.2)(12.8) = (9.6)^2. That is where I switched to the years in Problem 3. This shows that the fitting of real data to a model is nontrivial. Mathematicians like the word ‘nontrivial’.
Today: Various useful examples.