Professional Documents
Culture Documents
Lecture 3
Lecture 3
Luis L. Bonilla
October 8, 2019
Outline
General properties
Superposition principle
We insert this y (t) directly in the ODE and use linearity of the derivatives:
Independence of solutions
Let y 00 + a(t)y 0 + b(t)y = 0 be a linear homogeneous ODE and y1 (t),
y2 (t) two of its solutions. y1 (t), y2 (t) are linearly independent iff their
Wronskian is not zero.
0 0
= 0 ⇐⇒ y1 y20 − y10 y2 = 0 ⇐⇒ y2 − y1 = 0
y1 y2
W [y1 , y2 ] ≡ 0
0
y y
1 2 y2 y1
d d d d y2
⇐⇒ ln y2 − ln y1 = 0 ⇐⇒ (ln y2 − ln y1 ) = ln =0
dt dt dt dt y1
y2
⇐⇒ = c ⇐⇒ y2 = c y1 .
y1
We have proven that the Wronskian is zero if and only if two functions are
linearly dependent: y2 (t) = c y1 (t). This is equivalent to the statement.
1 + t et
t = (1 + t)e t − e t = te t 6= 0,
Example: W [1 + t, e ] =
1 et
so y1 = 1 + t and y2 = e t are linearly independent solutions of
ty 00 − (1 + t)y 0 + y = 0. The general solution is y (t) = c1 (1 + t) + c2 e t .
Bonilla (UC3M) Lecture 3 October 8, 2019 5 / 26
Linear second order ODEs
Abel’s formula
Let y 00 + a(t)y 0 + b(t)y = 0 be a linear homogeneous ODE and y1 (t),
d
y2 (t) two of its solutions. Then dt W [y1 , y2 ] = −a(t) W [y1 , y2 ].
d d d d
W [y1 , y2 ] = (y1 y20 − y1 y20 ) = (y1 y20 ) − (y10 y2 )
dt dt dt dt
= (y1 y200 + y10 y20 ) − (y10 y20 + y100 y2 ) = y1 y200 − y2 y100
= y1 [−a(t)y 0 2 − b(t)y2 ] − y2 [−a(t)y10 − b(t)y1 ] = a(t)y2 y10 − a(t)y1 y20
= −a(t)(y1 y20 − y1 y20 ) = −a(t) W [y1 , y2 ].
Example:
W [1 + t, e t ] = te t =⇒ ln W [1 + t, e t ] = t + ln t
d 1 1+t
=⇒ ln W [1 + t, e t ] = 1 + = ,
dt t t
which is Abel’s formula as ty 00 − (1 + t)y 0 + y = 0 divided by t yields
y 00 − (1 + t)y 0 /t + y /t = 0 and therefore a(t) = − 1+t
t .
Bonilla (UC3M) Lecture 3 October 8, 2019 6 / 26
Linear second order ODEs
y 00 + f (y , y 0 ) = 0,
y 00 + 4y = 0, equivalent to y 0 = v , v 0 = −4y .
y 00 + y 0 − 2y = 0, equivalent to y 0 = v , v 0 = 2y − v .
Variation of parameters
Inhomogeneous ODE: ay 00 + by 0 + cy = F (t).
y1 (t), y2 (t) are independent solutions of the homogeneous ODE.
Particular solution of the inhomogeneous ODE:
Z t Z t
y2 (s)F (s)ds y1 (s)F (s)ds
yp (t) = −y1 (t) + y2 (t) ,
t0 a(s)W (y1 , y2 )(s) t0 a(s)W (y1 , y2 )(s)
Example: ty 00 − (1 + t)y 0 + y = t 2 e 2t
t − 1 2t
y (t) = e + c1 e t + c2 (1 + t).
2
Try particular solution yp = (At + B)e 2t .
Example: y 00 − 2y 0 − 3y = t
Variation of parameters. Solution of homogeneous ODE:
y = u1 e −t + u2 e 3t , because r 2 − 2r − 3 = 0 has the solutions r = −1 and
r = 3. Now u1 (t) and u2 (t) selected so that
u10 e −t + u20 e 3t = 0.
Then
−u10 e −t + 3u20 e 3t = t.
This yields (adding the two equations): 4u20 e 3t = t, hence u20 = 4t e −3t .
Integrating by parts, u2 = −( 12 t
+ 361
)e −3t + c2 . From the first equation,
u10 e −t = −u20 e 3t =⇒ u10 = − 4t e t . Integrating by parts, u1 = 1−t t
4 e + c1 .
2−3t −t
We obtain y (t) = 9 + c1 e + c2 e . 3t
b2
Example: y 00 + by 0 + cy = cos t, with c − 4 = ω2 > 0
Undetermined coefficients. Particular solution: yp = A cos t + B sin t.
Inserting in ODE:
(c − 1)A + Bb = 1, (c − 1)B − Ab = 0 =⇒ A = (c − 1)γ, B = bγ with
γ −1 = (c − 1)2 + b 2 . Then
(c − 1) cos t + b sin t
y (t) = + e −bt/2 (d1 cos ωt + d2 sin ωt),
(c − 1)2 + b 2
40
20
t
20 40 60 80 100
-20
cos t−cos ωt t
y (t) = ω 2 −1
→ 2 sin t, as ω → 1. -40
Reduction of order
(1 + t)2 0 v 00 1 2
(1 + t)v 00 + 2v 0 − v = 0 =⇒ 0 = 1 + −
t v t 1+t
te t
R te t dt
or ln v 0 = t + ln (1+t)
t
2 =⇒ v 0 = (1+t) 2 =⇒ v = (1+t)2
=
te t et
− 1+t + e dt = 1+t . Thus y = e t is the other independent solution.
t
R
d y 02
y 00 + V 0 (y ) = 0 =⇒ 0 = y 0 [y 00 + V 0 (y )] = [ + V (y )].
dt 2
y 02
Then 2 + V (y ) = C and
Z
dy
± p = t − t0 .
2[C − V (y )]
Example: Pendulum: ml θ̈ = −mg sin θ =⇒ 12 θ̇2 + gl (1 − cos θ) = C .
γ
θ̈ + 2β θ̇ + θ = 0, √ , (damped spring).
β=
2m gl
p
λ2 + 2βλ + 1 = 0 gives λ = −β ± β 2 − 1.
√ √
2 2
β > 1, overdamped pendulum: θ = e −βt (ae β −1t + be β −1t ).
0 ≤ βp< 1, underdamped pendulum: θ(t) = ce −βt cos(Ωt + ϕ),
Ω = 1 − β 2 . Also θ = e −βt (a cos Ωt + b sin Ωt), a + ib = ce iϕ .
θ̈ + 2β θ̇ + θ = cos ωt.
If ω < 1, −π < ϕ(ω) < 0. Steady solution is θ(t) = M(ω) cos[ωt + ϕ(ω)].
Resonance:
1 p
max M(ω) = p , ωmax = 1 − 2β 2 .
2β 1 − β 2
Resonance
Spring driven by a periodic forcing term:
θ̈ + 2β θ̇ + θ = cos ωt.
General solution:
p
θ(t) = M(ω) cos[ωt + ϕ(ω)] + ce −βt cos[Ωt + ϕ0 ], Ω= 1 − β2
1 2βω
M(ω) = p , ϕ(ω) = − arctan .
(1 − ω 2 )2 + 4β 2 ω 2 1 − ω2