<< Chapter < Page Chapter >> Page >
This module is part of the collection, A First Course in Electrical and Computer Engineering . The LaTeX source files for this collection were created using an optical character recognition technology, and because of this process there may be more errors than usual. Please contact us if you discover any errors.

With our understanding of the functions e x , e j Θ , and the quadratic equation z 2 + b a z + c a = 0 , we can undertake a rudimentary study of differential and difference equations.

Differential Equations. In your study of circuits and systems you will encounter the homogeneous differential equation

d 2 d t 2 x ( t ) + a 1 d d t x ( t ) + a 2 = 0 .

Because the function e s t reproduces itself under differentiation, it is plausible to assume that x ( t ) = e s t is a solution to the differential equation. Let's try it:

d 2 d t 2 ( e s t ) + a 1 d d t ( e s t ) + a 2 ( e s t ) = 0 ( s 2 + a 1 s + a 2 ) e s t = 0 .

If this equation is to be satisfied for all t , then the polynomial in s must be zero. Therefore we require

s 2 + a 1 s + a 2 = 0 .

As we know from our study of this quadratic equation, the solutions are

s 1 , 2 = - a 1 2 ± 1 2 a 1 2 - 4 a 2 .

This means that our assumed solution works, provided s = s 1 or s 2 . It is a fundamental result from the theory of differential equations that the most general solution for x ( t ) is a linear combination of these assumed solutions:

x ( t ) = A 1 e s 1 t + A 2 e s 2 t .

If a 1 2 - 4 a 2 is less than zero, then the roots s 1 and s 2 are complex:

s 1 , 2 = - a 1 2 ± j 1 2 4 a 2 - a 1 2 .

Let's rewrite this solution as

s 1 , 2 = σ ± j ω

where σ and ω are the constants

σ = - a 1 2
ω = 1 2 4 a 2 - a 1 2 .

With this notation, the solution for x ( t ) is

x ( t ) = A 1 e σ t e j ω t + A 2 e σ t e - j t ω t .

If this solution is to be real, then the two terms on the right-hand side must be complex conjugates. This means that A 2 = A 1 * and the solution for x ( t ) is

x ( t ) = A 1 e σ t e j ω t + A 1 * e σ t e - J ω t = 2 Re { A 1 e σ t e j ω t } .

The constant A 1 may be written as A 1 = | A | e j φ . Then the solution for x ( t ) is

x ( t ) = 2 | A | e σ t cos ( ω t + φ ) .

This “damped cosinusoidal solution” is illustrated in [link] .

Figure one is a graph with unlabeled axes, with the horizontal axis  ranging in value from 0 to 10 in increments of one, and the vertical axis ranging in value from -20 to 20 in increments of 5. There are three curves on this graph. The first begins at the upper-left corner of the graph, at (0, 20), and is drawn decreasing from left to right at a decreasing rate, until, by (8, 0) it is nearly indiscernible from the horizontal axis, where it continues and terminates at (10, 0). The second curve is a mirror image of the first across the horizontal axis, beginning in the lower-left corner of the graph and continuing to the right until it is horizontal along the axis. The third curve seems to follow a wave-like pattern that is bound by the two curves above and below. The curve begins at (0, 10) and starts in a positive direction, then moves right with five peaks and troughs to the right until it is nearly a horizontal line by the far right of the graph. Along these graphs is an expression that reads 2*abs(A)*exp(sigma*t), and the entire graph has a small label that reads |A|=10 Figure one is a graph with unlabeled axes, with the horizontal axis  ranging in value from 0 to 10 in increments of one, and the vertical axis ranging in value from -20 to 20 in increments of 5. There are three curves on this graph. The first begins at the upper-left corner of the graph, at (0, 20), and is drawn decreasing from left to right at a decreasing rate, until, by (8, 0) it is nearly indiscernible from the horizontal axis, where it continues and terminates at (10, 0). The second curve is a mirror image of the first across the horizontal axis, beginning in the lower-left corner of the graph and continuing to the right until it is horizontal along the axis. The third curve seems to follow a wave-like pattern that is bound by the two curves above and below. The curve begins at (0, 10) and starts in a positive direction, then moves right with five peaks and troughs to the right until it is nearly a horizontal line by the far right of the graph. Along these graphs is an expression that reads 2*abs(A)*exp(sigma*t), and the entire graph has a small label that reads |A|=10
The Solution to a Second-Order Differential Equation

Difference Equations. In your study of digital filters you will encounter homogeneous difference equations of the form

x n + a 1 x n - 1 + a 2 x n - 2 = 0 .

What this means is that the sequence { x n } obeys a homogeneous recursion :

x n = - a 1 x n - 1 - a 2 x n - 2 .

A plausible guess at a solution is the geometric sequence x n = z n . With this guess, the difference equation produces the result

z n + a 1 z n - 1 + a 2 z n - 2 = 0 ( 1 + a 1 z - 1 + a 2 z - 2 ) z n = 0 .

If this guess is to work, then the second-order polynomial on the left-hand side must equal zero:

1 + a 1 z - 1 + a 2 z - 2 = 0

1 + a 1 z - 1 + a 2 z - 2 = 0 z 2 + a 1 z + a 2 = 0 .

The solutions are

z 1 , 2 = - a 1 2 ± j 1 2 4 a 2 - a 1 2 = r e j θ .

The general solution to the difference equation is a linear combination of the assumed solutions:

x n = A 1 z 1 n + A 2 ( z 1 * ) n = A 1 z 1 n + A 1 * ( z 1 * ) n = 2 Re { A 1 z 1 n } = 2 | A | r n cos ( θ n + φ ) .

This general solution is illustrated in [link] .

Figure two is a graph with unlabeled axes, with the horizontal axis  ranging in value from 0 to 10 in increments of one, and the vertical axis ranging in value from -20 to 20 in increments of 5. There are two curves on this graph. The first begins at the upper-left corner of the graph, at (0, 20), and is drawn decreasing from left to right at a decreasing rate, until, by (8, 0) it is nearly indiscernible from the horizontal axis, where it continues and terminates at (10, 0). The second curve is a mirror image of the first across the horizontal axis, beginning in the lower-left corner of the graph and continuing to the right until it is horizontal along the axis. Inside these two curves are various vertical lines beginning from the horizontal axis that follow a wave-like pattern, with five positive groups of lines and five negative groups of lines. The figure has an expression near the curves that reads, 2*abs(A)*r.^n). A second expression above the curves reads |A|=10. Figure two is a graph with unlabeled axes, with the horizontal axis  ranging in value from 0 to 10 in increments of one, and the vertical axis ranging in value from -20 to 20 in increments of 5. There are two curves on this graph. The first begins at the upper-left corner of the graph, at (0, 20), and is drawn decreasing from left to right at a decreasing rate, until, by (8, 0) it is nearly indiscernible from the horizontal axis, where it continues and terminates at (10, 0). The second curve is a mirror image of the first across the horizontal axis, beginning in the lower-left corner of the graph and continuing to the right until it is horizontal along the axis. Inside these two curves are various vertical lines beginning from the horizontal axis that follow a wave-like pattern, with five positive groups of lines and five negative groups of lines. The figure has an expression near the curves that reads, 2*abs(A)*r.^n). A second expression above the curves reads |A|=10.
The Solution to a Second-Order Difference Equation

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, A first course in electrical and computer engineering. OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10685/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'A first course in electrical and computer engineering' conversation and receive update notifications?

Ask