Ode Slides
Ode Slides
Ode Slides
First order
Separated and separable variables
Homogeneous equations
Exact differential
Linear equations
Special nonlinear cases: Bernoulli, Riccati, Clairaut
Second order
Linear equations
Sturm-Liouville theory
More Exercices
Systems of ODEs
Note: this document is partly inspired from the course “outils mathématiques pour
la physique” by Guy Royer of faculté des sciences et techniques de Nantes.
Ordinary differential equations
F (x , y , y ′ , . . . , y (n) ) = 0
The equation is . . .
▶ explicit if F (x , y , y ′ , . . . , y (n−1) ) = y (n)
▶ autonomous if F does not depend on x
Pn−1
▶ linear if y (n) = ai (x )y (i) + r (x ). r is the source term
i=0
▶ Homogeneous if r = 0, the solution is a complementary function yc (can be 0).
▶ Nonhomogeneous (inhomogeneous) if r ̸= 0, the solution is a particular integral yp
plus a complementary function y = yc + yp .
It can be complemented with n boundary or initial conditions.
Very general theorems
y ′ (x ) = f (x , y (x )) with y (x0 ) = y0
Example
Prove that y ′ = y 2 satisfies the hypothesis of Picard-Lindelöf theorem.
Verify that the solution is of the form y (x ) = (x −xy0)y +1
0 0
Verify that the maximum domain of existence depends on y0 :
if y0 = 0,
R
1
−∞, x0 + if y0 > 0,
Imax = y0
x0 + 1
, +∞ if y0 < 0.
y0
and that we observe an explosion in finite time.
Grönwall’s inequality (lemma)
then Z t
u(t) ⩽ u(a) exp β(s)ds , ∀t ∈ I.
a
Exercise
Prove the lemma. Rt
Hint: introduce v (t) = exp β(s)ds , see which ODE is satisfied by v and study
a
the monotony of u/v .
First order equations
Separated variables
f (x ) + g(y )y ′ = 0
R R
Use direct integration1 : ( f )(x ) + ( g)(y ) = c ∈ R.
Separable variables
f1 (x )g1 (y ) + f2 (x )g2 (y )y ′ = 0
Study the cases g1 (y ) = 0 and eliminate the domain where f2 (x ) = 0. Then
separate the variables.
Exercise: solve 2x (1 − y 2 ) − y ′ = 0.
1
R
f is the notation for a primitive of f .
First order equations
Homogeneous equations
y
y′ = f ( )
x
Use change of variable z = y /x so that y ′ = z ′ x + z, obtain a separable equation
in (z, x ).
2x 2 +xy −2y 2
Exercise: solve y ′ = x2
.
Exact differential
∂f ∂g
f (x , y ) + g(x , y )y ′ = 0 with =
∂y ∂x
then dF = f (x , y )dx + g(x , y )dy is an exact differential which can be obtained by
integration:
∂F ∂F
=f and = g.
∂x ∂y
y ′ + a(x )y = b(x )
Homogeneous case
If b = 0, then it is an equation with separated variables:
Z
yc (x ) = K exp − a
y
Exercise: solve y ′ − x
= 1.
Special nonlinear cases
Bernoulli’s equations
y ′ + a(x )y = b(x )y n
Set z = y 1−n and reduce the problem to a linear equation.
3
y
Exercise: Solve y ′ + 2x
= − xy2 .
Riccati’s equations
Clairaut’s equations
Generality
▶ Superposition: solution to homogeneous equation + particular solution,
▶ If y1 and y2 are independent solutions to the homogeneous equation, the
general solution is y = λ1 y1 + λ2 y2 , λi ∈ R.
▶ If y1 is one solution to the homogeneous equation, one can set y2 = y1 z and
z ′ is the solution to a first order equation.
▶ To find the particular solution we can use the variation of the constants :
y = λ1 (x )y1 + λ2 (x )y2 .
▶ The examination of the RHS (c) can suggest a particular solution.
′
Exercise: search solutions to y ′′ + 4 yx + 2 xy2 = 0 under the form y = x m .
Linear second order equations with constant coefficients
y ′′ + ay ′ + by = c(x )
Homogeneous equation c = 0
Searching for solutions as e rx leads to the characteristic equation r 2 + ar + b = 0
▶ If a2 − 4b > 0, two real roots and y = Ae r1 x + Be r2 x .
▶ If a2 − 4b = 0, one real root and y = (Ax + B)e r1 x .
▶ If a2 − 4b < 0, two conjugate complex roots r = α ± iβ and
y = e α x (A cos(βx ) + B sin(βx )).
√ √
Remark: in the case a = 0 and b < 0, y = A cosh( −bx ) + B sinh( −bx ).
Particular solution
▶ If c(x ) = pn (x )e µx , then yp = x d qn (x )e µx where d = 0 if µ is not a root of
the characteristic equation, else d is the multiplicity of the root µ.
▶ If c(x ) = (α cos(ωx ) + β sin(ωx ))e γx , then y = x d (λ cos(ωx ) + µ sin(ωx ))e γx ,
where d = 0 if γ + iω is not a root of the characteristic equation, else d = 1.
Special nonlinear second order equation
1 d dX
SL(X ) = p + qX
s dx dx
SL(X ) + λX = 0
Let L2s (I) be the Hilbert space of s-weighted square-integrable functions with inner
product: Z
(f , g)L2 = fgs dx
s
I
Exercise: compute (SL(f ), g)L2 − (f , SL(g))L2 , show that only boundary terms
s s
remain.
In the following we make hypothesis on the boundary conditions to get rid of those
terms, so that SL is self-adjoint.
Regular Sturm-Liouville problem
Let I = [a, b], we assume p > 0 and use zero Dirichlet or Neumann or Robin bcs:
a0 X (a) + a1 X ′ (a) = 0
|a0 | + |a1 | ̸= 0
with (a0 , a1 , b0 , b1 ) ∈ R4
b0 X (b) + b1 X ′ (b) = 0 |b0 | + |b1 | ̸= 0
Theorem
i. There exists a countable unbounded family of real simple eigenvalues :
d dXn
p + (q + sλn )Xn = 0
dx dx
iii. For any n ∈ N, the eigenfonction Xn as eaxctly n zeros in ]a, b[; more, the
zeros of Xn−1 are inserted between the zeros of Xn .
!
X
iv. If f ∈ L2s ([a, b]), then the series of functions (f , Xn )L2 ([a,b]) Xn
s
n
converge to f in L2s ([a, b]) (quadratic convergence).
If f is piecewise C 1 , the convergence is simple to the regularized function:
f (x + )+f (x − )
x 7→ 2
If more, f is continuous, the convergence is uniform in [a, b].
Periodic Sturm-Liouville problem
Theorem
Almost the same result as the regular case except that
λ0 is a simple eigenvalue, the others can be multiple eigenvalues.
The theory remains valid for many cases, and we can recover many famous
functions:
▶ Legendre polynomials
▶ Hermite polynomials
▶ Laguerre polynomials
▶ Tchebychev polynomials
▶ Bessel functions
all these functions form Hilbert basis of well-chosen spaces.
Exercices
Solve:
▶ y ′ − 16y = 0
▶ xy ′ − 2y = x 5
▶ y ′ + y = e 2x + e x + 3 sin(x )
▶ x 2y ′ − ey = 0
▶ (x 2 + 1)y ′ + 3xy = x
▶ x 3 y ′ + (2 − 3x 2 )y = x 3
▶ y ′ − (2x + 3x 2 )y − (2x + 3x 2 ) = 0
▶ x (y − 3)y ′ − 4y = 0
▶ y ′′ − 81y = 0
▶ y ′′ + 256y = 0
▶ y ′′ + 4y = 4x 3
▶ y ′′ − 5y ′ + 4y = e x
▶ y ′′ − 2y ′ + y = (x 2 + 1)e x
▶ y ′′ + 2y ′ + 2y = e −x cos(x )
Systems of ODEs
Constant coefficients A
P∞ Ai
We introduce the matrix exponential: e A = i=0 i!
.
Exercise: use the change of unknown function z(t) = e tA y(t), what is the equation
verified by z, give y in case of an homogeneous equation (b(t) = 0).
Exercise: why this method doesn’t work with non-constant matrix A ? Introduce a
primitive of A(t) and see where things stop working.
Resolvent matrix
Let R2 ∋ (t1 , t2 ) 7→ R(t1 , t2 ) ∈ Rn×n be the solution to:
∂
∀(t1 , t2 ), R(t1 , t1 ) = I and R(t1 , t2 ) = A(t1 )R(t1 , t2 )
∂t1
In Rn , y′ (t) = A(t)y(t)
Wronskian
The Wronskian is the determinant of the system:
W (t) = det(y1 , . . . , yn )
▶ Solve:
y1′ = a(y2 − y1 )
y2′ = a(y1 − y2 )
with given initial conditions.
▶ Solve the system corresponding to two masses connected by a spring:
m1 y1′′ = k(y2 − y1 )
m2 y2′ = k(y1 − y2 )
y ′′ = ay ′ + by