Signal manipulations are generally decomposed of a few basic transformations. These transformations may be classified either as those that are transformations of the independent variable n or those that are transformations of the amplitude of x[n], i.e. the dependent variable.
The most common types of amplitude transformations are addition, multiplication and scaling:
Addition:y[n]=x1[n]+x2[n]Multiplication:y[n]=x1[n]⋅x2[n]Scaling:y[n]=c⋅x[n]
Performing these operations is straightforward and involves only point-wise operations on the signal.
Sequences are often altered and manipulated by modifying the independent function variable n, where f[n] is some function of the index n. If, for some value of n, f[n] is not an integer, y[n]=x[f[n]] is undefined. The most common transformations include shifting (delaying or advancing), reversal, and time-scaling as summarized in the following equations:
Time shifting (delay or advance):f[n]=n−n0Time reversal:f[n]=−nTime scaling = Down- or Up- sampling:f[n]=M⋅n or f[n]=n/M
Determining the effect of modifying the index n may always be accomplished using a simple tabular approach of listing, for each value of the index n, the value of f[n] and then setting y[n]=x[f[n]]. However, for many transformations this is not necessary, and the sequence may be determined or plotted directly. Examples of delaying, time-reversal and time scaling, such as down sampling and up-sampling are illustrated in Fig. 1.
Examples of transformation of the function variable.
Note that shifting, reversal, and time scaling operations are order dependent. Therefore, one needs to be careful in evaluating compositions of these operations.
Shifting and reversal are order dependent operations.
Fig. 2 shows an example in which a signal x[n] is first delayed over n0 samples, resulting in x[n−n0]. Reversing this signal, that is replacing the running index n by −n, results in the signal x[−n−n0]. Switching the order of these two operations, that is first reverse and then delay results in another signal namely x[−n+n0].
Finally the delta pulse may be used to decompose an arbitrary signal x[n] into a, possible infinite, sum of weighted and shifted delta pulses:
x[n]=∞∑k=−∞x[k]δ[n−k]
Each term in the sum, x[k]δ[n−k], is a signal that has amplitude x[k] at index n=k and a value of zero for all other values of the index n.
Example
Express the signal
x[n]=⎧⎪
⎪⎨⎪
⎪⎩3n=02n=11n=20elsewhere
as a sum of scaled and shifted unit step functions.
First express x[n] as a sum of weighted and shifted delta pulses:
x[n]=3δ[n]+2δ[n−1]+δ[n−2].
With δ[n]=u[n]−u[n−1] this becomes:
x[n]=3u[n]−3u[n−1]+2u[n−1]−2u[n−2]+u[n−2]−u[n−3]=3u[n]−u[n−1]−u[n−2]−u[n−3]
Example
The power in a real valued signal x[n] is defined as the sum of squares of the sample values: P=∑∞n=−∞x2[n].
Suppose that a signal x[n] has an even part xe[n]=(13)|n|. If the power
in x[n] is P=2, find the power in the odd part xo[n] of x[n].
P=∞∑n=−∞x2[n]=∞∑n=−∞(xe[n]+xo[n])2[n]=∞∑n=−∞x2e[n]+∞∑n=−∞x2o[n]+2∞∑n=−∞xe[n]⋅xo[n].
The product xe[n]⋅xo[n] is odd and the sum of this odd signal is zero, thus we have:
P=∞∑n=−∞x2e[n]+∞∑n=−∞x2o[n]=Pe+Po
with
Pe=∞∑n=−∞(13)2|n|=−1+2∞∑n=0(13)2n=54.
From this we obtain the result:
Po=P−Pe=2−54=34.