Professional Documents
Culture Documents
xp
17 December 2020
1
1 The general solution of first-order ODEs
A first order, linear differential equation is one of the following form:
dy
+ Py = Q (1.1)
dx
We can find a general solution to the above as follows.
Thm. 1. The general solution of a first order, linear differential equation in
the form as shown in (1.1) is
Z
1
y= IQ dx (1.2)
I
where I is defined as R
I = e P dx (1.3)
Proof.
dy
+ Py = Q
dx
We proceed by multiplying both sides by an integrating factor, I.
dy
I + IP y = IQ
dx
Let
dI
IP = (1.4)
dx
and hence
dy dI
I + y = IQ
dx dx
d
(Iy) = IQ
dx Z
Iy = IQ dx
Z
1
y= IQ dx (1.5)
I
However, we have yet to define I. From (1.4):
1 dI
=P
Z I dx Z
1
dI = P dx
I
Z
ln |I| = P dx + c
R R
P dx+c P dx
I=e = Ae (A = ec )
2
We can disregard the arbitrary constant A as it will always be a multiplier
and never be 0 (ec 6= 0 ∀c). Hence
R
P dx
I=e (1.6)
Equations (1.5) and (1.6) prove Thm. 1.
QED
3
Now let
dy
u= − αy (2.5)
dx
and hence, from (2.4)
du
− βu = 0
dx
This is a first order, linear ODE which we can solve by Thm. 1. Therefore,
where B is an arbitrary constant,
u = Beβx
We can then substitute this into (2.5) and therefore:
dy
− αy = Beβx (2.6)
dx
Finally, we can solve this by Thm. 1.
Z
1
y = −αx e−αx Beβx dx
e
Z
αx
=e Be(β−α)x dx (2.7)
4
3 The general solution of second-order non-
homogeneous ODES
A second order, non-homogeneous, linear differential equation is similar to
its homogeneous counterpart and is represented in following form:
d2 y dy
2
+b + cy = f (x)
dx dx
We can find a general solution to the above with a similar method as previ-
ously as follows.
d2 y dy
+ b + cy = f (x) (3.1)
dx2 dx
and α and β are defined as the roots of the equation λ2 + bλ + c = 0, the
general solution of the differential equation as shown in (3.1) is as follows.
Z Z
αx (β−α)x −βx
y=e e e f (x) dx dx (3.2)
d2 y dy
2
− (α + β) + αβy = f (x)
dx dx
d2 y dy dy
2
−α −β + αβy = f (x)
dx
dx dx
d dy dy
− αy − β − αy = f (x) (3.3)
dx dx dx
Now let
dy
u= − αy (3.4)
dx
and hence, from (3.3)
du
− βu = f (x)
dx
By Thm. 1, we can solve for u.
Z
u=e βx
e−βx f (x) dx
5
By application of Thm. 1. on (3.4), we can solve for y.
Z
y=e αx
e−αx u dx
Z Z
αx −αx βx −βx
=e e e e f (x) dx dx
Z Z
αx (β−α)x −βx
=e e e f (x) dx dx (3.5)
6
Finally, we can calculate y.
αx a x −αx 1 −αx a + βb −αx (β−α)x
y=e − − e − 2e + e + Be +A
β a α aβ 2
ax a a + βb
= − 2 + 2
+ Beβx + Aeαx
αβ α β αβ
αx βx a a a + βb
= Ae + Be + x− 2 + (4.3)
αβ α β αβ 2
(4.3) directly proves Thm. 4.
QED
5 Trial functions
We utilise trial functions to easily find the general solution to specific non-
homogeneous ODEs. For example, by Thm. 4., we can consider the case
where the arbitrary constants are equal to zero, and hence a solution to the
ODE is
a a a + βb
y= x− 2 + (5.1)
αβ α β αβ 2
We recognise this is in the form of y = ax + b, and hence, we can substitute
this into the ODE and equate coefficients in order to find a and b.
6 Appendices
A Alternative form for non-real roots
An alternative form for when the auxiliary equation does not have any real
roots is shown as follows.
α, β ∈/ R. Let α = a + bi and β = α∗ = a − bi (a, b ∈ R) and hence
y = Aeαx + Beβx
= Ae(a+bi)x + Be(a−bi)x
= eax Aeibx + Be−ibx