Professional Documents
Culture Documents
Self Attendance Check Using Korea Inclass App
Self Attendance Check Using Korea Inclass App
Chapter 1
First-Order ODE*
General solution : y = cx − c 2
Particular solution : y = 2 x − 4
Singular solution : y = x2 / 4
1.1 Basic Concepts
Modeling
⚫ Initial Value Problems : An ordinary differential equation together
with a specified value of the unknown function at a given point in the
domain of the solution
y ' = f ( x, y ) , y ( x0 ) = y0
formulation
applications
1.1 Basic Concepts
Modeling
Ex5) Given an amount of a radioactive substance, say 0.5 g(gram), find the
amount present at any later time.
Physical Information
Experiments show that at each instant a radioactive substance decomposes at a rate
proportional to the amount present.
Step 1 Setting up a mathematical model (a differential equation) of the physical
process.
dy dy
By the physical law : y = − ky
dt dt
The initial condition : y ( 0 ) = 0.5
Step 2 Mathematical solution.
General solution : y ( t ) = ce − kt
When k = 1.5
y = 0.5e-1.5t
1.2 Geometric Meaning of y=f(x,y)
⚫ Direction Field
: directions of solution curves of a given ODE by drawing short straight-line
segments in the x-y plane.
• The method shows the whole family of solutions and their typical properties.
1.2 Euler’s method for y=f(x,y)
⚫ Numeric Method by Euler
: yields approximate solution values at equidistant x-values
with an initial value
x1 =x0 + h, y1 = y0 + hf ( x0 , y0 )
y’(x1, y1)
x2 =x0 + 2h, y2 = y1 + hf ( x1 , y1 )
x3 =x0 + 3h, y3 = y2 + hf ( x2 , y2 )
y’(x0, y0)
h
x2
1.2 Euler’s method for y=f(x,y)
1.3 Separable ODEs
⚫ Separable Equation : g ( y) y ' = f ( x)
❖ For a differential equation to be separable, all functions including y in the
differential equation must be multiplied by the derivative on the left side, and all
the x ’s must be on the other side of the equal sign.
dy
g ( y ) y = f ( x) ⇒ g ( y)dy = f ( x)dx + c
dx
dx = dy
1
1 + y 2 dy = dx + c arctan y = x + c y = tan ( x + c )
1.3 Separable ODEs
Ex5) Mixing problems occur frequently in chemical industry. We explain here how to
solve the basic model involving a single tank. The tank in the Figure contains 1000 gal of
water in which initially 100 lb of salt is dissolved. Brine runs in at a rate of 10 gal/min,
and each gallon contains 5 lb of dissolved salt. The mixture in the tank is kept uniform by
stirring. Brine runs out at 10 gal/min. Find the amount of salt in the tank at any time t.
Step 1 Setting up a model.
▶ Salt’s time rate of change (dy / dt = y') = Salt inflow rate – Salt outflow rate
“Balance law”
Salt inflow rate = 10 gal/min × 5 lb/gal = 50 lb/min
Salt outflow rate = 10 gal/min × y/1000 lb/gal = y/100 lb/min
- Certain first order equations that are not separable can be made separable by a simple
change of variables.
▶ A homogeneous ODE y
y ' = f can be reduced to separable form by the substitution of y=ux
x
y du dx y
y ' = f u ' x + u = f (u ) = y = ux u = & y ' = ( ux ) ' = u ' x + u
x f (u ) − u x x
1 y x 1 1 2u 1
2 xyy ' = y 2 − x 2 y' = − u ' x + u = u − du = − dx
2 x y 2 u u2 +1 x
2
c y c
u +1 =
2
+1 = x 2 + y 2 = cx
x x x
1.4 Exact ODEs, Integrating Factors
⚫ Exact Differential Equation : The ODE M(x , y)dx +N(x , y)dy =0 is called an exact differential
equation if the differential form M(x , y)dx +N(x , y)dy is exact, that is, this form is the differential
u u
du = dx + dy of some function u(x,y)
x y
M N M u 2u u N
⚫ Condition for exactness : = = = = =
y x y y x xy x y x
• M ( x, y ) = u u ( x, y ) = M ( x, y ) dx + k ( y )
u
= N ( x, y ) get
dk
& k ( y)
x y dy
u u
• N ( x, y ) = u ( x, y ) = N ( x, y ) dy + l ( x ) = M ( x, y ) get dl
& l ( x)
y x dx
1.4 Exact ODEs, Integrating Factors
▪ Ex1) Solve cos ( x + y ) dx + ( 3 y 2 + 2 y + cos ( x + y ) ) dy = 0
u ( x, y ) = M ( x, y ) dx + k ( y ) = cos ( x + y ) dx + k ( y ) = sin ( x + y ) + k ( y )
u dk dk
= cos ( x + y ) + = N ( x, y ) = 3y2 + 2 y k ( y) = y 3 + y 2 + c *
y dy dy
u ( x, y ) = sin ( x + y ) + y3 + y 2 = c
u u
du = dx + dy = cos ( x + y ) dx + (cos ( x + y ) + 3 y 2 + 2 y )dy = 0
x y
1.4 Exact ODEs, Integrating Factors
⚫ Reduction to Exact Form, Integrating Factors
y 1 y 1 1
−
x2
dx + dy = 0 ∵ − 2 = − 2 =
y x x x
x x
1.4 Exact ODEs, Integrating Factors
⚫ How to Find Integrating Factors FPdx + FQdy = 0
F P F Q
The exactness condition : ( FP ) = ( FQ ) P+F = Q+F
y x y y x x
Golden Rule : If you cannot solve the problem, try to solve a simpler one.
F F
Case 1) F = F ( x) = F', =0
x y
1 dF 1 P Q
FPy = F ' Q + FQx = R ( x ) where R ( x ) = −
F dx Q y x
F ( x ) = exp ( R ( x ) dx )
1 Q P
Case 2) F* = F * ( y )
1 dF *
F * dy
= R * where R* = − F * ( y ) = exp
P x y
( R * ( y ) dy )
1.4 Exact ODEs, Integrating Factors
▪ Ex5) Find an integrating factor and solve the initial value problem
(e x+ y
+ ye y ) dx + ( xe y − 1) dy = 0, y ( 0) = −1
Step 1 Nonexactness.
P
P ( x, y ) = e x + y + ye y = e x + y + e y + ye y
y P Q
Q y x
Q( x, y ) = xe y − 1 = ey
x
1 P Q
R= − =
1
Q y x xe − 1
y ( e x+ y
+ e y
+ ye y
− e y
) =
1
xe − 1
y ( e x + y + ye y ) Fails.
1.4 Exact ODEs, Integrating Factors
Step 2 Integrating factor. General solution.
1 Q P
y (
e y − e x + y − e y − ye y ) = −1
1
R* = − = x+ y
F * ( y ) = e− y
P x y e + ye
(e x
+ y ) dx + ( x − e− y ) dy = 0 is the exact equation.
u
u = ( e x + y ) dx + k ( y ) = e x + xy + k ( y ) = x + k ' ( y ) = x − e− y k ' ( y ) = −e − y , k ( y ) = e − y
y
⚫ Linear ODEs : ODEs which is linear in both the unknown function and its derivative.
y = ce
dy − p ( x ) dx
y '+ p ( x ) y = 0 = − p ( x ) dx ln y = − p ( x ) dx + c *
y
( py − r ) = p 0 = (1)
y x
1 P Q
F = e
1 dF pdx
Find integrating factor R = − = p =p = eh
Q y x F dx
where h = pdx
N = F = eh , M = F ( py − r ) = e h ( py − r )
u
N ( x, y ) = u ( x, y ) = N ( x, y ) dy + l ( x ) (Using N is simple)
y
y = e − h re h dx + c
1.5 Linear ODEs, Bernoulli Equation
Solve e
pdx
( py − r ) dx + e
pdx
dy = 0 e h ( py − r ) dx + e h dy = 0
dy
e h ( py − r ) + e h =0
dx
y = e − h re h dx + c
1.5 Linear ODEs, Bernoulli Equation
▪ Ex1) Solve the linear ODE y '− y = e2 x
Compare to y '+ p ( x ) y = r ( x )
1 1
y= =
( )
The general solution of the logistic equation is
u B + ce− Ax
A