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 .
First Order Difference Equations
Standard Form
where a and b are constants.
The solution of the first order difference equation of the form above is given by the following formula:
if
if
where
is the value of y when
.
One of the economic models that employs First Order Difference Equations is the Cobweb model.
In the model, determines
, which in turn determines
, according to the rules
where is the supply function and
the inverse demand function.
II Order Differential Equations with Constant Coefficients
Standard Form
where
are constants.
The general solution of such a differential equation contains two parts; the Complementary Function and the Particular Integral.
To find the Complementary Function:
Write the auxiliary equation in the form: where the differential equation is in the standard form.
Solving the auxiliary equation, a quadratic, will yield two roots, say m1 and m2.
The Complementary Function (CF) is then written based on the roots.
- If m1 and m2 are real and different, then the CF is
- If m1 and m2 are real and equal, ie m1 = m2 = m, then the CF is
- If m1 and m2 are complex roots of the form
and
, then the CF is
where
and
are arbitrary constants.
The Particular Integral is similar to the function of x, on the RHS of the differential equation and it is determined by the method of undetermined coefficients.
If the RHS of the equation is a constant, then we use a trial PI of K (a different constant). A trial PI of a general first degree form and a general second degree form
is used for functions of
and
respectively. If the function is of the form
, then we use
, the same exponential function. Similarly, trigonometric functions will have trial PIs of the form
.
are undetermined coefficients. By finding
and
and substituting
and
into the given differential equation, the values of the undetermined coefficients can be obtained. Hence the Particular Integral is found.
Combine the Complementary Function and the Particular Integral and we will get the General Solution of the Second Order Differential Equation with constant coefficients.
I Order Differential Equations Part II
Linear Differential Equations
Standard Form:
where
and
are functions of
.
To solve this type of differential equation, we multiply the equation throughout by the factor called the Integrating Factor and hence convert the LHS into an exact differential.
Multiplying throughout by , we get
which becomes
Integrating both sides w.r.t x, we get
ie,
Therefore, the formula for the General Solution of a Linear Differential Equation is:
I Order Differential Equations Part I
Standard Form
To solve:
- Make sure that the given differential equation is in the standard form of a variable separable equation.
- Collect the function of x and the differential
to one side and the function of y and
to the other side of the differential equation.
- Integrate both sides with respect to the corresponding variables and get the solution. Add the constant of integration to one side.
An example
Find the solution of the differential equation
, given that
when
.
the general solution:
Given: when
Substituting, we get
the particular solution:
ie, .
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.