6.003: Signals and Systems Convolution October 4, 2011 1 Mid-term - - PowerPoint PPT Presentation

6 003 signals and systems
SMART_READER_LITE
LIVE PREVIEW

6.003: Signals and Systems Convolution October 4, 2011 1 Mid-term - - PowerPoint PPT Presentation

6.003: Signals and Systems Convolution October 4, 2011 1 Mid-term Examination #1 Wednesday, October 5, 7:309:30pm. No recitations on the day of the exam. Coverage: CT and DT Systems, Z and Laplace Transforms Lectures 17 Recitations 17


slide-1
SLIDE 1

6.003: Signals and Systems

Convolution

October 4, 2011

1

slide-2
SLIDE 2

Mid-term Examination #1

Wednesday, October 5, 7:30­9:30pm. No recitations on the day of the exam. Coverage: CT and DT Systems, Z and Laplace Transforms Lectures 1–7 Recitations 1–7 Homeworks 1–4 Homework 4 will not collected or graded. Solutions are posted. Closed book: 1 page of notes (8

1 2 × 11 inches; front and back).

No calculators, computers, cell phones, music players, or other aids. Designed as 1­hour exam; two hours to complete. Prior term midterm exams have been posted on the 6.003 website.

2

slide-3
SLIDE 3

+ R z0 X Y + A s0 X Y

Multiple Representations of CT and DT Systems

Verbal descriptions: preserve the rationale. Difference/differential equations: mathematically compact. y[n] = x[n] + z0 y[n − 1] y ˙(t) = x(t) + s0 y(t) Block diagrams: illustrate signal flow paths. Operator representations: analyze systems as polynomials. Y 1 Y A = = X 1 − z0R X 1 − s0A Transforms: representing diff. equations with algebraic equations. z 1 H(z) = H(s) = z − z0 s − s0

3

slide-4
SLIDE 4

Convolution

Representing a system by a single signal.

4

slide-5
SLIDE 5

Responses to arbitrary signals

Although we have focused on responses to simple signals (δ[n], δ(t)) we are generally interested in responses to more complicated signals. How do we compute responses to a more complicated input signals? No problem for difference equations / block diagrams. → use step­by­step analysis.

5

slide-6
SLIDE 6

Check Yourself

Example: Find y[3] + + R R X Y when the input is x[n] n 1

  • 1. 1
  • 2. 2
  • 3. 3
  • 4. 4
  • 5. 5
  • 0. none of the above

6

slide-7
SLIDE 7

Responses to arbitrary signals

Example. + + R R x[n] n y[n] n

7

slide-8
SLIDE 8

Responses to arbitrary signals

Example. + + R R 1 1 x[n] n y[n] n

8

slide-9
SLIDE 9

Responses to arbitrary signals

Example. + + R R 1 1 2 x[n] n y[n] n

9

slide-10
SLIDE 10

Responses to arbitrary signals

Example. + + R R 1 1 1 3 x[n] n y[n] n

10

slide-11
SLIDE 11

Responses to arbitrary signals

Example. + + R R 1 1 2 x[n] n y[n] n

11

slide-12
SLIDE 12

Responses to arbitrary signals

Example. + + R R 1 1 x[n] n y[n] n

12

slide-13
SLIDE 13

Responses to arbitrary signals

Example. + + R R x[n] n y[n] n

13

slide-14
SLIDE 14

Check Yourself

What is y[3]? 2 + + R R x[n] n 1 y[n] n

  • 1. 1
  • 2. 2
  • 3. 3
  • 4. 4
  • 5. 5
  • 0. none of the above

14

slide-15
SLIDE 15

Superposition

Break input into additive parts and sum the responses to the parts. n x[n] y[n] n = + + + + = n −1 0 1 2 3 4 5 n n n n −1 0 1 2 3 4 5 n

15

slide-16
SLIDE 16

Linearity

A system is linear if its response to a weighted sum of inputs is equal to the weighted sum of its responses to each of the inputs. Given system x1[n] y1[n] and system x2[n] y2[n] the system is linear if system αx1[n] + βx2[n] αy1[n] + βy2[n] is true for all α and β.

16

slide-17
SLIDE 17

Superposition

Break input into additive parts and sum the responses to the parts. n x[n] y[n] n = + + + + = n −1 0 1 2 3 4 5 n n n n −1 0 1 2 3 4 5 n Superposition works if the system is linear.

17

slide-18
SLIDE 18

Superposition

Break input into additive parts and sum the responses to the parts. n x[n] y[n] n = + + + + = n −1 0 1 2 3 4 5 n n n n −1 0 1 2 3 4 5 n Reponses to parts are easy to compute if system is time-invariant.

18

slide-19
SLIDE 19

Time-Invariance

