Docsity

Differential Equations: A Comprehensive Guide to Solving and Understanding, Study notes of Algebra

Partial preview of the text

Download Differential Equations: A Comprehensive Guide to Solving and Understanding and more Study notes Algebra in PDF only on Docsity!

Notes on Differential Equations

Robert E. Terrell

Preface

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:

  • Agnew, Ralph Palmer, Differential Equations, McGraw–Hill, 1960
  • Churchill, Ruel V., Fourier Series and Boundary Value Problems, Mc- Graw Hill, 1941
  • Hubbard, John H., and West, Beverly H.,Differential Equations, a Dynamical Systems Approach, Parts 1 and 2, Springer, 1995 and 1996
  • Lax, P., Burstein, S., and Lax, A., Calculus with Applications and Computing: Vol 1, Springer, 1983
  • Seeley, Robert T., An Introduction to Fourier Series and Integrals, W.A.Benjamin, 1966

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

1 Introduction to Ordinary Differential Equations

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.

1.1 The Banker’s 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.

1.2 Slope Fields

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

  1. Make slope fields for x′^ = x, x′^ = −x, x′^ = x + t, x′^ = −x + cos t, x′^ = t.
  2. Sketch some solution curves onto the given slope field in Figure 1.2 below.
  3. What general fact do you know from calculus about the graph of a function y if y′^ > 0? Apply this fact to any solution of y′^ = y − y^3 : consider cases where the values of y lie in each of the intervals (−∞, −1),(− 1 , 0), (0, 1), and (1, ∞). For each interval, state whether y is increasing or decreasing.
  4. (continuing 3.) If y′^ = y − y^3 and y(0) = 12 , what do you think will be the limt→∞ y(t)? Make a slope field if you’re not sure.
  5. Reconsider the banker’s equation y′^ =. 028 y. If the interest rate is 3% at the beginning of the year and expected to rise linearly to 4% over the next two years, what would you replace .028 with in the equation? You are not asked to solve the equation.
  6. In y′^ =. 028 y−10, suppose the withdrawals are changed from $10 per year continuously, to $200 every other week. What could you replace the −10 by? This is a difficult rhetorical question only– something to think about. Do you think it would be alright to use a smooth function of the form a cos bt to approximate the withdrawals?

−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.

2 A Gallery of Differential Equations

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.

  1. y′^ = .028(600 − y) This equation is a model for the heating of a pizza in a 600 degree oven. Of course the 0.028 is there just for comparison with the banker’s interest. The physical law involved is called, believe it or not, “Newton’s Law of Cooling”. We’ll do it in Lecture 8.
  2. Newton had other laws as well, one of them being the “F = ma” law of inertia. You might have seen this in a physics class, but not realised that it is a differential equation. That is because it concerns the unknown position of a mass, and the second derivative a, of that position. In fact, the original differential equation, the very first one over 300 years ago, was made by Newton for the case in which F was the gravity force between the earth and moon, and m was the moon’s mass. Before that, nobody knew what a differential equation was, and nobody knew that gravity had anything to do with the motion of the moon. They thought gravity was

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

  1. Newton’s gravity law says that the force between a big mass at the origin of the x axis and a small mass at point x(t) is proportional to x−^2. How would you write the F = ma law for that as a differential equation?
  2. We don’t have much experience with the fourth derivatives mentioned above. Let u(x, t) = t^2 x^2 − x^3 + x^4. Is uxxxx positive or negative? Does this depend on the value of x?
  3. In case you didn’t do the Practice item, what functions do you know about from calculus, that are equal to their second derivative? the negative of their second derivative?

3 Introduction to Partial Differential Equations

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.

3.1 A Conservation Law

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

  1. Work all the Practice items in this lecture if you have not done so yet.
  2. Find a lot of solutions to the wave equation

yt − 5 yx = 0

and tell which direction the waves move, and how fast.

  1. Check that w(x, t) = 1/(1 + (x − 3 t)^2 ) is one solution to the equation wt + 3wx = 0.
  2. What does the initial value w(x, 0) look like in problem 3, if you graph it as a function of x?
  3. Sketch the profile of the dune shapes w(x, 1) and w(x, 2) in problem 3. What is happening? Which way is the wind blowing? What is the velocity of the dune? Can you tell the velocity of the wind?
  4. Solve ut + ux = 0 if we also want to have the initial condition u(x, 0) = 15 cos(2x).
  5. As in problem 6, but with initial condition u(x, 0) = 15 cos(2x) + 17 sin(4x). Sketch the wave shape for several times.

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

  1. Suppose that we have a solution y(t) for the logistic equation y′^ = y(a − y). Choose some time delay, say 3 time units to be specific, and set z(t) = y(t − 3). Is z(t) also a solution to the logistic equation?
  2. The three ’S’-shaped solution curves in Figure 4.1 all appear to be exactly the same shape. In view of Problem 1, are they?
  3. Prof. Verhulst made the logistic model in the mid-1800s. The US census data from the years 1800, 1820, and 1840, show populations of about 5.3, 9.6, and 17 million. We’ll need to choose some time scale t 1 in our solution y(t) = a(1 + c 1 e−at)−^1 so that t = 0 means 1800, t = t 1 means 1820, and t = 2t 1 means 1840. Figure out c 1 , t 1 , and a to match the historical data. warning: The arithmetic is very long. It helps if you use the fact that e−a·^2 t^1 = (e−at^1 )^2. answer: c 1 = 36.2, t 1 = .0031, and a = 197.
  4. Using the result of Problem 3, what population do you predict for the year 1920? The actual population in 1920 was 106 million. The Professor was pretty close wasn’t he? He was probably surprised to predict a whole century.

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’.

5 Separable Equations

Today: Various useful examples.