4 Second Order Linear ODEs 1
4 Second Order Linear ODEs 1
4 Second Order Linear ODEs 1
Non-linear ODE
For homogeneous linear ODE,
▪ any linear combination of two solutions on an
open interval I is again a solution of that ODE on I.
▪ In particular, for such an equation, sums and
constant multiples of solutions are again
solutions.
Also called linearity principle
Means that we can obtain further solutions
from given ones by adding them or by
multiplying them with any constant
If y1 is a solution and y2 is a solution then the
following is also a solution
▪ y = c1y1 + c2y2
Note: For Homogeneous linear ODES only!
y’’ + y = 0
▪ y = cos x and y = sinx
y’’ + y = 1
▪ y = 1 + cosx and y = 1 + sinx
y’’y – xy’ = 0
▪ y = x2 and y = 1
y = cosx and y = sinx
are solutions of the homogeneous linear ODE
y’’ + y = 0
A second-order homogeneous linear ODE
initial value problem has two initial conditions
▪ y(x0) = K0
▪ y’(x0) = K1
Which are used to determine two arbitrary
constants c1 and c2 in a general solution
y = c1y1 + c2y2
Determine the 2 solutions
Get the general solution through substituting
the solutions in
▪ y = c1y1 + c2y2
Get the derivative of y
Obtain the constants c1 and c2 using the
initial values
Verify by substituting the constants into
▪ y = c1y1 + c2y2
Solve the initial value problem
▪ y’’ + y = 0
▪ y(0) = 3.0
▪ y’(0) = -0.5
Some solutions are insufficient to satisfy the
initial conditions.
▪ This means that the solution is not general
enough.
▪ Try!
TOOL 3 is a powerful tool as we’ll see later.
A general solution of an ODE (2) on an open
interval I is a solution y = c1y1 + c2y2 in
which y1 and y2 are solutions of (2) on I that
are not proportional, and c1 and c2 are
arbitrary constants.
These y1, y2 are called a basis of solutions of
(2) on I.
A particular solution of (2) on I is obtained if
we assign specific values to c1 and c2 in (5).
Linearly independent
▪ k1y1(x) + k2y2(x) = 0
Everywhere on I implies
k1 = 0 and k2 = 0
Linearly dependent
▪ k1 and k2 not both zero
A basis of solutions of (2) on an open interval I
is a pair of linearly independent solutions of
(2) on I.
Note: if p and q are continuous on I, then (2)
has a solution
▪ It includes all solutions of (2) on I
▪ There are no singular solutions
Determine the basis
▪ Confirm if they are linearly independent through
division
Get the general solution through substituting
the solutions in
▪ y = c1y1 + c2y2
Get the derivative of y
Obtain the constants c1 and c2 using the initial
values
Verify by substituting the constants into
▪ y = c1y1 + c2y2
Verify by substitution that
▪ y1 = ex and y2 = e-x
are solutions of the ODE
▪ y’’ – y = 0.
Solve using the given the initial conditions
▪ y(0) = 6, y’(0) = -2
Solutions can often be found through
inspection.
The second linearly independent solution can
be obtained by solving a first-order ODE.
Verify that your y1 is a solution through
substitution
Use
▪ y2 = y1u = y1 U dx
▪ U = (1/y12)e-pdx
To obtain the second solution y2
Find a basis of solutions of the ODE
(x2 – x)y’’ – xy’+ y = 0
Homogeneous Linear ODEs
Second-order homogeneous linear ODE
▪ y’’ + ay’ + by = 0
p and q are constants (a and b)
Has a characteristic equation or auxiliary
equation with 3 different types of roots
▪ 2 + a + b = 0
Cases Type of roots
Case I Two real roots if a2 – 4b > 0
Case II A real double root if a2 – 4b = 0
Case III Complex conjugate roots if a2 – 4b < 0
Identify
▪ a and b
Obtain the characteristic equation
▪ 2 + a + b = 0
Use the following formulas
Case Roots Basis General solution
I Distinct real 𝑒 𝜆1 𝑥 , 𝑒 𝜆2 𝑥 𝑦 = 𝑐1 𝑒 𝜆1 𝑥 + 𝑐2 𝑒 𝜆2 𝑥
𝜆1 and 𝜆2
II Real double root 𝑒 −𝑎𝑥/2 , 𝑦 = (𝑐1 + 𝑐2 𝑥)𝑒 −𝑎𝑥/2
𝜆 = −𝑎/2
𝑥𝑒 −𝑎𝑥/2
III Complex 𝑒 −𝑎𝑥/2 cos 𝜔𝑥, 𝑦
conjugate 𝑎𝑥
1
𝑒 −𝑎𝑥/2 sin 𝜔𝑥 = 𝑒 −2
(𝐴 cos 𝜔𝑥
− 𝑎 ± 𝑖𝜔
2 + 𝐵 sin 𝜔𝑥)
Solve the initial value problem
▪ y’’ + y’ – 2y = 0
▪ y(0) = 4
▪ y’(0) = -5
Solve the initial value problem
▪ y’’ + y’ + 0.25y = 0
▪ y(0) = 3.0
▪ y’(0) = -3.5
Solve the initial value problem
▪ y’’ + 0.4y’ + 9.04y = 0
▪ y(0) = 0
▪ y’(0) = 3
A general solution of the ODE
𝑦 ′′ + 𝜔2 𝑦 = 0
Is
𝑦 = 𝐴 cos 𝜔𝑥 + 𝐵 sin 𝜔𝑥
*NOTE:
I(t) = dQ/dt
Q(t) = I(t) dt
LI’ + RI + (1/C) Idt = E(t) = E0 sin t
▪ LI’ + RI + (1/C) Idt = E0 sin t
In terms of Q
▪ LQ’’ + RQ’ + (1/C)Q = E0 sin t
Substitute R, L, C and the derivative E’ into
▪ LI’’ + RI’ + (1/C)I = E0 cos t
Solve for solution Ih
Solve for reactance
▪ S = L – 1/C
Solve for coefficients
Plug into
▪ Ip = a cos t + b sin t
Find the current I(t) in an RLC-circuit with
R=11 (ohms), L=0.1H (henry), C=10-2F
(farad), which is connected to a source of
voltage E(t)=100 sin400t. Assume that
current and charge are zero when t=0.