A system is time­invariant if delaying the input to the system simply delays the output by the same amount of time. Given system x[n] y[n] the system is time invariant if system x[n − n0] y[n − n0] is true for all n0.

19

slide-20
SLIDE 20

Superposition

Break input into additive parts and sum the responses to the parts. n x[n] y[n] n = + + + + = n −1 0 1 2 3 4 5 n n n n −1 0 1 2 3 4 5 n Superposition is easy if the system is linear and time-invariant.

20

slide-21
SLIDE 21

Structure of Superposition

If a system is linear and time­invariant (LTI) then its output is the sum of weighted and shifted unit­sample responses. system δ[n] h[n] system δ[n − k] h[n − k] system x[k]δ[n − k] x[k]h[n − k] system x[n] =

  • k=−∞

x[k]δ[n − k] y[n] =

  • k=−∞

x[k]h[n − k]

21

slide-22
SLIDE 22

Convolution

Response of an LTI system to an arbitrary input. This operation is called convolution. LTI x[n] y[n] y[n] =

  • k=−∞

x[k]h[n − k] ≡ (x ∗ h)[n]

22

slide-23
SLIDE 23

Notation

Convolution is represented with an asterisk.

  • x[k]h[n − k] ≡ (x ∗ h)[n]

k=−∞

It is customary (but confusing) to abbreviate this notation: (x ∗ h)[n] = x[n] ∗ h[n]

23

slide-24
SLIDE 24

Notation

Do not be fooled by the confusing notation. Confusing (but conventional) notation:

  • x[k]h[n − k] = x[n] ∗ h[n]

k=−∞

x[n] ∗ h[n] looks like an operation of samples; but it is not! x[1] ∗ h[1] = (x ∗ h)[1] Convolution operates on signals not samples. Unambiguous notation:

  • x[k]h[n − k] ≡ (x ∗ h)[n]

k=−∞

The symbols x and h represent DT signals. Convolving x with h generates a new DT signal x ∗ h.

24

slide-25
SLIDE 25

Structure of Convolution

  • y[n] =

x[k]h[n − k]

k=−∞

−2−1 0 1 2 3 4 5 n x[n] h[n] ∗ −2−1 0 1 2 3 4 5 n

25

slide-26
SLIDE 26

Structure of Convolution

  • y[0] =

x[k]h[0 − k]

k=−∞

−2−1 0 1 2 3 4 5 n x[n] h[n] ∗ −2−1 0 1 2 3 4 5 n

26

slide-27
SLIDE 27

Structure of Convolution

  • y[0] =

x[k]h[0 − k]

k=−∞

−2−1 0 1 2 3 4 5 k x[k] h[k] ∗ −2−1 0 1 2 3 4 5 k

27

slide-28
SLIDE 28

Structure of Convolution

  • y[0] =

x[k]h[0 − k]

k=−∞

−2−1 0 1 2 3 4 5 k x[k] h[k] h[−k] ∗ flip −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k

28

slide-29
SLIDE 29

Structure of Convolution

  • y[0] =

x[k]h[0 − k]

k=−∞

−2−1 0 1 2 3 4 5 k x[k] h[k] h[0 − k] ∗ shift −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k

29

slide-30
SLIDE 30

Structure of Convolution

  • y[0] =

x[k]h[0 − k]

k=−∞

−2−1 0 1 2 3 4 5 k x[k] h[k] h[0 − k] h[0 − k] ∗ multiply −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k

30

slide-31
SLIDE 31

Structure of Convolution

  • y[0] =

x[k]h[0 − k]

k=−∞

k x[k] h[k] h[0 − k] h[0 − k] x[k]h[0 − k] ∗ multiply −2−1 0 1 2 3 4 5 k k −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k

31

slide-32
SLIDE 32

Structure of Convolution

  • y[0] =

x[k]h[0 − k]

k=−∞

k x[k] h[k] h[0 − k] h[0 − k] x[k]h[0 − k] ∗ sum

  • k=−∞

k k −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k

32

slide-33
SLIDE 33

Structure of Convolution

  • y[0] =

x[k]h[0 − k]

k=−∞

k x[k] h[k] h[0 − k] h[0 − k] x[k]h[0 − k] ∗

  • k=−∞

k k −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k = 1

33

slide-34
SLIDE 34

Structure of Convolution

  • y[1] =

x[k]h[1 − k]

k=−∞

k x[k] h[k] h[1 − k] h[1 − k] x[k]h[1 − k] ∗

  • k=−∞

k k −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k = 2

34

slide-35
SLIDE 35

Structure of Convolution

  • y[2] =

x[k]h[2 − k]

k=−∞

k x[k] h[k] h[2 − k] h[2 − k] x[k]h[2 − k] ∗

  • k=−∞

k k −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k = 3

35

