13. Second-Order Differential Equations and Applications(3)
13. Second-Order Differential Equations and Applications(3)
Generally, a 2nd order differential equation can be written in the following form:
F(x; y, y’, y’’) = 0
where y = y(x) is the unknown function to solve for, and y’ = y’(x), y’’=y’’(x) are its 1 st
and 2nd derivatives.
The function φ(x) will be the solution if it has derivatives φ’(x), φ’’(x) such that
for any x the following equality holds:
F(x; φ(x), φ’(x), φ’’(x)) = 0
*The Cauchy–Kowalevski theorem is the main theorem on existence and uniqueness of solution for ordinary differential
equations (functions of a single variable, a subclass of partial differential equations). January 1, 2025 1
Second-Order Differential Equations
Homogeneous linear 2nd order differential equations
Given: y’’ + by’ + cy = f(x), the homogenous equation is:
yt’’ + byt’ + cyt = 0 (homogeneous)
Searching for the solution using examples:
Example 1
yt’’ – yt = 0
It is easy to verify that the function: y = ex is a solution.
We can show that for any two constants c1, c2, the function:
yt = c1ex + c2e-x is also a solution to (1), since:
yt’ = c1ex - c2e-x
yt’’ = c1ex + c2e-x = yt
so, yt’’ - yt = 0
From Cauchy’s theorem there is no other solution to the homogeneous
equation.
Second-Order Differential Equations January 1, 2025 2
Generalizing:
Example 2
y’’ – 4y = 0 (1)
We can find the solution in the form: y = eλx, where λ is an unknown number.
Substitute this and its second derivative into (1):
y’ = λeλx, and, y’’ = λ2eλx, then:
λ2eλx - 4eλx = 0 → (λ2 – 4)eλx = 0
therefore, a function of the form eλx satisfies equation (1) if and only if: (λ2 – 4) = 0.
The roots that satisfy the equation are λ1= 2 and λ2= -2.
Therefore, the solution is:
y = c1e2x + c2e-2x
Substitute eλx as well as its first and second derivatives into (1):
y’’ + by’ + cy = 0
λ2eλx + bλeλx + ceλx = 0 → eλx(λ2 + bλ + c) = 0
Example:
y’’ – 2y’ + y = 0
λ1,2 = 1 (repeated root)
solution of this homogeneous eq. is:
yt = c1et + c2tet
Second-Order Differential Equations January 1, 2025 8
(3) Case of complex roots
y’’ + by’ + cy = 0 (1)
λ2 + bλ + c (2)
When: b2 - 4c < 0, the roots are complex.
Given the conjugate complex roots: λ1,2 = h ± iv (where h is the real part of the
root), then the general solution will be:
yp = k → 0 – 0 – 3k = 10→0 → k = -10/3
then, general solution:
yt = c1e3t + c2e-t – 10/3
To facilitate interpretation of imaginary exponetial functions: using their equivalint circular functions:
= eht [A1(cos vt + isin vt) + A2(cos vt - isin vt)
= eht [(A1 + A2)cos vt + (A1 – A2) isin vt]
= eht [(A5)cos vt + (A6) sin vt] (where A6 = (A1-A2)i
0 t
January 1, 2025
14
Stability of Equilibrium
2. Second-order differential equations - Stability of time path
yt = c1eλ1t + c2eλ2t + yp
Two real roots:
If the largest root is λi, eventually the solution will approximate: yt = ci(eλit), since
the other term becomes relatively less important.
The time path is unstable when there is at least one positive root.
But “eventually” may be a long time and we may be more interested what happens
over a shorter period, we can answer this if the roots are of the same sort, i.e., both
positive or negative. When this is not the case, what will happen will depend on
the relative values of the constants, c1 and c2.
The distinction between +ve and –ve real part of the root (h) is of particular
importance because it determines whether, the fluctuations that occur will become
damped (convergent) or explosive.
Stability of Equilibrium January 1, 2025 16
There is an easy way to determine whether, if the roots are complex,
the real part is + ve or – ve, by inspecting the equation itself. From:
λ2 + bλ + c = 0,
The roots are: (-b ± √b2 – 4c )/2 = -b/2 ± (i√4c - b2 )/2
Hence, the real part of the complex root, h = –b/2 is -ve if b is + ve and
vice versa.
The path
Second-Order: Applications is non-convergent and price fluctuations are explosive.
January 1, 2025 20
Another application: The dynamic Philips curve
Background:
Philips (1958) published: The relation between unemployment and the rate of
change of money wages in the UK, 1861-1957.
Now we add a 3rd equation for unemployment. Assume (for simplicity) that the only
government policy that matters is monetary policy. Unemployment responds to the
growth of real money supply (M/P). Denoting the rate of growth of nominal money
supply by m:
dU/dt= -k(m-p) (3)
(where k > 0 and m-p is the growth of real money-supply, i.e., of M/P).
[Note that, if m and p are the growth rates, i.e., and the growth rate of real money
supply, is m-p]
According to (3), the change in the unemployment rate over time is determined by the
rate of growth or real money supply. January 1, 2025
Second-Order: Applications 29
The time path of π (similarly for p or U):
Equations (1) – (3):
p = α – T – βU + gπ (1)
dπ/dt = j(p – π) (2)
dU/dt= -k(m-p) (3)
constitute a model with 3 endogenous variables, π, p and U.
We can collapse the model into (any) one equation we choose, i.e., in π, p, or U;
for example, if we choose to derive a differential equation in π:
Putting (1) into (2):
dπ/dt = j(α – T – βU + gπ – π), or
dπ/dt = j(α – T – βU) – j(1-g)π (4)
Differentiate (4) with respect to time:
d2π/dt2 = -jβ(dU/dt) – j(1-g) (dπ/dt) (5)
Second-Order: Applications January 1, 2025 30
Put (3) into (5) to replace dU/dt with -k(m-p):
d2π/dt2 = jβkm – jβkp – j(1-g) (dπ/dt) (5)’
We still need to eliminate p. From (2):
p = (1/j)(dπ/dt) + π
Substituting into (5)’:
d2π/dt2 + [βk + j(1-g)]dπ/dt + (jβk)π = jβkm
[2nd order linear differential eqn with constant coefficients and constant term]