Second Order Difference Equations
Standard Form
or
The solving of a second order difference equation is very similar to the method of solving a second order differential equation, which is discussed in this previous post here.
The General Solution of a second order difference equation has a Complementary Function and a Particular Solution.
The Complementary Function (CF) is found by writing the auxiliary equation
and solving it to find the two roots of such a quadratic equation.
When there are two different roots, m1 and m2, the CF is written as
where A and B are arbitrary constants.
When there are two equal roots, such that m1 = m2 = m, then the CF is written as
.
When there are two complex roots, and
, then the CF is
where
and
.
Based on the standard form of the second order difference equation, the Particular Solution depends on the form , the function in t on the RHS of the difference equation.
Again, similar to the case of differential equations, the Particular Solution (PS) is the same form as but contains undetermined coefficients which are determined by comparing them with the function in the RHS of the given difference equation.
If the function is a constant, say c, then the general form of the PS is k, an unknown constant.
If the function is in the form , then the general form of the PS is
.
If the function is in the form , then a general linear function in t,
, is the general form of the PS.
A homogeneous second order difference equation has zero on the RHS. Its standard form is .
De Moivre’s Formula
For any complex number (and in particular any real number) x, and any integer n,
This is the equation that Abraham de Moivre came up with to link two branches of mathematics together, that of trigonometry and complex numbers.
This formula can be used to find the nth root of a complex number say z.
Written in polar form,
then,
where k varies from 0 to n — 1 to give the n roots of the complex number.