slide-36
SLIDE 36

Structure of Convolution

  • y[3] =

x[k]h[3 − k]

k=−∞

k x[k] h[k] h[3 − k] h[3 − k] x[k]h[3 − k] ∗

  • k=−∞

k k −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k = 2

36

slide-37
SLIDE 37

Structure of Convolution

  • y[4] =

x[k]h[4 − k]

k=−∞

k x[k] h[k] h[4 − k] h[4 − k] x[k]h[4 − k] ∗

  • k=−∞

k k −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k = 1

37

slide-38
SLIDE 38

Structure of Convolution

  • y[5] =

x[k]h[5 − k]

k=−∞

k x[k] h[k] h[5 − k] h[5 − k] x[k]h[5 − k] ∗

  • k=−∞

k k −2−1 0 1 2 3 4 5 k −2−1 0 1 2 3 4 5 k = 0

38

slide-39
SLIDE 39

Check Yourself

1

1 Which plot shows the result of the convolution above? 1. 1 2. 1 3. 1 4. 1

  • 5. none of the above

39

slide-40
SLIDE 40

Check Yourself

1

1 Express mathematically: 2 3 n u[n]

2 3 n u[n]

  • =

2 3 k u[k]

  • ×

2 3 n−k u[n − k]

  • k=−∞

n k

  • 2

2 n−k = × 3 3

k=0 n n

  • n

n

2 2 = = 1 3 3

k=0 k=0

n 2 = (n + 1) u[n] 3 4 4 32 80 = 1, . . . 3, 3, 27, 81,

40

slide-41
SLIDE 41

Check Yourself

1

1 Which plot shows the result of the convolution above? 3 1. 1 2. 1 3. 1 4. 1

  • 5. none of the above

41

slide-42
SLIDE 42

DT Convolution: Summary

Representing an LTI system by a single signal. h[n] x[n] y[n] Unit­sample response h[n] is a complete description of an LTI system. Given h[n] one can compute the response y[n] to any arbitrary input signal x[n]:

  • y[n] = (x ∗ h)[n] ≡

x[k]h[n − k]

k=−∞

42

slide-43
SLIDE 43

CT Convolution

  • x(t) = lim

∆→0 k

where ∞ The same sort of reasoning applies to CT signals. t x(t) x(k∆)p(t − k∆)∆ t p(t) ∆

1 ∆

As ∆ → 0, k∆ → τ , ∆ → dτ , and p(t) → δ(t): x(t) → x(τ)δ(t − τ)dτ

−∞

43

slide-44
SLIDE 44

Structure of Superposition

If a system is linear and time­invariant (LTI) then its output is the integral of weighted and shifted unit­impulse responses. system δ(t) h(t) system δ(t − τ) h(t − τ) system x(τ)δ(t − τ) x(τ)h(t − τ) system x(t) = ∞

−∞

x(τ)δ(t − τ)dτ y(t) = ∞

−∞

x(τ)h(t − τ)dτ

44

slide-45
SLIDE 45

CT Convolution

Convolution of CT signals is analogous to convolution of DT signals.

  • DT: y[n] = (x ∗ h)[n] =

x[k]h[n − k]

k=−∞ ∞

CT: y(t) = (x ∗ h)(t) = x(τ)h(t − τ)dτ

−∞

45

slide-46
SLIDE 46

Check Yourself

t e−tu(t)

t e−tu(t) Which plot shows the result of the convolution above? 1. t 2. t 3. t 4. t

  • 5. none of the above

46

slide-47
SLIDE 47

Check Yourself

Which plot shows the result of the following convolution? t e−tu(t)

t e−tu(t)

  • e

−t

u(t)

  • e

−t

u(t)

  • =

e

−τ u(τ )e −(t−τ)u(t − τ)dτ −∞ t t −τ −t −t −(t−τ)dτ

dτ = te u(t) = e e = e t

47

slide-48
SLIDE 48

Check Yourself

t e−tu(t)

t e−tu(t) Which plot shows the result of the convolution above? 4 1. t 2. t 3. t 4. t

  • 5. none of the above

48

slide-49
SLIDE 49

Convolution

Convolution is an important computational tool. Example: characterizing LTI systems

  • Determine the unit­sample response h[n].
  • Calculate the output for an arbitrary input using convolution:
  • y[n] = (x ∗ h)[n] =

x[k]h[n − k]

49

slide-50
SLIDE 50

Applications of Convolution

Convolution is an important conceptual tool: it provides an impor- tant new way to think about the behaviors of systems. Example systems: microscopes and telescopes.

50

slide-51
SLIDE 51

Microscope

Images from even the best microscopes are blurred.

51

z y x CCD camera Image plane Target plane Light source Optical axis Image by MIT OpenCourseWare.

slide-52
SLIDE 52

