First-Order Differential Equations and Applications
First-Order Differential Equations and Applications
The case where f(x) is absent altogether is called the homogeneous form, i.e.,
a0(dny/dxn) + a1(dn-1y/dxn-1) + ...+ an-1(dy/dx) + any = 0
Linear
Non-linear
[Not examined]
Homogeneous Non-homogeneous
January 1, 2025
Differential equations 6
Generalizing:
P = X(1 + i/n)n
In particular, if X=$1 and the rate of interest i = 100% (i = 1):
P = (1 + 1/n)n
[i.e., if interest is compounded daily, (n=365), P = 2.715]
If interest was compounded continuously, we would have a principal given by
the value approached by P as n → ∞.
Of course, money is not compounded continuously, but one could think of
events which behave very much like a sum on which interest is compounded
continuously.
January 1, 2025 7
Differential equations
Solution of Linear 1st order Differential Equations
These can be written in the general form:
dy/dt + ay = f(t)
If f(t) = 0 (homogeneous form):
dy/dt + ay = 0
Since the above equation is separable (i.e., we can separate the terms with y
from those with t), the solution can be found using integration, as follows:
dy/dt = - ay → dy/y = -adt, then:
∫dy/y = -a∫dt
ln(y) + c1 = -at + c2 → ln(y) = -at + c, then:
elny = e(-at + c) → y(t) = e-atec = Ae-at (solution)
[y(t) is same thing as yt]
January 1, 2025 8
First-Order: Solution
Verify by substituting into the differential equation:
dy/dt = d(Ae-at)/dt = -aAe-at, so:
dy/dt + ay = -a Ae-at + a(Ae-at) = 0
We can find the same solution in a more general way:
Given: dy/dt + ay = 0:
Assume that the solution is in this form: y(t) = ceλt, then:
dy/dt = λceλt, and: λceλt + aceλt = 0 → ceλt (λ + a) = 0 → λ = -a,
and: y(t) = ce-at.
This is a general way of solving the homogeneous equation and there is an arbitrary
constant, c, appearing. To remove the unknown constant requires additional
information – i.e., an initial condition.
y(t) = ce-at; at t=0: y(0) = ce0 = c = y(0). So, for homogeneous equations the constant
= y(0).
y(t) = y(0)e-at or: yt = y0e-at
This is the solution to the homogeneous equation.
First-Order: Solution January 1, 2025 9
The general solution:
Besides the solution to the homogenous equation there is also a
particular solution; we need to take into account the non-
homogeneous part, f(t). The particular solution will be any particular
solution to the complete equation.
→ k1 – ½ko – ½k1t = t – 3
→ - ½k1t – (½ko - k1) = t – 3
When the question is simply whether the economic forces will finally bring
the system towards equilibrium, without being concerned about the time
path of price (which relates to existence and stability of equilibrium), then the
question concerns the static stability of the system.
First-Order: Applications 19
January 1, 2025
But even if economic forces push the system towards equilibrium, we
cannot exclude the case where equilibrium is overtaken. This could give
rise to oscillations before approaching equilibrium, if we ever reach it.
So the more interesting question is that of dynamic stability.
On the other hand, when examining dynamic stability we express the behavioural
assumption in the form of a functional equation, which is then solved to derive the
time path of price.
So, price will be changing in response to excess demand:
dP/dt = P’ = c[D(P) – S(P)],
[i.e., price responds to excess demand (or supply), with a positive adjustment coefficient c]
From which we can solve for the time path of the time path of price, P t.
First-Order: Applications January 1, 2025 21
In the case of linear demand and supply:
D = a + bP, S = a 1 + b1 P [if D and S have conventional slope, b < 0, b1 > 0]
dP/dt = c[a + bP – a1 – b1P] = c(b - b1)P + c(a – a1)
So, in standard form: dP/dt - c(b - b1)P = c(a – a1) (1)
(Static) equilibrium price is derived by setting dP/dt = 0:
c(b - b1)P + c(a – a1) = 0
Pe = - (a – a1)/(b – b1)
On the other hand, to find the time path of price, we solve (1):
The solution of the homogeneous equation is:
Pc = Aec(b – b1)t (complimentary solution)
January 1, 2025
24
First-Order: Applications
(Same) Example: Dynamic stability
dP/dt = P’ = c[80 – 4P – (-10 + 2P)] = c(90 – 6P) = -6cP + 90c
or: dP/dt + 6cP = 90c
which has the solution:
Given that P0 = 18 → P0 = A + 15 = 18 → A = 18 – 15 = 3
Pt = 3e-6ct + 15
Given c > 0, the term 3e-6ct → 0 and equilibrium is dynamically stable.