math 104. differential equations the most important application of integrals is to the solution of...
Post on 19-Dec-2015
224 views
TRANSCRIPT
Math 104Math 104
Differential EquationsDifferential Equations
•The most important application of integrals is to the solution of differential equations.
•From a mathematical point of view, a differential equation is an equation that describes a relationship among a function, its independent variable, and the derivative(s) of the function.
For example:For example:
23xydx
dy
1342
2
ydx
dy
dx
yd
ORDER = highest derivative: first order, second order...
To To solvesolve a differential equation: a differential equation:
…means to find a function y(x) that makes it true.
23
2
xy solves
23xydx
dy
31 xey solves 134
2
2
ydx
dy
dx
yd
In ApplicationsIn Applications
Differential equations Differential equations arise when we can relate arise when we can relate
the rate of change of some the rate of change of some quantity back to the quantity back to the
quantity itself.quantity itself.
The acceleration of gravity is constant (near the surface of the earth). So, for falling objects:
the rate of change of velocity is constant
Example (#1)Example (#1)
Since velocity is the rate of change of position, we could write a second order equation:
gdt
dv
gdt
xd
2
2
2kvgdt
dv
Example (#2)Example (#2)Here's a better one -- with air resistance, the acceleration of a falling object is the acceleration of gravity minus the acceleration due to air resistance, which for some objects is proportional to the square of the velocity. For such an object we have the differential equation:
rate of change of velocity is
gravity minus
something proportional to velocity squared
oror
2
2
2
dt
dxkg
dt
xd
In a different field:
Radioactive substances decompose at a rate proportional to the amount present.
Suppose y(t) is the amount present at time t.
Example (#3)Example (#3)
rate of change of amount is
proportional to the amount (and decreasing)
ykdt
dy
Other problems that Other problems that yield the same yield the same
equation:equation:
In the presence of abundant resources (food and space), the organisms in a population will reproduce as fast as they can --- this means that
the rate of increase of the population will be proportional to the population itself:
Pkdt
dP
..and another..and another
The balance in an interest-paying bank account increases at a rate (called the interest rate) that is proportional to the current balance. So
kBdt
dB
More realistic situations for the More realistic situations for the last couple of problemslast couple of problems
For populations:For populations: An ecosystem may have a maximum capacity to support a certain kind of organism (we're worried about this very thing for people on the planet!).
In this case, the rate of change of population is proportional both to the number of organisms present and to the amount of excess capacity in the environment (overcrowding will cause the population growth to decrease).
If the carrying capacity of the environment is the constant Pmax , then we get the equation:
PPkPdt
dP max
and for the Interest and for the Interest Problem...Problem...
For annuities: Some accounts pay interest but at the same time the owner intends to withdraw money at a constant rate (think of a retired person who has saved and is now living on the savings).
Question:Question:If the interest rate is r , and the retiree wants to withdraw W dollars per year, which is the correct differential equation for the balance B in the account at time t?
A)A)
B)B)
C)C)
D)D)
E)E)WrBdt
dB
WrBdt
dB
WBrBdt
dB
WBrBdt
dB
WBrdt
dB
Another application:Another application:
According to Newton's law of cooling , the temperature of a hot or cold object will change at a rate proportional to the difference the difference between the object's temperature and the between the object's temperature and the ambient temperatureambient temperature.
If the ambient temperature is kept constant at A, and the object's temperature is u(t), what is the differential equation for u(t) ?
Solving Differential Solving Differential EquationsEquations
Since the the process of solving of a differential equation recovers a function from knowing something about its derivative, it's not too surprising that we have to use integrals to solve differential equations.
And since we’re using integrals, we should also expect to see some "arbitrary" constants in the solutions of differential equations. In general, there will be one constant in the solution of a first-order equation, two in a second-order one, etc...
In practice...In practice...
In practice, we can solve for the constants by having some information about the value of the unknown function (and/or the value of its derivative(s)) at some point. From an
applications point of view, such initial conditions are clearly needed, since you
can't determine the value of something just from information about how it is changing.
You also need to know its value at some ("initial") time.
Some examples will make this clearSome examples will make this clear
Let's go back to the very first example,
This is an example of a separable first-order equation (the only kind we'll worry about today).
If you view dy and dx as variables (so you can multiply both sides by dx), you can get all the x's on one side and all the y's on the other by algebraic manipulation. Here, you can write:
23xydx
dy
dxxy
dy3
2
Equation of differentials...Equation of differentials...
This is an actual "equation of differentials". Then, simply integrate both sides:
dxxy
dy3
2
Cxy
dxxy
dy
2
23
2
1
3
This is called the "general solution" of the differential equation.
We can determine C if we were given one point on the graph of the function y(x).
For instance, if you were given that y(1)=2 , then you could substitute 2 for y and 1 for x and get:
and so you would conclude that C = -2, so the solution of the initial-value problem:
is , or (better):
(You only need one constant of integration). Cx
y 2
231
C 23
21
2)1(,3 2 yxydx
dy
21 2
23 x
y 234
2
xy
DiffEq Problem:DiffEq Problem:
If the function y = f (x) satisfies the initial-value problem
then f (1) =
A)A)
B)B)
C)C)
D)D)
E)E)
F)F)
G)G)
H)H)
5)0(,22 fxyxdx
dy
13 e
e
e
1
3
e
5
2
e
15
3
41
e
10
e
““DiffEq Greatest Hits”DiffEq Greatest Hits”
A tank contains 1000 liters of brine (salty water) with 50 kg of dissolved salt. Pure water enters the tank at the rate of 25 liters per minute, The solution is kept thoroughly mixed and drains at an equal rate. How many kg of salt remain in the tank after 10 minutes?
The setup….The setup….The first step in most DiffEq problems is to identify the unknown function.
Since we want to know the amount of salt at different times, use A(t) for the amount of salt (in kg) in the tank at time t (minutes). We are given that A(0)=50. The rate of change of A could come from salt being added to the tank (but there is none), or from salt flowing out of the tank (the solution flows out at 25 liters per minute, and there are A(t) kg in 1000 liters, so there are A(t)/40 kg in 25 liters. So, which of the following is the differential equation for this problem?
A. A' = A/40
B. A' = A - 40
C. A' = 40 - A
D. A' = - A/40
E. A' = - 40/A
Answer this...Answer this...Now, what is the answer to the problem?
(i.e., what is A(10) if A’= -A/40 and A(0) = 50 ?)
A. 0
B. 40
C.
D.
E.
F.
G. 50 ln(2)
H. 25
41
50e41
50 e401
50 e101
25 e
ConnectConnectGrowth and decay:Growth and decay:
What is the solution of the differential equation
y ’ = ky ?
How about the initial value problem
y ’ = ky , y(0) = y0 ?
As noted previously, this differential equation is useful for talking about radioactive decay, compound interest and unrestricted population growth.
One more greatest hits problem:One more greatest hits problem:For obvious reasons, the dissecting room of a medical examiner is kept very cool, at a constant temperature of 5 degrees C. While doing an autopsy early one morning, the medical examiner himself is killed. At 10 am, the examiner's assistant discovers the body and finds its temperature to be 23 degrees C, and at noon the body's temperature is down to 18.5 degrees C. Assuming that the medical examiner had a normal temperature of 37 degrees C when he was alive, when was he murdered?
A. 3 am
B. 4 am
C. 5 am
D. 6 am
E. 7 am
F. 8 am
G. 9 am
A differential equation of the form
gives geometric information about the graph of y(x).
It tells us:
),( yxfdx
dy
Geometry of Differential EquationsGeometry of Differential Equations
If the graph of y(x) goes through the point (x,y), then the slope of the graph at that point is equal to f(x,y).
),( yxfdx
dy
An example:An example:
We can draw a picture of this as follows. For the
differential equation , we have: xydx
dy
If the graph goes through (2,3), the slope must be 1 there.
If the graph goes through (0,0), the slope must be 0 there.
If the graph goes through (-1,-2), the slope must be -1 there.
Put it on a graph...Put it on a graph...
The slope of the arrow at any point is equal to y - x at that point. This kind of picture is called a "direction field" for the differential equation dy/dx = y - x .
We can use this to solve the differential equation geometrically and recover the graph of the function.
The idea is to startThe idea is to start
The idea is to start somewhere on the
direction field and simply follow the arrows:
This graphical technique is useful for getting qualitative information about solutions of differential equations, especially
when they cannot be integrated.
Here are a couple for you to try...Here are a couple for you to try...
y ' = 2 ( y - y2)
y ' = 3 x sin(2y)
Another way to gain insight into solutions of differential equations is to use numerical methods for their solution. The simplest numerical method is called Euler's method.
Euler's method is easy to understand if you relate it to two things you already know:
1. The left endpoint (rectangle) method for estimating integrals, and
2. The fundamental theorem of calculus.
Or, you can think of Euler's method in terms of differentials:
Numerical methodsNumerical methods
)(')( xyxxyxxy
Euler’s methodEuler’s method
You can algebraically manipulate most first-order equations, until they are in the form:
y'(x) = f(x,y)
Euler's method then combines the differential formula with the differential equation:
In Euler's method, we simply ignore the small errors and repeatedly use the resulting equation with a small value of to construct a table of values for y(x) (that can then be graphed, for instance).
),()( yxfxxyxxy
x
y ' = y - x, y(0) = 2
(this is the example we graphed before).
We'll use x = 0.1 The choice of x is usually dictated by the problem or the situation. The smaller x is the more accurate the approximated solution will be, but of course you need to do more work to cover an interval of a given length.
For the first step, we can use that x=0 and y=2, therefore
y ' = 2. Euler's method then tells us that:
y(x + x) = y(x) + f(x,y) x
y(0.1) = 1 + (2 - 0) 0.1 = 1.2
An example...An example...
Continue...Continue...For the second step, we have x = 0.1, y = 2.2, therefore y' = 2.1. Euler's method then gives:
y(0.2) = 2.2 + 2.1(0.1) = 2.41
We continue in this manner and fill in the following table
x y f (x,y ) = y - x0 2 2
0.1 2.2 2.10.2 2.41 2.210.3 2.631 2.3310.4 2.8641 2.46410.5 3.11051 2.610510.6 3.371561 2.7715610.7 3.6487171 2.94871710.8 3.94358881 3.143588810.9 4.257947691 3.3579476911 4.59374246 3.59374246
Maple...Maple...
Maple tells us that the exact solution of the equation
y ' = y - x that has y(0) = 2 is y(x) = x + 1 + ex
and so we have y(1) = 4.718281828.
So the Euler method result is pretty close (within 10%). We could do better by decreasing x, but of course then we'd need more steps to reach x = 1.
You'll get to try a couple of these on this week's homework.