Ibubqnhc 0 Ilmj 3 N Ymlj TIF
Ibubqnhc 0 Ilmj 3 N Ymlj TIF
Ibubqnhc 0 Ilmj 3 N Ymlj TIF
L(y) = r.
Note that the ODE satisfies the linearity
L(c1y1 + c2y2) = c1L(y1) + c2L(y2).
Otherwise, it is called nonlinear.
Ex. 1. xy ′′ + y ′ + xy = 0 : homogeneous linear ODE
2. y ′′y + y ′2 = 0 : nonlinear ODE
Theorem 1. Superposition Principle
For a homogeneous linear ODE (2), if y1, y2 are solutions of (2) on the open
interval I, then y = c1y1 + c2y2 is again a solution of (2) on I, where
c1, c2 are arbitrary constants.
Proof. Let y1 and y2 be solutions of (2) on I. Set y = c1y1 +c2y2. Then
y ′′ + py ′ + qy = (c1y1 + c2y2)′′ + p(c1y1 + c2y2)′ + q(c1y1 + c2y2)
= c1(y1′′ + py1′ + qy1) + c2(y2′′ + py2′ + qy2)
= c10 + c20 = 0.
Hence y = c1y1 + c2y2 is a solution of (2) on I.
Computational Science & Engineering (CSE) T. Jeong
Chapter 2. Second-Order Linear ODEs 2
and ∫
1 − p dx
U = 2
e .
y1
Since U = u′, we obtain
∫ ∫
1 − ∫ p dx
u= U dx = 2
e dx.
y1
∫
1 − ∫ p dx
∴ y2 = y1 u = y1 2
e dx
y1
a2
Case II. Real double root λ = − a2 (λ2 + aλ + 4
= 0)
a
y1 = e− 2 x, y2 =?
Let y2 = uy1. Using the formula (of reduction of order), we have
∫
1 − ∫ p dx
u = 2
e dx
∫ y1
= eaxe−ax dx
= x.
a
Thus y2 = xe− 2 x. Because y2/y1 is not constant, they form a basis. The
general solution of the ODE is
y = (c1 + c2x)e−ax/2.
= cos t + i sin t.
We have two solutions of the ODE
1
y1 = eλ1x = e− 2 ax(cos wx + i sin wx),
1
y2 = eλ2x = e− 2 ax(cos wx − i sin wx).
Since the ODE is linear and homogeneous,
1 1
(y1 + y2) = e− 2 ax cos wx,
2
1 1
(y1 − y2) = e− 2 ax sin wx
2i
1 1
are also solutions of the ODE. Since [e− 2 ax cos wx]/[e− 2 ax sin wx] is
not constant, they form a basis. The (real) general solution of the ODE is
1
y = e− 2 ax (A cos ωx + B sin ωx) .
Note The (complex) general solution of the ODE is
1 1
y = c1e(− 2 a+iω)x + c2e−( 2 a+iω)x.
y ′ (0)
2. From the initial conditions, A = y(0), B = ω0
.
When B = 0, δ = 0.
harmonic oscillation
y(t) = A cos ω0t + B sin ω0t
= A cos 3t + B sin 3t
y(0) = A = 0.16,
y ′(0) = 3B = 0 ⇒ B = 0
∴ y(t) = 0.16 cos 3t
[Damped System]
Example 2.
Solve x2y ′′ − 5xy ′ + 9y = 0.
Sol. m2 − 6m + 9 = 0, m = 3.
The general solution is
y = (c1 + c2 ln x)x3.
Case III. Complex roots m1 = 12 (1 − a) + ωi, m2 = 12 (1 − a) − ωi.
We have two solutions
1
y1 = xm1 = x 2 (1−a)eiω ln x
1
= x 2 (1−a)[cos(ω ln x) + i sin(ω ln x)],
1
y2 = xm2 = x 2 (1−a)e−iω ln x
1
= x 2 (1−a)[cos(ω ln x) − i sin(ω ln x)].
Since the ODE is linear and homogeneous,
1 1
(y1 + y2) = x 2 (1−a) cos(ω ln x),
2
1 1
(y1 − y2) = x 2 (1−a) sin(ω ln x)
2i
are also solutions of the ODE.
1 1
Since [x 2 (1−a) cos(ω ln x)]/[x 2 (1−a) sin(ω ln x)] is not constant, they
form a basis. The (real) general solution is
1
y = x 2 (1−a)[A cos(ω ln x) + B sin(ω ln x)].
Note The (complex) general solution is
1 1
y = c1x 2 (1−a)+ωi + c2x 2 (1−a)−ωi.
Example 3. Case of Complex Roots
Solve
x2y ′′ + 0.6xy ′ + 16.04y = 0.
Theorem 2.
Let p(x) and q(x) in (1) be continuous on I. Then
1. two solutions y1, y2 of (1) on I are linearly dependent on I
y 1 y2
if and only if W (y1, y2) ≡ ′ ′ = y1y2′ − y2y1′ = 0
y 1 y2
at some x0 ∈ I, (W (y1, y2) : Wronskian).
2. If W = 0 at an x0 ∈ I, then W ≡ 0 on I.
Hence, if ∃ x1 ∈ I at which W is not 0, then y1 and y2 are linearly
independent on I.
Proof. 1.(⇒) Let y1, y2 be linearly dependent on I.
If y1 = ky2 holds, then
W (y1, y2) = y1y2′ − y2y1′
= ky2y2′ − ky2y2′
= 0.
Proof. By Existence and Uniqueness Theorem for IVP, the ODE (1) has
a solution y1(x) on I satisfying the IC
y1(x0) = 1, y1′(x0) = 0
and a solution y2(x) on I satisfying the IC
y2(x0) = 0, y2′(x0) = 1.
Since
W (y1, y2) = y1(x0)y2′ (x0) − y2(x0)y1′ (x0) = 1
these solutions are linearly independent on I. They form a basis of solutions
of (1) on I, and
c 1 y1 + c 2 y2
with arbitrary constants c1, c2 is a general solution of (1) on I.
Example 1.
Solve y ′′ + y = 0.001x2, y(0) = 0, y ′(0) = 1.5.
Sol. Step 1. y ′′ + y = 0 ⇒ yh = A cos x + B sin x
Step 2. Put yp = K2x2 + K1x + K0.
yp = 0.001x2 − 0.002
Step 3. y = yh + yp = A cos x + B sin x + 0.001x2 − 0.002
y(0) = 0, y ′(0) = 1.5 =⇒ A = 0.002, B = 1.5
y = 0.002 cos x + 1.5 sin x + 0.001x2 − 0.002.
Example 2.
Solve y ′′ + 3y ′ + 2.25y = −10e−1.5x.
Sol. Step 1. y ′′ +3y ′ +2.25y = 0, λ2 +3λ+2.25 = 0, λ = −1.5.
yh = (c1 + c2x)e−1.5x
Step 2. yp = Cx2e−1.5x (why!)
yp = −5x2e−1.5x
Step 3. y = yh + yp = (c1 + c2x − 5x2)e−1.5x
Example 3.
Solve the ODE
y ′′ + 2y ′ + 0.75y = 2 cos x − 0.25 sin x + 0.09x,
y(0) = 2.78, y ′(0) = −0.43.
Sol. Step 1. y ′′ +2y ′ +0.75y = 0, λ2 +2λ+0.75 = 0, λ = − 12 , − 32
yh = c1e−x/2 + c2e−3x/2
Step 2. yp = yp1 + yp2
Letting yp1 = K cos x + M sin x and yp2 = K1x + K0
yp = sin x + 0.12x − 0.32
Step 3. y = yh + yp
= c1e−x/2 + c2e−3x/2 + sin x + 0.12x − 0.32
From the initial conditions, c1 = 3.1, c2 = 0, and the solution of IVP is
y = 3.1e−x/2 + sin x + +0.12x − 0.32.
′′ ′
my
| + {z + ky} = r(t)
cy (1)
|{z}
internal force external force
• my ′′ + cy ′ + ky = 0: free motion.
• r(t) ̸= 0 ⇒ (1): forced motion with forcing function r(t) (input
or driving force).
• y(t): output or response of the system to the driving force.
If (k − mω 2)2 + ω 2c2 ̸= 0,
(k − mω 2)F0 ωcF0
a= , b= .
(k − mω 2)2 + ω 2c 2 (k − mω 2)2 + ω 2 c2
√
If k/m = ω0(> 0), then k = mω02 and we obtain
m(ω02 − ω 2)F0 ωcF0
a= , b= .
m2(ω02 − ω 2)2 + ω 2c 2 m2(ω02 − ω 2)2 + ω 2c2
The general solution of the ODE (2) is
y = y h + yp
where yh is a general solution of the homogeneous equation and yp is a
particular solution of (2).
[Case 1. Undamped Forced Oscillations. Resonance]
If c = 0(undamped), then a = F0/[m(ω02 − ω 2)], b = 0.
Hence
F0 F0
yp(t) = cos ωt = cos ωt.
m(ω02 − ω 2) k[1 − (ω/ω0)2]
In equations above, we must assume that ω 2 ̸= ω02;
ω
physically, frequency 2π [cycles/sec] of the driving force
̸= natural frequency ω0/(2π)[cycles/sec] of the system.
The general solution of the ”undamped system” is
F0
y(t) = C cos(ω0t − δ) + cos ωt.
m(ω02 − ω 2)
Resonance.
The maximum amplitude of yp is (put cos ωt = 1)
F0 1
a0 = ρ where ρ = .
k 1 − (ω/ω0) 2
If ω → ω0, then ρ → ∞ and a0 → ∞.
This excitation of large oscillations by matching input and natural frequencies
(ω = ω0) is called resonance. ρ: resonance factor.
ρ/k = a0/F0: ratio of the amplitudes of yp and of the input F0 cos ωt.
b ωc
tan η(ω) = = .
a m(ω02 − ω 2)
√
• Let R = m2(ω02 − ω 2)2 + ω 2c2. Then
( )
dC ∗ 1 −3/2
= F0 − R [2m2(ω02 − ω 2)(−2ω) + 2ωc2] = 0
dω 2
⇒ c2 = 2m2(ω02 − ω 2) (ω02 = k/m) (3)
⇒ 2m2ω 2 = 2m2ω02 − c2 = 2mk − c2.
Example
• Take m = 1, k = 1, hence ω0 = 1, and various values of the
damping constant c.
• Fig. 56 shows the amplification C ∗/F0 as a function of ω.
• Fig. 57 shows the phase angle η:
• Voltage Drops.
RI: Voltage drop for a resistor of resistance R ohms (Ω) (Ohm’s law).
LI ′: Voltage drop for an inductor of capacitance L henrys (H).
Q
: Voltage drop for a capacitor of capacitance C farads(F).
C ∫
Here Q coulombs is the charge on the capacitor; Q(t) = I(t)dt.
• According to KVL we have the ”integro-differential equation”
∫
1
LI ′ + RI + Idt = E(t) = E0 sin ωt.
C
Differentiating the above equation, we obtain
1
LI + RI + I = E ′(t) = E0ω cos ωt.
′′ ′
(1)
C
Example 1. RLC-Circuit
Find the current I(t) in an RLC-circuit with R = 11Ω, L = 0.1H,
C = 10−2F and E(t) = 100 sin(60 · 2πt) = 110 sin 377t.
Assume that current and charge are zero when t = 0.
Sol. 0.1I ′′ + 11I ′ + 100I = 110 · 377 cos 377t.
Ih = c1e−10t + c2e−100t
Ip = a cos 377t + b sin 377t
=⇒ Ip = −2.71 cos 377t + 0.796 sin 377t
I = Ih + Ip
= c1e−10t + c2e−100t − 2.71 cos 377t + 0.796 sin 377t
initial condition : I(0) = 0,∫Q(0) = 0
′ 1
LI + RI + Idt = E(t) = E0 sin ωt.
∫ C
Note that Q(t) = Idt. Putting t = 0,
1
LI ′(0) + RI(0) + ·0=0
C
gives I ′(0) = 0. The solution is
I = −0.323e−10t + 3.033e−100t
−2.71 cos 377t + 0.796 sin 377t.
and
u′y1′ + v ′y2′ = r,
u′y1 + v ′y2 = 0.
We solve the linear system:
y2 r y1 r y 1 y2
u′ = − , v′ = , where W = .
W W y1′ y2′
By integration,
∫ ∫
y2 r y1 r
u=− dx, v = dx.
W W
Thus ∫ ∫
y2 r y1 r
yp(x) = −y1 dx + y2 dx
W W
(method of variation of parameters).
Computational Science & Engineering (CSE) T. Jeong
Chapter 2. Second-Order Linear ODEs 30