기초공학수학 1장
기초공학수학 1장
Mathematics I
Chapter 1: ODEs
College of ICE
Sungkyunkwan University
1
Flipped Class
2
3
Contents
4
1.1 Basic Concepts. Modeling
5
Basic Concepts. Modeling
• Differential Equations
– The most frequent encounters
in engineering problem solving
– Physical, mechanical, and
electrical phenomena
6
Basic Concepts. Modeling
• Ordinary Differential Equations (ODEs)
– Single independent variable
y = cos x
y + 9 y = 0
x 2 yy + 2e x y = ( x 2 + 2) y 2
2u 2u
+ 2 =0
x 2
y
7
Basic Concepts. Modeling
• Order of ODE
– First derivative of the unknown function
– First-Order ODEs
• Form 1. (Implicit form)
F ( x, y, y ') 0
Ex) x 3 y ' 4 y 2 0
y' f ( x, y )
Ex) y ' 4 x3 y 2
8
Basic Concepts. Modeling
• Solution of ODE
– A solution of a given first-order differential equation, F(x,y,y′)=0, on
some open interval a<x<b, is a function y=h(x) that has a derivative
y′=h′(x) and satisfies F(x,y,y′)=0 for all x in that interval.
xy ' 2y y x2
– Implicit solution :
yy ' x x2 y2 1
9
Basic Concepts. Modeling
• Example 2. Solution Curves
10
Basic Concepts. Modeling
• Solution Type
– General solution
• To satisfy differential equation, including the integration constant c
solution
y' cos x y sin x c
– Particular solution
• Determine the conditions of integration constant c
solution
y' cos x y sin x 2
– Singular solution
• Impossible to be represent as general solution
general solution
y '2 xy ' y 0 y c( x c)
1 2
y x is also a solution but not general solution. ⇒ Singular solution
4
11
Basic Concepts. Modeling
• Example 3 : Exponential Decay
y = ce ( c any constant )
at
⎯⎯ ⎯ ⎯
⎯→
Differenti ate
y =
dy
dt
( )
= a ce at = ay
y = ce at is a solution of y = ay
y ce3t ( c: constant )
dy
y 3ce3t 3 y
dt
y ce3t a solution of y 3y
A general solution
12
Basic Concepts. Modeling
• Initial Value Problems
– ODE with initial condition
y f ( x, y ), y(x0 ) y0
13
Basic Concepts. Modeling
• Example 4: Initial value problem
dy
y 3 y, y (0) 5.7
dx
– Particular solution
y ( x) 5.7e3 x
14
Basic Concepts. Modeling
• Modeling
– Step 1. The transition from the physical situation (the physical
system) to its mathematical formulation (its mathematical model)
• Sort of approximation can play a role here.
– Step 2. The solution by a mathematical method
– Step 3. The physical interpretation of the result
Computing Aide
15
Basic Concepts. Modeling
• Example 5. Radioactivity, Exponential Decay
– Step 1. Setting up a mathematical model (a differential equation)
of the physical process
dy
ky
dt
dy
Initial value problem given ky, y (0) 0.5
dt
Initial value
y(t) cekt y (0) c 0.5
y(t) 0.5ekt
dy
0.5kekt k·0.5ekt ky, y (0) 0.5e0 0.5
dt
16
Basic Concepts. Modeling
• Example 5. Radioactivity, Exponential Decay
– We can verify the solution using the original ODE and IC
17
Basic Concepts. Modeling
• Example 6: A geometric application
– Find the curve through (1,1) having the slope –y/x
– ODEs
general solution
y y/ x y c/x
y(1) c /1 1 c 1
– Particular solution: y 1/ x
18
1.2 Geometric Meaning of
y′=f (x, y) : Direction Fields
19
Geometric Meaning of y′=f (x, y) : Direction Fields
• A First-Order ODE
y = f ( x, y )
f ( x, y ) k contant isoclines
20
Geometric Meaning of y′=f (x, y) : Direction Fields
• Two Direction Fields and induced solution
x 2 /2
y ce (c arbitrary) General solution (it is solvable)
y x 2 /2
x(ce ) xy c 2/ e 1.213
Check!
x2 /2
( x, y ) (1, 2) y (1) 2 2 1/2
ce y ( x) 1.213e
21
Geometric Meaning of y′=f (x, y) : Direction Fields
• Direction Fields by using Isoclines (the Older method)
x
y 0.1(1 x 2 )
y
k 5, 3, 1/ 4, 1
• On Numerics
– Euler-Cauchy method
– Runge-Kutta method
22
Separable ODEs. Modeling
23
Separable ODEs. Modeling
• Many practically useful ODEs can be reduced to the form
g (y )y = f (x)
g ( y) ydx = f ( x)dx + c
ydx = dy g ( y )dy = f ( x)dx + c
24
Separable ODEs. Modeling
• Example 1. A separable ODE
y = 1 + y 2
Separation
dy dy
= 1+ y2 = dx
dx 1+ y 2
Integration
arctan( y ) = x + c
y = tan( x + c)
25
Separable ODEs. Modeling
• Example 2. Radiocarbon dating
– The iceman, Oetzi, found in Southern Tvrolia in 1991.
The ratio if radioactive carbon 6C14 to ordinary carbon
6C
12 was 52.5% of that of a living organism
y: amount of 6C14
k: rate exponent
H: half life, e.g., 5000 years.
26
Separable ODEs. Modeling
• Example 2. Radiocarbon dating
– Radioactive decay is governed by the ODE y’=ky
dy
= kdt , ln y = kt + c, y = y0 e kt
y
ln 0.5 0.693
y0ekH = 0.5 y0 , ekH = 0.5, k = =− = −0.0001213
H 5715
10
y ' = 50 − y = 50 − 0.01y = 0.01( y − 5000)
1000
– Separating variables
dy
= −0.01 dt , ln y − 5000 = 0.01t + c1 , y = c1e −0.01t + 5000
y − 5000
– Step 4. Determination of k
using T(4)=65
30
Separable ODEs. Modeling
• Example 4. Heating office building(Newton’s law of cooling)
– Step 5. Answer and interpretation
6 A.M. is t = 8.
Tp (8) = 45 − 25e−0.056*8 = 61[F ]
31
Example 5 (Leaking tank outflow… )
• Problem
– Initial height of the water: 2.25m
– Cylinder diameter: 2m
– Hole diameter: 1cm
• Torricelli’s Law
– Outflowing water has velocity of
32
Example 5
• Solution
– Step 1. Setting up the model
B 1002
33
Example 5
34
Reduction to a Separable Form
• Nonseparable form → Separable form
– By transformations
• A type of ODE
– Turn separable by transformation
y ' = f ( xy )
– Transformation: y/x=u
y = ux → y ' = u ' x + u
– By substitution
u ' x + u = f (u ) or u ' x = f (u ) − u
– Separated
du dx
=
f (u ) − u x
35
Separable ODEs. Modeling
• Example 6. Reduction to separable form
2 xyy ' = y 2 − x 2
– Dividing by x2
y 2 − x2
y' =
2 xy
– By setting u=y/x
u 1
u'x+u = −
2 2u
– By separating variables
2u du dx
= −
1+ u2 x
– By integrating
ln (1 + u 2 ) = − ln x + c1 ,
c
1+ u2 =
x
2
c c2
x 2 + y 2 = cx, x− + y =
2
2 4 36
The Natural Response of an RL Circuits
- Techniques for analyzing the natural response of first-order circuits
abruptly disconnected from its dc source
1. Assume that the independent current source generates a constant current of Is, and that
the switch has been in a closed position for a long time.
2. All currents and voltages have reached a constant value.
3. Before the switch is being opened ; the inductor appears as a short circuit (v=Ldi/dt = 0)
prior to the release of the stored energy
4. No current in either R0 or R, and all Is in the inductive branch
5. After the switch has been opened ; v(t) and i(t) for t ≥0 ?.
An RL Circuit
37
38
Deriving the Expression for the current
KVL
39
i (t ) = I 0 e − ( R / L )t , t 0
Voltage across the resistor,
v = iR = I 0 Re −(R/L)t , t 0+
v(0 − ) = 0,
v(0 + ) = I 0 R
Power dissipated in the resistor,
v2
p = vi, p = i R, or p =2
R
p = I 02 Re −2 ( R / L )t , t 0 +
Energy delievered to the resistor after the switch has been opened.,
t t
w = pdx = I 02 Re −2 ( R / L ) x dx
0 0
1
= I 02 R(1 − e −2 ( R / L )t )
2( R / L )
1
= LI 02 (1 − e −2 ( R / L )t ), t 0
2
As t becomes infinite,
the energy dissipated in the resistor approaches the initial energy stored in the inductor
40
The significance of the time
constant
i (t ) = I 0 e − ( R / L )t , t 0
v(t ) = I 0 Re −(R/L)t , t 0+
p = I 02 Re −2 ( R / L )t , t 0+
1 2
w= LI 0 (1 − e − 2 ( R / L )t ), t 0
2
R / L determines the rate at which t he current or voltage approches "0"
L
= time constant =
R
t
−
i (t ) = I 0 e , t 0
t
−
v(t ) = I 0 Re , t 0+
t
−2
p= I 02 Re , t 0+
t
1 2 −2
w = LI 0 (1 − e ), t 0
2
41
When the elapsed time exceeds five time constants(5),
the current is less than 1% of its initial value. Thus, we
say that a circuit system reaches its final value after
elapsing for ≥ 5.
long time : elapsed for ≥ 5
t
5
42
1.4 Exact ODEs. Integrating
Factors
43
Exact ODEs. Integrating Factors
• Exact differential equation
– If a function u(x,y) has continuous partial derivatives, its differential is
u u
du = dx + dy
x y
• u(x,y) =c=constant → du=0.
– Example: u=x+x2y3=c
du = (1 + 2 xy 3 )dx + 3 x 2 y 2 dy = 0
dy 1 + 2 xy 3
y = =−
dx 3x 2 y 2
u
M ( x, y ) = u ( x, y ) = Mdx + k ( y ) = 0
x Constant
u
N ( x, y ) = u ( x, y ) = Ndy + l ( x) = 0
y
45
Exact ODEs. Integrating Factors
• Example 1. Solve
cos( x + y )dx + (3 y 2 + 2 y + cos( x + y ))dy = 0
• Solution
– Step 1. Test for exactness.
M = cos( x + y )
N = 3 y 2 + 2 y + cos( x + y )
M
= − sin( x + y )
y The same!
N
= − sin( x + y )
x
46
Exact ODEs. Integrating Factors
• Example 1. An Exact ODE
– Step 2. Implicit general solution
u u
du = dx + dy = cos( x + y )dx + (cos( x + y ) + 3 y 2 + 2 y )dy = 0
x y
47
Exact ODEs. Integrating Factors
• Example 2. An Initial value Problem
(cos y sinh x + 1)dx − sin y cosh xdy = 0, y (1) = 2
– Solution
u = − sin y cosh xdy + l ( x) = cos y cosh x + l ( x)
u dl
= cos y sinh x + = M = cos y sinh x + 1
x dx
dl
=1
dx
– By integral
l ( x) = x + c *
u( x, y) = cos y cosh x + x = c
– By initial condition
– Solution
-ydx + xdy = 0 is not exact because M = −y and N = x, so that
M N
= −1 but = 1.
y x
u k
u = M dx + k ( y ) = − xy + k ( y ), hence = −x + .
y y
u
Now, should equal N=x, however k(y) can depend on only on y.
y
49
Integrating Factors
• Reduction to exact form: Integrating Factors
– ODE : − ydx + xdy = 0 → Multifly it by 1/ x 2
− ydx + xdy y 1 y
2
= − 2 dx + dy = d ( ) = 0
x x x x
1 1
→M =− 2, N =
x x
M 1 N 1
→ =− 2, = − 2 Exact!!
y x x x
• Integrating Factor: F
FP( x, y )dx + FQ( x, y )dy = 0,
where P( x, y )dx + Q( x, y )dy = 0 : a nonexact ODE
FP( x, y)dx + FQ( x, y) dy = 0 : an exact ODE
50
Integrating Factors
• Finding Integrating Factors
– The exact condition
( FP) = ( FQ)
y x
Fy P + FPy = Fx Q + FQx
• Too complicated → ?
– Golden rule
• Assume F is a function of only variable x.
dF
Let F = F ( x). Then Fy = 0, and Fx = F = .
dx
FPy = F Q + FQx
1 dF 1 P Q
= R, where R = ( − ).
F dx Q y x
51
Exact ODEs. Integrating Factors
• Theorem 1
– Integrating Factor F(x)
• If (12) is such that the right side R of (16), depends only on x, then (12)
has an IF F=F(x), which is obtained by integrating (16) and taking
exponents on both sides.
1 P Q
※ Note R= ( − ).
Q y x
52
Exact ODEs. Integrating Factors
• Theorem 2
– Integrating Factor F*(y)
• If (12) is such that the right side R* of (18) depends only on y, then
(12) has an integrating factor F*=F*(y), which is obtained from (18) in
the form.
F *( y ) = exp R( y )dy.
53
Example 5 (IF with Initial Value Condition)
• Application of Theorems 1 and 2.
– Using theorem 1 and 2 find an integrating factor and solve the
initial value problem.
(e x y
ye y )dx (xe y 1)dy 0, y (0) 1
• Solution
– Step 1. Nonexactness. The exactness check fail:
P x + y x+ y Q
= (e + ye ) = e + e + ye but,
y y y
= ( xe y − 1) = e y
y y x x
54
Example 5 (IF with Initial Value Condition)
– Step 2. Integrating Factor. General solution
• Try two theorems
Too complicated!
1 P Q 1
R= ( − )= y (e x + y + e y + ye y − e y )
Q y x xe − 1
Try for F(y)
1 Q P 1 x+ y
R* = ( − ) = x+ y ( e y
− e − e y
− ye y
) = −1
P x y e + ye y
• By using THEOREM 2, integrating factor is
F * ( y) = e− y
• Test for exactness by integration
(e x + y )dx + ( x − e − y )dy = 0
u = (e x + y )dx = e x + xy + k ( y )
u dk dk
= x+ = N = x − e− y , = −e − y , k = e − y + c *
y dy dy
u ( x, y ) = e x + xy + e − y = c
55
Example 5
– Step 3. Particular solution by initial value
u ( x, y ) = e x + xy + e − y = c y (0) = −1
u (0, −1) = 1 + 0 + e = 3.72
u ( x, y ) = e x + xy + e − y = 3.72
– Step 4. Checking
Particular solution
56
1.5 Linear ODEs. Bernoulli
Equation
57
First-Order Linear ODE
• Standard Linear Form
y: output r: input
– Linear in y and y’
y + p ( x) y = r ( x)
– Example
• A linear DE: y 'cos x + y sin x = x → y '+ y tan x = x sec x
Standard form
• Non-linear form y '+ p( x) y = r ( x) y 2
58
Non-homogeneous Linear ODE
• Conditions
– r(x) is not always zero, move r to the left.
( py − r )dx + dy = 0 → Pdx + Qdy = 0, where P = py − r and Q = 1
– Integrating factor F(x)
1 dF dF
= p( x) → = pdx and ln F = pdx
F dx F
F ( x) = e
pdx
– Multiply F(x)
e ( y + py ) = (e y ) = e r → e y = e
pdx pdx pdx pdx pdx
rdx + c
y ( x) = e − h e h rdx + ce − h
59
Example 1
• First-order ODE, general solution
y − y = e 2 x
– General solution
p = −1, r = e2 x , h = pdx = − x
y ( x) = e x ( e− x e 2 x dx + c) = e x (e x + c) = ce x + e 2 x
( y − y)e− x = ( ye− x ) = e2 x e− x = e x
ye− x = e x + c, hence y = e2 x + ce x
60
Example 2. First-order ODE, Initial Value Problem
• Problem y + y tan x = sin 2 x, y (0) = 1
1 = c 1 − 2 12 , c=3
– Hence
y = 3cos x − 2 cos 2 x
61
Example 3. Hormone Level (optional)
– Assume that level of a certain hormone in the blood varies with
time. Time rate of change is the difference between a sin. input of
a 24-hour period from the thyroid gland and a continuous removal
rate proportional to the level present. Set up a model for the
hormone level in the blood and find its general solution. Find the
particular solution satisfying a suitable initial condition
62
Example 3. Hormone Level (optional)
– Step 2. General solution
1
p = K = const , h = kt , r = A + B cos( t )
12
t
y (t ) = e − Kt e Kt ( A + B cos )dt + ce − Kt
12
A B t t
= e − Kt e Kt [ + (144 K cos + 12 sin )] + ce − Kt
K 144 K 2 + 2 12 12
A B t t
= + (144 K cos + 12 sin ) + ce − Kt
K 144 K 2 + 2 12 12
K 144 K 2 + 2 12 12 K 144 K 2 + 2
63
Reduction to Linear Form, Bernoulli Equation
• Bernoulli Equation
– Nonlinear → Linear form
– Differentiate
u = (1 − a) y − a y = (1 − a) y − a ( gy a − py )
u = (1 − a)( g a − py1− a )
→ u + (1 − a) pu = (1 − a ) g since y1− a = u
: Linear ODE for u
64
Example 4. Logistic Equation
• Solve the following Bernoulli eq.
y = Ay − By 2
• Solution y=0 is also a solution
y − Ay = − By 2
a = 2 → u = y1− a = y −1
u = − y −2 y = − y −2 ( Ay − By 2 ) = B − Ay −1
→ u + Au = B since − Ay −1 = u
– General solution
u = ce− At + B / A
1 1
Since y = u −1 , y= = − At
u ce + B / A
65
Population Dynamics (Optional)
– Malthus’s law : y = Ay − By 2
– If B = 0, y = dy = Ay ⇒ y = 1 e At (exponential growth)
dt c
B
y = Ay − By 2 = Ay (1 − y)
A
66
Example 5
• Stable and unstable Equilibrium Solutions. “Phase Line Plot”
The ODE y = ( y − 1)( y − 2) has the stable equilibriu m solution y1 = 1and the unstable y2 = 2,
as the direction field in Fig.19 suggests. The values y1 and y2 are the zeros of the parabola
f ( y ) = ( y − 1)( y − 2) in the figure. Now, since the ODE is autonomous, we can " condense" the
direction field to a " phase line plot" giving y1 and y2 , and the direction( upward or downward)
of the arrows in the filed, and thus giving informatio n about the stability or instabilit y of the
equilibriu m solutions.
67
the sudden application
vs = Vm cos(t + )
di
I0 = 0 (initial current in inductor) vL = L
dt
: It becomes infinitesimal
as time elapses
: It exists
as long as the switch remains
68
Existence and Uniqueness of
Solutions
69
Existence and Uniqueness of Solutions
• Initial value problem
y = 1 + cx
70
Existence and Uniqueness of Solutions
• Initial value problem
y = f ( x, y ), y ( x0 ) = y0 One, No, or Many
solutions can exist.
• Theorem 1. Existence Theorem
– Let the right side f(x,y) of the ODE in the initial value problem
(1) y' f ( x, y ), y ( x0 ) y0
R :| x x0 | a, |y y0 | b (Fig. 26)
– and bounded in R; that is, there is a number K such that
71
Existence and Uniqueness of Solutions
• Theorem 2. Uniqueness Theorem
– Let f and its partial derivative f y f / y be continuous for all (x,y)
in the rectangle R (Fig. 26) and bounded, say,
→ Then the initial value problem (1) has at most one solution y(x).
Thus, by Theorem 1, the problem has precisely one solution. This
solution exists at least for all x in that subinterval |x − x0| < α.
f ( x, y ) 1 y2 K 10,
f
2y M 6,
y
b
0.3 a.
K
73
Existence and Uniqueness of Solutions
• Lipschitz condition
– From mean value theorem, we have
f
f ( x, y2 ) f ( x, y1 ) ( y2 y1 )
y y y
f ( x, y2 ) f ( x, y1 ) M y2 y1
74
Example 2. Nonuniqueness
• Consider the initial value problem
– The initial value problem Continuity of f(x,y)
doesn’t guarantee
y y , y(0) 0 the uniqueness.
f ( x, y2 ) f ( x, y1 ) y2 1
, ( y2 0)
y2 y1 y2 y2
This can be very large
By the choice of y2.
Violates the Lib.. Cond.
75
Continued
Page 44a
Continued
Continued