Odes PDF
Odes PDF
Odes PDF
M. Ottobre
and
y 00 + a1 (x)y 0 + a2 (x)y = f (x) (2)
in the unknown y(x).
Equation (1) is first order because the highest derivative that appears in it
is a first order derivative. In the same way, equation (2) is second order as
also y 00 appears.
They are both linear, because y, y 0 and y 00 are not squared or cubed etc and
their product does not appear. In other words we do not have terms like (y 0 )2 ,
(y 00 )5 or yy 0 .
If f (x) (b(x), respectively) is zero, then (2) ((1), respectively) is homogeneous,
otherwise it is non homogeneous.
If a1 (x) and a2 (x) are constant, then (2) has constant coefficients.
Example 0.1.
y 00 + 5y = x
is second order, linear, non homogeneous and with constant coefficients.
y 0 + x2 y = e x
yy 00 + y 0 = 0
Important Remark: The general solution to a first order ODE has one
constant, to be determined through an initial condition y(x0 ) = y0 e.g y(0) = 3.
The general solution to a second order ODE contains two constants, to be de-
termined through two initial conditions which can be for example of the form
y(x0 ) = y0 , y 0 (x0 ) = y00 , e.g. y(1) = 2, y 0 (1) = 6.
1
We will in general focus on linear equations. The only non linear ones that
we will stumble across are Separable Equations:
Z Z
dy dy
= y 0 = g(x)h(y) ⇒ = g(x)dx
dx h(y)
and obtain Z
y = e−A(x) eA(x) b(x)dx + e−A(x) C. (4)
The above formula (4) is the general solution. C is a generic constant and it
can be calculated by using the initial conditions.
λ2 + bλ + c = 0, Δ = b2 − 4c.
2
If Δ > 0 the polynomial has two distinct real roots, λ1 , λ2 ∈ R and the solution
to (5) is
y(x) = Aeλ1 x + Beλ2 x , A, B ∈ R.
If Δ = 0 the polynomial has only one root, λ = − 2b , and the solution to (5) is
If Δ < 0 (b2 < 4c) the polynomial has two complex conjugate roots, λ1 , λ2 ∈ C,
namely r
b b 4c − b2
λ1 = − + iω, λ2 = − − iω, ω=
2 2 4
and the solution to (5) is
b
y(x) = e− 2 x (A cos(ωx) + B sin(ωx)) A, B ∈ R.
FACT: If y1 (x) and y2 (x) are two (distinct) solutions of (6) then the general
solution of (6) is
This is it. But, why is that? We need to show that y2 solves (6).
Z
0 0
y2 = y1 u + y1 u,
3
Z
y200 = y100 u + 2y10 u + y1 u0 .
y200 + a1 y20 + a2 y2
Z
= (y1 + a1 y1 + a2 y1 ) u + y1 u0 + (2y10 + a1 y1 ) u = 0
00 0
| {z } | {z }
k k
0 0
where the first addend vanishes because y1 is a solution and the terms in the
second brace vanish because u solves (7).
FACT: Let y1 (x) and y2 (x) be two (distinct) solutions of the homogeneous
equation associated to (8), that is (6). Let yˉ be a particular integral of (8),
then the general solution of (8) is
Because the method of order reduction worked so well before, let’s see if we can
employ it again. So, suppose you are given a solution y1 of the homogenous
equation (6). Let us again look for a solution of (8) in the form
Z
y = y1 v
and try and determine the equation that v has to satisfy in order for y to be a
solution of (8). As before Z
0 0
y = y1 v + y1 v,
Z
y 00 = y100 v + 2y10 v + y1 v 0 .
Now
y 00 + a1 y 0 + a2 y = f (x) ⇔ y1 v 0 + (2y10 + a1 y1 ) v = f (x)
hence v has to solve the equation
0
0 2y1 f (x)
v + + a1 v = .
y1 y1
4
R
v will then
R be of the form v(x) = g1 (x) + Cg2 (x) (see (4)) so that v is of
the form v = G1 (x) + CG2 (x) + D. Hence y(x) is of the form (9) and it is
therefore the general solution we were seeking.