Beruflich Dokumente
Kultur Dokumente
Plan:
The order of an ODE is the highest derivative that appears in the ODE.
The 1st-order ODE can be represented by the equation: F ( x, y, y) 0 or y f ( x, y)
The differential equation is linear if in each terms, the unknown variable and its
derivatives appear linear ( a( x) y or b( x) y (n) ) .
2 x 2 yy 0 yy x (Done)
number c.
(2) Particular solution: y p 3x 2 is a particular solution to xy 2 y .
(3) Singular solution: a solution of the DE but not a memebr of the family of solutions.
For example, the DE ( y ) 2 xy y 0 has the general solution y g cx c 2 .
x2
(a family of linear equations for each value of c). Now y is a solution but not
4
A solution of the IVP (if exists) must satisfy the initial condition.
For example, the (IVP) y 2 x, y(1) 3 has y x 2 2 as a solution and it is the only
solution. Also, the (IVP) yy x, y(0) 4 has x 2 y 2 16 0 as the only solution.
Models and Applications of 1st-Order DE’s
We now give some real life problems whose mathematical model is represented by a
1st-order DE’s.
Example 3: A radium Ra88224 decomposes to its half in 3.6 days. What will be the amount
(2) Geometric:
Example 4: A curve that passes through (1,1) in the xy-plane has, at each of its points, a
9 y 2 4x 2 y2 x2
By integration, we obtain: c * or c2 .
2 2 4 9
dy
Solution: By separating the variables, we obtain dx
1 y2
For the case with the radium Ra88224 that decomposes to its half in 3.6 days. What
will be the amount of this radium if the initial amount was y 0 gram?
y0 1 1
By substituting t=3.6 days and y we obtain k ln and the solution will
2 3.6 2
t / 3.6
be y y0
1
(after some math manipulations).
2
t / t1
Note that: 3.6 =half life of the substance= t 1 , so, y y0
1 2
.
2 2
x2 y2
By integration we obtain c and the substituting the initial condition, we
2 2
get x 2 y 2 2
Method of Solution:
y
Substitute u , then we have y ux .
x
y
After solving this equation, we substitute u back.
x
y du dx
Step 2: Substitute u , then we have .
x 1
2
(u 1
u
) u x
Step 3: Simplify and integrate we obtain ln(1 u 2 ) u22u1 du dxx ln( x) ln(c)
y
Step 4: Substitute u and simplify we obtain the solution ( x 2c ) 2 y 2 ( 2c ) 2
x
|c|
which is a circle of radius 2
and center ( 2c , 0) , where c is to be determined
b- y f (ax by c) .
Method of Solution:
Substitute v ax by c , then we have v a by a bf (v)
dv
From this, we have the separable DE: dx .
a bf (v)
dv
Step 1: Substitute v 2 x y and we then have dx
2 112vv
So, by comparing the carbon ratio in the fossil and that of the atmosphere, one can
estimate the age of the fossil. (W. Libby’s idea of radiocarbon dating, 1960 Nobel
Prize of chemistry).
Given the above and the half-life (5730 years) of 6 C 14 we estimate the age of the bone.
dy
Recall in Section 1.3 we solved the radioactive problem: ky, y (0) y 0 .
dt
t / t1
We obtain the following solution (in terms of the half-life t 1 ) y y0
1 2
.
2 2
Substitute y 25% y0 into the solution above and we obtain the age of the bone as
1
ln
4
t 1
* t 1 2 * t 1 11460 years.
ln 2 2
2
Example 2: Mixing Problem
A tank contains 200 gallon of water in which 40 Ib of salt are dissolved. Five
gallons of brine, each containing 2 1b of dissolved salt, run into the tank per
minute, and the mixture, kept uniform by stirring, runs out of the tank at the same
rate. Find the amount of salt y(t ) in the tank at any time.
Step 1: Modeling
dy
The rate of change inflow of salt – outflow of salt
dt
Inflow rate= 2*5=10 Ib/minute. For the outflow rate, note the amount of salt at
each time is y(t ) in 200 gallons of water.
y (t )
So, each gallon of water contains Ib. 5 gallons/per minute of this water
200
y (t ) y
flows out and they contain 5 * Ib. The IVP then becomes
200 40
dy y
10 , y(0) 40.
dt 40
40
1
t
The solution of the above DE is y 400 ce .
Substituting the initial condition (t=0 , y=40) we obtain c 360 . So the
40
1
t
amount of dissolved salt at any time is y 400 360e .
Substituting the initial condition (t=0, T=66) we obtain c=34. Again substituting
63 32
(t=2 , T=63) and with c=34, we obtain k 12 ln 0.046187 . The solution is
34
then
T (t ) 32 34e .046187t .
du u x dx u y dy (1 2 xy 3 )dx 3x 2 y 2 dy
(1 2 xy 3 )dx 3x 2 y 2 dy 0 is x x 2 y 3 constant .
du u dx u dy Mdx Ndy
x y
Idea of solution
1- Determine if the DE is exact.
2- If the DE is exact, find the function u(x,y).
2u M & 2u N .
yx y xy x
By continuity of the first partial derivatives we then have M N .
y x
Hence, by equating the RHS of (2) with the RHS of (3) above, we determine h( y) ,
g (x) and u . Hence, the solution is then u( x, y) c .
We then have: x x 2 y 3 h( y) x 2 y 3 g ( x) .
x 4 3x 2 y 2
Step 2: u ( x, y) ( x 3xy )dx h( y)
3 2
h( y )
4 2
y4
To compute h(y), u y 3x y h( y) N 3x 2 y y 3 . Hence, h( y) y 3 and h( y )
2
.
4
x 4 3x 2 y 2 y 4 x 4 3x 2 y 2 y 4
So we have u ( x, y) and the solution is c.
4 2 4 4 2 4
Example 3: Solve the IVP: sinh x cos y dx cosh x sin y dy 0, y(0)
hence, g ( x) 0 and the solution is then cosh x cos y c . With y(0) , then
c 1 and the unique solution is then cosh x sec y .
Question 3: What if the equation was not exact? Can it be made exact?
1
But note that if we multiply the DE by , then the DE becomes
x2
y 1
2
dx dy 0 which is now exact. The solution of this new Exact DE is the
x x
same as the solution to the non-Exact DE.
1
Remark: The multiplying function is an integrating factor (I.F) of the above DE.
x2
Question 4: How do we know if an integrating factor exists for any given DE and how to
find such one (if exists)?
M y Nx Nx M y
Answer: Compute R1 or R2 and use Integrating Factor Theorems
N M
M y Nx
Theorem 1: If R1 P( x) , a function of x only, then there exists an integrating
N
factor (I.F) F ( x) e P( x) dx .
Nx M y
Theorem 2: If R2 Q( y ) , a function of y only, then there exists an integrating
M
as follow:
M y Nx 1 1 2
Since P( x) , a function of x only, then the I.F is
N x x
2 dx 1
F ( x) e e x 2 as given above.
P ( x ) dx
1 y 1
By multiplying the DE above by F ( x) 2
, the DE becomes 2 dx dy 0 .
x x x
y 1 1
Now, M 2
, N , hence M y 2 N x and the DE is now exact and
x x x
y y
u M dx h( y) N dy g ( x) . From which we get: u h( y) g ( x)
x x
y
Then h( y) g ( x) 0 and the solution is then c or y cx .
x
Nx M y 11 2
Note also
Q( y ) a function of y only , so another I.F
M y y
2
dy 1
G( y) e e y 2 exists.
Q ( y ) dy
1 1 x
Multiply the DE y dx x dy 0 by G ( y ) 2
, then the DE becomes dx 2 dy 0
y y y
1 x
which is now exact. Compute u dx h( y) 2 dy g ( x) , we obtain
y y
x x x
u h( y ) g ( x) , hence h( y) g ( x) 0 and the solution is then c or
y y y
y cx .
Remark: The example above showed the DE has two integrating factors. This is not
always true.
Nx M y sin y
Note that R2 Q( x, y ) is a function of x & y and not y
M 2 cos y 4 x 2
only. So no integrating factor (I.F) of the form G( y) e Q( y )dy exists.
M y Nx sin y 1
On the other hand, R1 P( x) a function of x only and an
N x sin y x
integrating factor I.F F ( x) e x dx x exists. So, the DE becomes
1
(2 x cos y 4 x 3 ) dx x 2 sin y dy 0
and it is exact. To solve it, compute:
u
x 2 sin y h( y) N x 2 sin y . Then h( y) 0, hence h( y) 0 and the
y
Then
dy
p( x) y 0 is separable its general solution is then y h ce p( x)dx
dx
multiplying it by the integrating factor I .F e p( x)dx (as in Section 1.5) and the
linear DE becomes e p ( x ) dx
dy
e p( x)dx p( x) y e p( x)dx f ( x) and it is simplified to
dx
dx
e
d p( x)dx
y e p ( x ) dx f ( x) . Hence the general solution to
dy
dx
p ( x) y f ( x)
Or
yg ce p( x)dx e p( x)dx e p ( x ) dx
f ( x)dx
yh y p
dy
Example 1: Solve 2 y e2x
dx
Solution: This DE is linear with p( x) 2 & f ( x) e 2 x . The integrating factor is then
e
2 dx
e 2 x , hence the solution is y g ce 2 x e 2 x e 2 x e 2 x dx ce 2 x xe 2 x .
dy
Example 2: Solve the IVP: tan x y sin 2 x, y(0) 1
dx
Solution: The I.F is F ( x) e tan xdx sec x .
c 1
Hence, y h c cos x , y p sec x sin 2 xdx 2 cos x and
2
sec x sec x
y g c cos x 2 cos x is the general solution. Substituting x=0 and y=1, then c=3
2
A tank contains 1000 gallon of water in which 200 lb of salt are dissolved. Fifty
gallons of brine, each containing (1+cos t) lb of dissolved salt, run into the tank per
minute, and the mixture, kept uniform by stirring, runs out of the tank at the same
rate. Find the amount of salt y(t) in the tank at any time.
Inflow rate= 50*(1+cos t) lb/min, Outflow rate= 50* y(t)/1000 = 0.05 y(t) 1b/min
dy
The IVP becomes 50(1 cos t ) 0.05 y, y(0) 200 or
dt
dy
0.05 y 50(1 cos t ), y(0) 200 .
dt
50 2.5
y e 0.05t (c 50 e 0.05t cos tdt ) ce 0.05t 1000 sin t cos t
1 (0.05) 2 1 (0.05) 2
2.5
With y(0)=200, then c 200 1000 802.5 and
1 (0.05) 2
y 1000 49.88 sin t 2.494 cos t 802.5e 0.05t
(2) lim y 1000 some sin e & cosineterms . So, 1000 Ib is the mean value as
t
time incereases.
(3) This mean value 1000 is obtained if 50(1+cost) is replaced by 50 only. In this case the
dy
equation becomes 0.05 y 50, y(0) 200 and its solution is then y 1000 800e 0.05t
dt
Solution Method:
Put: u y1r y y r u
1 r
u (1 r ) y r y y y u
1 r
1 r
Substituting in Bernoulli equation we obtain: y u p( x) y r u f ( x) y r
1 r
Simplifying, we obtain the Linear DE in u: u (1 r ) p( x)u (1 r ) f ( x)
The function f is the forcing input to the system, say a voltage generator for instance.
The simplest electric circuit is a series circuit containing a source of electric energy
(electromotive force) such as a generator or a battery and a resistor which
consumes energy, for instance an electric lightbulb.
When the switch closes, a current I will flow through the resistor and this will
cause a voltage drop, i.e., the electric potential at the two ends of the resistor will
be different. The basic electric elements we discuss here are: Resistors, Inductance
and Capacitors.
Voltage Drop Across the Basic Electric Elements
The algebraic sum of all the instantaneous voltage drops around any closed loop is
zero.
E (t )
Hence, the solution is I (t ) ce ( R / L)t e ( R / L)t e ( R / L)t dt
L
R 1 L
Define and L (the inductive time constant)
L R
E0
Hence I (t ) ce t sin( wt )
R 2 L2 w 2
E0
In case (b), sin( wt ) is in steady-state and e t is a transient
R L w
2 2 2
1 dE
Hence, the solution is I (t ) ce (1/ RC )t e (1/ RC )t e (1/ RC )t dt
R dt
1 1
Define and C RC (the capacitive time constant)
RC
e t ( RC ) 2 e t
Note That et cos wt dt w sin wt cos wt ) 2
w sin wt
1
cos wt
w
2 2
1 ( RCw) RC
E0 RC 2 w 1
Hence, I (t ) ce t / RC ( w sin wt cos wt )
1 ( RCw) 2
RC
E0 wC
And the general solution is then I (t ) ce t / C
sin( wt )
1 ( wRC ) 2