Microscope

A perfect lens transforms a spherical wave of light from the target into a spherical wave that converges to the image. Blurring is inversely related to the diameter of the lens. target image

52

slide-53
SLIDE 53

Microscope

A perfect lens transforms a spherical wave of light from the target into a spherical wave that converges to the image. Blurring is inversely related to the diameter of the lens. target image

53

slide-54
SLIDE 54

Microscope

A perfect lens transforms a spherical wave of light from the target into a spherical wave that converges to the image. Blurring is inversely related to the diameter of the lens. target image

54

slide-55
SLIDE 55

Microscope

Blurring can be represented by convolving the image with the optical “point­spread­function” (3D impulse response). Blurring is inversely related to the diameter of the lens. target image

∗ =

55

slide-56
SLIDE 56

Microscope

Blurring can be represented by convolving the image with the optical “point­spread­function” (3D impulse response). Blurring is inversely related to the diameter of the lens. target image

∗ =

56

slide-57
SLIDE 57

Microscope

Blurring can be represented by convolving the image with the optical “point­spread­function” (3D impulse response). Blurring is inversely related to the diameter of the lens. target image

∗ =

57

slide-58
SLIDE 58

Microscope

Measuring the “impulse response” of a microscope. Image diameter ≈ 6 times target diameter: target → impulse.

58 Courtesy of Anthony Patire. Used with permission.

slide-59
SLIDE 59

Microscope

Images at different focal planes can be assembled to form a three­ dimensional impulse response (point­spread function).

59 Courtesy of Anthony Patire. Used with permission.

slide-60
SLIDE 60

Microscope

Blurring along the optical axis is better visualized by resampling the three­dimensional impulse response.

60 Courtesy of Anthony Patire. Used with permission.

slide-61
SLIDE 61

Microscope

Blurring is much greater along the optical axis than it is across the

  • ptical axis.

61 Courtesy of Anthony Patire. Used with permission.

slide-62
SLIDE 62

Microscope

The point­spread function (3D impulse response) is a useful way to characterize a microscope. It provides a direct measure of blurring, which is an important figure of merit for optics.

62

slide-63
SLIDE 63

Hubble Space Telescope

Hubble Space Telescope (1990­) http://hubblesite.org

63

slide-64
SLIDE 64

Hubble Space Telescope

Why build a space telescope? Telescope images are blurred by the telescope lenses AND by at- mospheric turbulence. ha(x, y) hd(x, y) X Y atmospheric blurring blur due to mirror size ht(x, y) = (ha ∗ hd)(x, y) X Y ground­based telescope

64

slide-65
SLIDE 65

Hubble Space Telescope

Telescope blur can be respresented by the convolution of blur due to atmospheric turbulence and blur due to mirror size. −2 −1 1 2θ −2 −1 1 2θ −2 −1 1 2θ −2 −1 1 2θ −2 −1 1 2θ −2 −1 1 2θ ha(θ) ha(θ) hd(θ) hd(θ) ht(θ) ht(θ) ∗ ∗ = = d = 12cm d = 1m [arc­seconds]

65

slide-66
SLIDE 66

Hubble Space Telescope

The main optical components of the Hubble Space Telescope are two mirrors. http://hubblesite.org

66

slide-67
SLIDE 67

Hubble Space Telescope

The diameter of the primary mirror is 2.4 meters. http://hubblesite.org

67

slide-68
SLIDE 68

Hubble Space Telescope

Hubble’s first pictures of distant stars (May 20, 1990) were more blurred than expected. expected early Hubble point­spread image of function distant star http://hubblesite.org

68

slide-69
SLIDE 69

Hubble Space Telescope

The parabolic mirror was ground 2.2 µm too flat! http://hubblesite.org

69

slide-70
SLIDE 70

Hubble Space Telescope

Corrective Optics Space Telescope Axial Replacement (COSTAR): eyeglasses for Hubble! Hubble COSTAR

70

slide-71
SLIDE 71

Hubble Space Telescope

Hubble images before and after COSTAR. before after http://hubblesite.org

71

slide-72
SLIDE 72

Hubble Space Telescope

Hubble images before and after COSTAR. before after http://hubblesite.org

72

slide-73
SLIDE 73

Hubble Space Telescope

Images from ground­based telescope and Hubble. http://hubblesite.org

73

slide-74
SLIDE 74

Impulse Response: Summary

The impulse response is a complete description of a linear, time­ invariant system. One can find the output of such a system by convolving the input signal with the impulse response. The impulse response is an especially useful description of some types of systems, e.g., optical systems, where blurring is an impor- tant figure of merit.

74

slide-75
SLIDE 75

MIT OpenCourseWare http://ocw.mit.edu

6.003 Signals and Systems

Fall 2011 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.