C91 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C9 · Lesson 1 · Signals in continuous and discrete time

Functions of time, and lists of numbers

A microphone puts out a voltage that changes smoothly with time: a function x(t), defined at every instant. Once a converter samples it, the same sound becomes a list of numbers, one every 1/48,000 of a second: a sequence x[n], defined only at whole numbers n. Most of electrical engineering moves signals back and forth between these two worlds, and the tools of this course work in both. They behave alike in most ways, but not in all. A sampled cosine, for one, may never repeat, and two different frequencies can give exactly the same samples.

  • The dots are the samples x[n]=cos⁡(ω0n), and the dashed curve is the cosine they were taken from. ω0 is in radians per sample.
  • Start at ω0=0.785 (π/4): the pattern repeats every 8 samples. Now try 1.0: the samples never repeat exactly, because 2π/1 isn't a whole number or a ratio of whole numbers.
  • Set ω0 to 5.498 (2π − π/4). The dashed curve wiggles fast, but the dots are the same as at 0.785. In discrete time, frequencies 2π apart are the same signal.

Predict

Is x[n]=cos⁡(n), a sampled cosine with ω0 = 1 radian per sample, periodic?

Name it

Two kinds of signal

A continuous-time signal x(t) is defined for every real t. A discrete-time signal x[n] is defined only for whole numbers n; it often comes from sampling, x[n]=x(nT) with sampling period T. Sampling a cosine of f hertz at fs samples a second gives

x[n]=cos⁡(ω0n),ω0=2πffs radians per sample

Periodicity

x(t) is periodic with period T if x(t+T)=x(t) for all t. A discrete signal needs a whole-number period N. For cos⁡(ω0n) that means ω0N=2πm for whole numbers m and N: periodic only when ω0/2π=m/N is rational, and in lowest terms N is the period. And because cos⁡((ω0+2π)n)=cos⁡(ω0n) for every whole n, discrete-time frequencies only matter over a range of 2π, usually taken as −π to π. The highest frequency a sequence can have is π radians per sample: alternating signs.

Energy and power

E=∫−∞∞|x(t)|2dtorE=∑n=−∞∞|x[n]|2

and the power is the average of |x|2 over all time. An energy signal has finite E (so zero average power), like a decaying pulse; a power signal has finite, nonzero power (so infinite energy), like a sinusoid, whose power is A2/2. (These are "energies" as if x were a voltage across 1 Ω.)

SignalEnergyPower
Ae−t/τu(t)A2τ/20
Acos⁡(ωt+ϕ)infiniteA2/2
anu[n], |a|<11/(1−a2)0

Worked example

Find the energy and power of x(t)=3e−2tu(t).

Show the solution
  1. Energy. E=∫0∞9e−4tdt=9/4=2.25
  2. Power. Finite energy means the average power over all time is 0: it's an energy signal.
  3. Check with the table. With τ=1/2, the table's A2τ/2 gives the same 2.25.

Answer the energy is 2.25 and the average power is 0, so it's an energy signal.

Worked example

Is x[n]=cos⁡(3πn/8) periodic, and with what period?

Show the solution
  1. Frequency as a fraction of a cycle. ω02π=3π/82π=316
  2. Period. That's a ratio of whole numbers in lowest terms, so the period is 16 samples.
  3. Cycles per period. In those 16 samples the underlying cosine goes through 3 cycles.

Answer yes, it's periodic, with a period of 16 samples.

Worked example

Find the average power and the RMS value of x(t)=1+2cos⁡(100πt).

Show the solution
  1. Drop the cross term. Over a period the cross term 4cos⁡(100πt) averages to zero.
  2. Average power. The DC part and the sinusoid contribute power separately because they're orthogonal: P=12+22/2=3
  3. RMS value. P=3=1.732
  4. Power signal. The energy is infinite, so this is a power signal.

Answer the average power is 3 and the RMS value is 3=1.732; it's a power signal.

Check

What is the energy of x(t)=3e−t/0.5u(t)?

Check

What is the average power of 3cos⁡(100t+0.3)?

Check

What is the period, in samples, of cos⁡(3πn/4)?

Check

What is the energy of x[n]=(0.8)nu[n]?

Check

A 440 Hz cosine is sampled at 8000 samples a second. What is ω0, in radians per sample?

Write units the way you normally would: 1.5 rad and 1500 mrad are the same answer.

Check

Which of these is a power signal (finite, nonzero average power)?

Check

Find the energy of x(t)=Ae−atu(t) with A = 3 and a = 0.5 (seconds).

(a)

What is its total energy?

(b)

By what time has half the energy arrived?

Write units the way you normally would: 1.5 s and 1500 ms are the same answer.

Check

x(t)=Ae−atu(t).

Step 1

What is its total energy?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why do cos⁡(ω0n) and cos⁡((ω0+2π)n) give exactly the same samples, while their continuous versions are different?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.