Transforming a discrete-time signal — whether in time or amplitude — is certainly possible, and often in interesting ways. In practice, scaling and time shifting are the two most important signal modifications encountered. Scaling changes the values of dependent variable on amplitude-axis while time shifting affects the values of independent variable on time-axis.

Below we describe addition and multiplication of two signals as well as scaling and time shifting a signal in detail.

## Addition

For addition of two discrete-time signals, say and , add the two signals sample-by-sample: for every , e.g.,

and so on.

## Multiplication

For multiplication, multiply the two signals sample-by-sample, as we did with addition: for every , e.g.,

and so on.

## Scaling

Scaling implies multiplying the signal amplitude by a constant number resulting in , where can be positive, negative, greater than or lower than . For example, Figure below shows a signal scaled by 4 (compare the amplitudes of both signals on y-axis). One word of caution: The whole signal gets scaled by the same value here and hence scaling is different than sample-by-sample multiplication of two signals.

## Time Shifting

A signal can be shifted to the right or left by any amount . There are two ways to look at time shifting a signal.

### Conventional Method – Shifting the Signal

Most textbooks on discrete-time signals describe this process as follows.

[Delay] For , the time shift results in a delay of by units of time. So plot by shifting two units to the right as shown in Figure below.

[Advance] For , the time shift results in an advance of by units of time. So plot by shifting two units to the left as shown in Figure below.

This is simple to remember: Write the time shift as . Shift right for and shift left for .

There are two problems with the approach above.

- It does not explain why we are doing what we are doing.
- A confusion might arise in the following way. The past samples of the sequence are to the left of the origin while the future samples are to the right. When we advance a signal by shifting left, a beginner might think that the future samples are on the left side. A similar argument holds for delaying a signal.

### Intuitive Method – Shifting the Axis

This method is based on the earliest notions of time kept by humans: past, present and future. Replacing the word present with the NOW, consider the following quote:

"Realize deeply that the present moment is all you have. Make the NOW the primary focus of your life."

In signal processing applications, NOW is the time index and we want to make it the primary focus of a signal’s life, as shown in Figure below.

Looking from this perspective,

[Delay] For , clearly implies traveling units in the past. So plot by going 2 units back in time and making it the new NOW, i.e., time index 0 as shown in Figure below.

[Advance] For , obviously implies a future travel of units. So plot by going 2 units towards the future and making it the new NOW, i.e., time index 0 as shown in Figure below.

Stated in another way, just look at the time-axis itself. Keep the discrete-time signal as it is, but move 0 time index units to the left for and units to the right for , as in Figure above. Notice that index 0 of is at the same sample as index of , which indicates accessing a future value. Although the difference is only how to look at the process, this is a simpler and more intuitive approach. This will be very helpful when we will discuss the topic of convolution later.

Note that as far as drawing time shifted signals is concerned, we will mostly use the first approach because it saves page space by aligning the time-axis indices right on top of one another.

Understanding time shifting a signal makes it easy to analyze seemingly complicated equations such as

which is basically addition of for and . We can simply break it down to a more recognizable form by substituting values of as

Now we can easily draw the time shifted versions of and add them together to find the resultant signal. An example with a unit impulse signal and its time shifted versions is illustrated in Figure below.

## Flipping or Time-Reversal

When the independent variable is replaced by , the signal is reflected or flipped around the time origin because the sample at shifts to , sample at shifts to , and so on. Figure below illustrates this concept by plotting and .

Note that the rules of shifting to the left or right also become reverse due to the flipped time-axis, , itself. For example, from the perspective of intuitive method above, an axis of instead of suggests that the past becomes the future, and vice versa. Hence, first flips the signal around time origin, then travels units to the past to label it the new NOW (time index ).

## Circular Shift

Circular shift is very similar to time shifting of a signal, except that the available axis for time shifting a signal is from to while we only focus on a segment of samples for a circular shift.

If a signal is circularly right shifted by , the samples of the signal that fall off to the right of length- segment reappear at the start. Similarly, if is circularly left shifted by , the samples of the signal that fall off to the left of length- segment reappear from the end. Just like a video game character which disappears at one end of the screen to emerge from the other (Pac-man, for example).

A simple rule to remember circular shift is "what goes around comes around".

As circular shift is done with respect to a length- segment, shifts are computed modulo and denoted as , where means shifting the signal as we normally would, but bringing them back in the range from the opposite side. For example, the next Figure shows two examples of circular shifts:

- is a right shift of in every respect, except for sample at time index . Instead of going to index , it returns from the left at index .
- Again, is a left shift of for most samples, except for samples at time indices , and . Instead of going to negative time, these three samples return from the right at indices , and , respectively.

As an exercise, try drawing and . You will find that these shifts are actually the same as and , respectively.

An interesting question at this stage is: what will be the result of a circularly flipped signal ? The logic of circular shift stays the same. Like regular flipping, the sample at index remains fixed. The sample at index should take a position at but there is no negative indexing in circular notation and , which takes it to index . Figure below shows for the same signal as above.

The significance of circular shift will become clear when we discuss the Discrete Fourier Transform (DFT) later.

If you found this article useful, you might want to subscribe to my email list below to receive new articles.