Processing math: 1%
+ - 0:00:00
Notes for current slide
Notes for next slide
1 / 29

Euler's Identity

2 / 29

Euler's Identity

e^{j\theta} = \cos(\theta) + j\sin(\theta) \qquad\qquad \mbox{(Euler's Identity)}

2 / 29

Euler's Identity

e^{j\theta} = \cos(\theta) + j\sin(\theta) \qquad\qquad \mbox{(Euler's Identity)}

Properties of Exponents

2 / 29

Euler's Identity

e^{j\theta} = \cos(\theta) + j\sin(\theta) \qquad\qquad \mbox{(Euler's Identity)}

Properties of Exponents

a^{n_1} a^{n_2} = a^{n_1 + n_2}

2 / 29

Euler's Identity

e^{j\theta} = \cos(\theta) + j\sin(\theta) \qquad\qquad \mbox{(Euler's Identity)}

Properties of Exponents

a^{n_1} a^{n_2} = a^{n_1 + n_2}

\left(a^{n_1}\right)^{n_2} = a^{n_1 n_2}

2 / 29

The Exponent Zero

3 / 29

The Exponent Zero

a^0 a = a^0 a^1 = a^{0+1} = a^1 = a

3 / 29

The Exponent Zero

a^0 a = a^0 a^1 = a^{0+1} = a^1 = a

a^0 a = a

3 / 29

The Exponent Zero

a^0 a = a^0 a^1 = a^{0+1} = a^1 = a

a^0 a = a

{a^0 = 1.}

3 / 29

Negative Exponents

4 / 29

Negative Exponents

a^{-1} \cdot a = a^{-1} a^1 = a^{-1+1} = a^0 = 1.

4 / 29

Negative Exponents

a^{-1} \cdot a = a^{-1} a^1 = a^{-1+1} = a^0 = 1.

{a^{-1} = \frac{1}{a}.}

4 / 29

Negative Exponents

a^{-1} \cdot a = a^{-1} a^1 = a^{-1+1} = a^0 = 1.

{a^{-1} = \frac{1}{a}.}

{a^{-M} = \frac{1}{a^M}}

4 / 29

Rationale Exponents

5 / 29

Rationale Exponents

A rational number is a real number that can be expressed as a ratio of two finite integers:

5 / 29

Rationale Exponents

A rational number is a real number that can be expressed as a ratio of two finite integers:

\displaystyle x = \frac{L}{M}, \quad L\in\mathbb{Z},\quad M\in\mathbb{Z}

5 / 29

Applying property (2) of exponents, we have

6 / 29

Applying property (2) of exponents, we have

\displaystyle a^x = a^{L/M} = \left(a^{\frac{1}{M}}\right)^L.

6 / 29

Applying property (2) of exponents, we have

\displaystyle a^x = a^{L/M} = \left(a^{\frac{1}{M}}\right)^L. Thus, the only thing new is a^{1/M} . Since

6 / 29

Applying property (2) of exponents, we have

\displaystyle a^x = a^{L/M} = \left(a^{\frac{1}{M}}\right)^L. Thus, the only thing new is a^{1/M} . Since

\displaystyle \left(a^{\frac{1}{M}}\right)^M = a^{\frac{M}{M}} = a

6 / 29

we see that a^{1/M} is the M-th root of a. This is sometimes written

7 / 29

we see that a^{1/M} is the M-th root of a. This is sometimes written

{a^{\frac{1}{M}} = \sqrt[M]{a}.}

7 / 29

e^(j theta)

f(x)=e^x is one of the simplest imaginable infinite series:

8 / 29

e^(j theta)

f(x)=e^x is one of the simplest imaginable infinite series: e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = 1 + x + \frac{x^2}{2} + \frac{x^3}{3!} + \cdots

8 / 29

e^(j theta)

f(x)=e^x is one of the simplest imaginable infinite series: e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = 1 + x + \frac{x^2}{2} + \frac{x^3}{3!} + \cdots

The simplicity comes about because f^{(n)}(0)=1 for all n

8 / 29

e^(j theta)

f(x)=e^x is one of the simplest imaginable infinite series: e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = 1 + x + \frac{x^2}{2} + \frac{x^3}{3!} + \cdots

The simplicity comes about because f^{(n)}(0)=1 for all n

e^{j\theta} = \sum_{n=0}^\infty \frac{(j\theta)^n}{n!} = 1 + j\theta - \frac{\theta^2}{2} - j\frac{\theta^3}{3!} + \cdots \,.

8 / 29

e^(j theta)

f(x)=e^x is one of the simplest imaginable infinite series: e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = 1 + x + \frac{x^2}{2} + \frac{x^3}{3!} + \cdots

The simplicity comes about because f^{(n)}(0)=1 for all n

e^{j\theta} = \sum_{n=0}^\infty \frac{(j\theta)^n}{n!} = 1 + j\theta - \frac{\theta^2}{2} - j\frac{\theta^3}{3!} + \cdots \,.

\text{Re} \left(e^{j\theta}\right) = 1 - \frac{\theta^2}{2} + \frac{\theta^4}{4!} - \cdots

8 / 29

e^(j theta)

f(x)=e^x is one of the simplest imaginable infinite series: e^x = \sum_{n=0}^\infty \frac{x^n}{n!} = 1 + x + \frac{x^2}{2} + \frac{x^3}{3!} + \cdots

The simplicity comes about because f^{(n)}(0)=1 for all n

e^{j\theta} = \sum_{n=0}^\infty \frac{(j\theta)^n}{n!} = 1 + j\theta - \frac{\theta^2}{2} - j\frac{\theta^3}{3!} + \cdots \,.

\text{Re} \left(e^{j\theta}\right) = 1 - \frac{\theta^2}{2} + \frac{\theta^4}{4!} - \cdots

\text{Im} \left(e^{j\theta}\right) = \theta - \frac{\theta^3}{3!} + \frac{\theta^5}{5!} - \cdots\

8 / 29

Polar form

9 / 29

Polar form

\displaystyle z = r e^{j\theta}

9 / 29

In-Phase & Quadrature Sinusoidal Components

10 / 29

In-Phase & Quadrature Sinusoidal Components

From the trig identity \sin(A+B)=\sin(A)\cos(B)+\cos(A)\sin(B) , we have

10 / 29

In-Phase & Quadrature Sinusoidal Components

From the trig identity \sin(A+B)=\sin(A)\cos(B)+\cos(A)\sin(B) , we have

Derive

10 / 29
  • every sinusoid can be expressed:
    1. as the sum of a sine function (phase zero)
    2. a cosine function (phase \pi/2 ).
11 / 29
  • every sinusoid can be expressed:
    1. as the sum of a sine function (phase zero)
    2. a cosine function (phase \pi/2 ).
  • sine part is called the in-phase component,
11 / 29
  • every sinusoid can be expressed:
    1. as the sum of a sine function (phase zero)
    2. a cosine function (phase \pi/2 ).
  • sine part is called the in-phase component,
  • the cosine part called the phase-quadrature component.
11 / 29
  • every sinusoid can be expressed:
    1. as the sum of a sine function (phase zero)
    2. a cosine function (phase \pi/2 ).
  • sine part is called the in-phase component,
  • the cosine part called the phase-quadrature component. In general, phase quadrature means *90 degrees out of phase.
11 / 29

Complex Sinusoids in Frequency Domain

12 / 29

Complex Sinusoids in Frequency Domain

\displaystyle x(t) = A_x e^{j\omega_x t}

12 / 29

13 / 29

Fourier Analysis

14 / 29

Fourier Analysis

  • Fourier analysis is the process of decomposing a function into simple sinusoids known as basis functions.
14 / 29

Fourier Analysis

  • Fourier analysis is the process of decomposing a function into simple sinusoids known as basis functions. X_k = \sum_0^{N-1} x_n\cdot e^{-i 2 \pi k n / N}
14 / 29

Fourier Analysis

  • Fourier analysis is the process of decomposing a function into simple sinusoids known as basis functions. X_k = \sum_0^{N-1} x_n\cdot e^{-i 2 \pi k n / N}

t_n = nT = \mbox{$n$th sampling instant (sec)} \omega_k = k\Omega = \mbox{$k$th frequency sample (rad/sec)} T = 1/f_s = \mbox{time sampling interval (sec)} \Omega = 2\pi f_s/N = \mbox{frequency sampling interval (rad/sec)}

14 / 29

The transform kernel:

15 / 29

The transform kernel:

\displaystyle e^{-j\omega_k t_n} = \cos(\omega_k t_n) - j \sin(\omega_k t_n)

15 / 29

Inner Product = Projection

16 / 29

Inner Product = Projection

X(\omega_k) , the DFT at frequency \omega_k , is a measure of the amplitude and phase.

16 / 29

Signals: Vector View

17 / 29

Signals: Vector View

  • A signal consists of N samples, is equivalent to a two-dimensional vector.
17 / 29

Signals: Vector View

  • A signal consists of N samples, is equivalent to a two-dimensional vector.
  • Each sample is a corrdinate in the N-dimensional space.
17 / 29

Signals: Vector View

  • A signal consists of N samples, is equivalent to a two-dimensional vector.
  • Each sample is a corrdinate in the N-dimensional space.
  • We already have that intuition when carrying signals in Numpy arrays, just as vectors.
17 / 29

DFT not decomposing into sinusoids

18 / 29

DFT not decomposing into sinusoids

DFT decompose singals up into complex exponentials.

18 / 29

DFT not decomposing into sinusoids

DFT decompose singals up into complex exponentials.

DFT Matrix

18 / 29

DFT not decomposing into sinusoids

DFT decompose singals up into complex exponentials.

DFT Matrix

The transformation matrix W can be defined as W = \left( \frac{\omega^{jk}}{ \sqrt{N} } \right )_{\left(j,k=0,\ldots ,N-1\right)} ,

18 / 29

or equivalently:

19 / 29

or equivalently:

19 / 29

or equivalently:

where {\displaystyle \omega =e^{-2\pi i/N}}

19 / 29

20 / 29

Examples

21 / 29

Examples

Two-point

  • The two-point DFT is a simple case, in which the first entry is the DC (sum) and the second entry is the AC (difference).
21 / 29

Examples

Two-point

  • The two-point DFT is a simple case, in which the first entry is the DC (sum) and the second entry is the AC (difference).
21 / 29

Examples

Two-point

  • The two-point DFT is a simple case, in which the first entry is the DC (sum) and the second entry is the AC (difference).
  • The first row performs the sum, and the second row performs the difference.
21 / 29

Examples

Two-point

  • The two-point DFT is a simple case, in which the first entry is the DC (sum) and the second entry is the AC (difference).
  • The first row performs the sum, and the second row performs the difference.
  • The factor of \frac{1}{\sqrt{2}} is to make the transform unitary
21 / 29

The four-point DFT matrix is as follows:

22 / 29

The four-point DFT matrix is as follows:

22 / 29

The four-point DFT matrix is as follows:

  • where \left(\displaystyle \omega =e^{-{\frac {\pi i}{2}}}=-i\right) .
22 / 29

Eight-point

23 / 29

Eight-point

  • The first non-trivial integer power of two case is for eight points:
23 / 29

24 / 29

  • where

\omega = e^{-{\frac{2\pi i}{8}}} = \frac{1}{\sqrt{2}} - \frac{i}{\sqrt{2}}

(Note that \omega^{8 + n} = \omega^{n}.)

24 / 29

New Task: Writing Python/MATLAB Wrappers for C/C++

25 / 29

New Task: Writing Python/MATLAB Wrappers for C/C++

Hints

25 / 29

References

26 / 29

References

  1. Digital Signal Processing, 2nd Edition, Fundamentals and Applications. Authors: Li Tan Jean Jiang.
  2. Signals and Systems using MATLAB. by Luis Chaparro Ph.D. University of California Berkeley.
  3. Mitra Digital Signale Processing, Computer Based Approach.
  4. Oppenheim Discrete-Time Signal Processing.
26 / 29

Readings

27 / 29

Demo file

$ git clone https://github.com/sbme-tutorials/sbe309-week3-demo.git
28 / 29

Extra

  • Git
  • Markdown
  • Latex
29 / 29

Euler's Identity

2 / 29
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow