<< Chapter < Page Chapter >> Page >
A module concerning the concepts involved in solving linear constant-coefficient difference equations.

Introduction

The approach to solving linear constant coefficient difference equations is to find the general form of all possible solutions to the equation and then apply a number of conditions to find the appropriate solution. The two main types of problems are initial value problems, which involve constraints on the solution at several consecutive points, and boundary value problems, which involve constraints on the solution at nonconsecutive points.

The number of initial conditions needed for an N th order difference equation, which is the order of the highest order difference or the largest delay parameter of the output in the equation, is N , and a unique solution is always guaranteed if these are supplied. Boundary value probelms can be slightly more complicated and will not necessarily have a unique solution or even a solution at all for a given set of conditions. Thus, this section will focus exclusively on initial value problems.

Solving linear constant coefficient difference equations

Consider some linear constant coefficient difference equation given by A y ( n ) = f ( n ) , in which A is a difference operator of the form

A = a N D N + a N - 1 D N - 1 + . . . + a 1 D + a 0

where D is the first difference operator

D ( y ( n ) ) = y ( n ) - y ( n - 1 ) .

Let y h ( n ) and y p ( n ) be two functions such that A y h ( n ) = 0 and A y p ( n ) = f ( n ) . By the linearity of A , note that L ( y h ( n ) + y p ( n ) ) = 0 + f ( n ) = f ( n ) . Thus, the form of the general solution y g ( n ) to any linear constant coefficient ordinary differential equation is the sum of a homogeneous solution y h ( n ) to the equation A y ( n ) = 0 and a particular solution y p ( n ) that is specific to the forcing function f ( n ) .

We wish to determine the forms of the homogeneous and nonhomogeneous solutions in full generality in order to avoid incorrectly restricting the form of the solution before applying any conditions. Otherwise, a valid set of initial or boundary conditions might appear to have no corresponding solution trajectory. The following sections discuss how to accomplish this for linear constant coefficient difference equations.

Finding the homogeneous solution

In order to find the homogeneous solution to a difference equation described by the recurrence relation k = 0 N a k y ( n - k ) = f ( n ) , consider the difference equation k = 0 N a k y ( n - k ) = 0 . We know that the solutions have the form c λ n for some complex constants c , λ . Since k = 0 N a k c λ n - k = 0 for a solution it follows that

c λ n - N k = 0 N a k λ N - k = 0

so it also follows that

a 0 λ N + . . . + a N = 0 .

Therefore, the solution exponential are the roots of the above polynomial, called the characteristic polynomial.

For equations of order two or more, there will be several roots. If all of the roots are distinct, then the general form of the homogeneous solution is simply

y h ( n ) = c 1 λ 1 n + . . . + c 2 λ 2 n .

If a root has multiplicity that is greater than one, the repeated solutions must be multiplied by each power of n from 0 to one less than the root multipicity (in order to ensure linearly independent solutions). For instance, if λ 1 had a multiplicity of 2 and λ 2 had multiplicity 3, the homogeneous solution would be

y h ( n ) = c 1 λ 1 n + c 2 n λ 1 n + c 3 λ 2 n + c 4 n λ 2 n + c 5 n 2 λ 2 n .

Recall that the Fibonacci sequence describes a (very unrealistic) model of what happens when a pair rabbits get left alone in a black box... The assumptions are that a pair of rabits never die and produce a pair of offspring every month starting on their second month of life. This system is defined by the recursion relation for the number of rabit pairs y ( n ) at month n

y ( n ) - y ( n - 1 ) - y ( n - 2 ) = 0

with the initial conditions y ( 0 ) = 0 and y ( 1 ) = 1 .

Note that the forcing function is zero, so only the homogenous solution is needed. It is easy to see that the characteristic polynomial is λ 2 - λ - 1 = 0 , so there are two roots with multiplicity one. These are λ 1 = 1 + 5 2 and λ 2 = 1 - 5 2 . Thus, the solution is of the form

y ( n ) = c 1 1 + 5 2 n + c 2 1 - 5 2 n .

Using the initial conditions, we determine that

c 1 = 5 5

and

c 2 = - 5 5 .

Hence, the Fibonacci sequence is given by

y ( n ) = 5 5 1 + 5 2 n - 5 5 1 - 5 2 n .
Got questions? Get instant answers now!

Finding the particular solution

Finding the particular solution is a slightly more complicated task than finding the homogeneous solution. It can be found through convolution of the input with the unit impulse response once the unit impulse response is known. Finding the particular solution ot a differential equation is discussed further in the chapter concerning the z-transform, which greatly simplifies the procedure for solving linear constant coefficient differential equations using frequency domain tools.

Consider the following difference equation describing a system with feedback

y ( n ) - a y ( n - 1 ) = x ( n ) .

In order to find the homogeneous solution, consider the difference equation

y ( n ) - a y ( n - 1 ) = 0 .

It is easy to see that the characteristic polynomial is λ - a = 0 , so λ = a is the only root. Thus the homogeneous solution is of the form

y h ( n ) = c 1 a n .

In order to find the particular solution, consider the output for the x ( n ) = δ ( n ) unit impulse case

y ( n ) - a y ( n - 1 ) = δ ( n ) .

By inspection, it is clear that the impulse response is a n u ( n ) . Hence, the particular solution for a given x ( n ) is

y p ( n ) = x ( n ) * a n u ( n ) .

Therefore, the general solution is

y g ( n ) = y h ( n ) + y p ( n ) = c 1 a n + x ( n ) * a n u ( n ) .

Initial conditions and a specific input can further tailor this solution to a specific situation.

Got questions? Get instant answers now!

Solving difference equations summary

Linear constant coefficient difference equations are useful for modeling a wide variety of discrete time systems. The approach to solving them is to find the general form of all possible solutions to the equation and then apply a number of conditions to find the appropriate solution. This is done by finding the homogeneous solution to the difference equation that does not depend on the forcing function input and a particular solution to the difference equation that does depend on the forcing function input.

Questions & Answers

A golfer on a fairway is 70 m away from the green, which sits below the level of the fairway by 20 m. If the golfer hits the ball at an angle of 40° with an initial speed of 20 m/s, how close to the green does she come?
Aislinn Reply
cm
tijani
what is titration
John Reply
what is physics
Siyaka Reply
A mouse of mass 200 g falls 100 m down a vertical mine shaft and lands at the bottom with a speed of 8.0 m/s. During its fall, how much work is done on the mouse by air resistance
Jude Reply
Can you compute that for me. Ty
Jude
what is the dimension formula of energy?
David Reply
what is viscosity?
David
what is inorganic
emma Reply
what is chemistry
Youesf Reply
what is inorganic
emma
Chemistry is a branch of science that deals with the study of matter,it composition,it structure and the changes it undergoes
Adjei
please, I'm a physics student and I need help in physics
Adjanou
chemistry could also be understood like the sexual attraction/repulsion of the male and female elements. the reaction varies depending on the energy differences of each given gender. + masculine -female.
Pedro
A ball is thrown straight up.it passes a 2.0m high window 7.50 m off the ground on it path up and takes 1.30 s to go past the window.what was the ball initial velocity
Krampah Reply
2. A sled plus passenger with total mass 50 kg is pulled 20 m across the snow (0.20) at constant velocity by a force directed 25° above the horizontal. Calculate (a) the work of the applied force, (b) the work of friction, and (c) the total work.
Sahid Reply
you have been hired as an espert witness in a court case involving an automobile accident. the accident involved car A of mass 1500kg which crashed into stationary car B of mass 1100kg. the driver of car A applied his brakes 15 m before he skidded and crashed into car B. after the collision, car A s
Samuel Reply
can someone explain to me, an ignorant high school student, why the trend of the graph doesn't follow the fact that the higher frequency a sound wave is, the more power it is, hence, making me think the phons output would follow this general trend?
Joseph Reply
Nevermind i just realied that the graph is the phons output for a person with normal hearing and not just the phons output of the sound waves power, I should read the entire thing next time
Joseph
Follow up question, does anyone know where I can find a graph that accuretly depicts the actual relative "power" output of sound over its frequency instead of just humans hearing
Joseph
"Generation of electrical energy from sound energy | IEEE Conference Publication | IEEE Xplore" ***ieeexplore.ieee.org/document/7150687?reload=true
Ryan
what's motion
Maurice Reply
what are the types of wave
Maurice
answer
Magreth
progressive wave
Magreth
hello friend how are you
Muhammad Reply
fine, how about you?
Mohammed
hi
Mujahid
A string is 3.00 m long with a mass of 5.00 g. The string is held taut with a tension of 500.00 N applied to the string. A pulse is sent down the string. How long does it take the pulse to travel the 3.00 m of the string?
yasuo Reply
Who can show me the full solution in this problem?
Reofrir Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Signals and systems. OpenStax CNX. Aug 14, 2014 Download for free at http://legacy.cnx.org/content/col10064/1.15
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Signals and systems' conversation and receive update notifications?

Ask