Line 38: Line 38:
 
== DTFT of a Cosine Sampled Above the Nyquist Rate  ==
 
== DTFT of a Cosine Sampled Above the Nyquist Rate  ==
  
For our original pure frequency, let’s choose the E below middle C. The E occurs at 330''Hz'' <span class="texhtml">''x''(''t'') = cos(2π * 330''t'')</span> &lt;p&gt;Now let’s sample this pure cosine at a frequency above the Nyquist Rate. The Nyquist Rate is: <br><span class="math">&nbsp;''f''<sub>''s''</sub> = 2 * ''f''<sub>''m''''a''''x''</sub> = 2 * (330''H''''z'') = 660''H''''z''</span>. <br>Let’s sample at 990<span class="math">''H''''z''</span>.  
+
For our original pure frequency, let’s choose the E below middle C. The E occurs at 330''Hz'' <math>x(t) = cos(2π * 330t)</math> &lt;p&gt;Now let’s sample this pure cosine at a frequency above the Nyquist Rate. The Nyquist Rate is: <br><span class="math">&nbsp;''f''<sub>''s''</sub> = 2 * ''f''<sub>''m''''a''''x''</sub> = 2 * (330''H''''z'') = 660''H''''z''</span>. <br>Let’s sample at 990<span class="math">''H''''z''</span>.  
  
 
<math> \begin{align} \\  
 
<math> \begin{align} \\  
Line 58: Line 58:
 
[[Image:AboveNyquist.jpg]]
 
[[Image:AboveNyquist.jpg]]
  
 
+
== DTFT Of a Cosine Sampled Below the Nyquist Rate ==
 +
<p>Let’s use the same pure frequency as above.<br /><br /></p>
 +
<p><br /><span class="math"><em>x</em>(<em>t</em>) = <em>c</em><em>o</em><em>s</em>(2<em>π</em> * 330<em>t</em>)</span><br /></p>
 +
<p>Now let’s sample this pure cosine at a frequency below the Nyquist Rate. From above, the Nyquist Rate is 660<span class="math"><em>H</em><em>z</em></span>. Let’s sample at 550<span class="math"><em>H</em><em>z</em></span>.</p>
 +
<p><br /><span class="math">$$\begin{split}
 +
x_{d}[n] &amp; = x(n*\frac{1}{550Hz})\\
 +
&amp; = cos(2\pi n*\frac{330Hz}{550Hz}) = \frac{e^{j2\pi n \frac{330}{550}} + e^{-j2\pi n \frac{330}{550}}}{2}\\
 +
\end{split}$$</span><br /></p>
 +
<p><br /></p>
 +
<p>Because <span class="math">$ \pi &lt; \frac{2\pi 330}{550} &lt; 2\pi$</span>, aliasing occurring in the DTFT. The DTFT should be calculated with <span class="math"><em>ω</em> ∈ [ − <em>π</em>, <em>π</em>]</span>, so we will use the periodicity of cosine to shift <span class="math"><em>x</em><sub><em>d</em></sub>[<em>n</em>]</span> into an appropriate range.</p>
 +
<p><br /><span class="math">$$\begin{split}
 +
    x_{d}[n] &amp; = cos(2\pi n*\frac{330}{550})\\
 +
    &amp; = cos(2\pi n*\frac{330}{550} - 2\pi n)\\
 +
    &amp; = cos(2\pi n*(\frac{330}{550} - \frac{550}{550}))\\
 +
    &amp; = cos(2\pi n*(\frac{-220}{550}))\\
 +
    &amp; = cos(2\pi n*\frac{220Hz}{550Hz})
 +
    \end{split}$$</span><br /></p>
 +
<p>Now that <span class="math">$\ |2\pi\frac{220}{550}| &lt; \pi$</span>, we can take the DTFT of <span class="math"><em>x</em><sub><em>d</em></sub>[<em>n</em>]</span>, and the initial value will fall into a desired range for <span class="math"><em>ω</em></span>.</p>
 +
<p><br /><span class="math">$$\begin{split}
 +
    X(\omega) &amp; = \frac{1}{2}(2\pi\delta(\omega - 2\pi \frac{220}{550}) + 2\pi\delta(\omega + 2\pi \frac{220}{550})) , \  \omega \in\ [-\pi,\pi]\\
 +
    &amp; = \frac{550}{2}(\delta(\frac{550}{2\pi}\omega - 220) + \delta(\frac{550}{2\pi}\omega + 220)) , \  \omega \in\ [-\pi,\pi]\\
 +
    &amp; = rep_{2\pi}(\frac{550}{2}(\delta(\frac{550}{2\pi}\omega - 220) + \delta(\frac{550}{2\pi}\omega + 220))), \forall \omega
 +
\end{split}$$</span><br /></p>
  
 
[[2014 Fall ECE 438 Boutin|Back to ECE438, Fall 2014]]
 
[[2014 Fall ECE 438 Boutin|Back to ECE438, Fall 2014]]
  
 
[[Category:Slecture]] [[Category:ECE438Fall2014Boutin]] [[Category:ECE]] [[Category:ECE438]] [[Category:Signal_processing]]
 
[[Category:Slecture]] [[Category:ECE438Fall2014Boutin]] [[Category:ECE]] [[Category:ECE438]] [[Category:Signal_processing]]

Revision as of 07:51, 2 October 2014

Link title

DTFT of a Cosine Sampled Above and Below the Nyquist Rate

A slecture by ECE student Sahil Sanghani

Partly based on the ECE438 Fall 2014 lecture material of Prof. Mireille Boutin.


Outline

  • Introduction
  • Useful Background
  • DTFT Example of a Cosine Sampled Above the Nyquist Rate
  • DTFT Example of a Cosine Sampled Below the Nyquist Rate
  • Conclusion
  • References


Introduction

In this Slecture, I will walk you through taking the DTFT of a pure frequency sampled above and below the Nyquist Rate. Then I will compare the differences between them.


Useful Background

Nyquist Condition: $ f_s = 2f_{max} $</font> DTFT of a Cosine: $ x_d[n] = cos(2\pi nT){\leftrightarrow}X(\omega) = \pi(\delta(\omega-\omega_o) + \delta(\omega+\omega_o)){ ,for\ } \omega \in [-\pi,\pi] $

The DTFT of a sampled signal is periodic with .

DTFT of a Cosine Sampled Above the Nyquist Rate

For our original pure frequency, let’s choose the E below middle C. The E occurs at 330Hz $ x(t) = cos(2π * 330t) $ <p>Now let’s sample this pure cosine at a frequency above the Nyquist Rate. The Nyquist Rate is:
 fs = 2 * fm'a'x = 2 * (330H'z) = 660H'z.
Let’s sample at 990H'z.

$ \begin{align} \\ x_d[n] & = x(n*\frac{1}{990Hz})\\ & = cos(2\pi n *\frac{330}{990}) = \frac{e^{j2\pi n \frac{330}{550}} + e^{-j2\pi n \frac{330}{550}}}{2}\\ & = cos(\frac{2\pi n}{3}) \end{align} $

Because $ \left | \frac{2\pi}{3}\right | < \pi $, there is no aliasing occurring in the DTFT, and it can be written as follows:

$ \begin{align} \\ X(\omega) & = \frac{1}{2}(2\pi\delta(\omega - 2\pi \frac{330}{990}) + 2\pi\delta(\omega + 2\pi \frac{330}{990})) , \ \omega \in\ [-\pi,\pi]\\ & = \frac{990}{2}(\delta(\frac{990}{2\pi}\omega - 330) + \delta(\frac{990}{2\pi}\omega + 330)) , \ \omega \in\ [-\pi,\pi]\\ & = rep_{2\pi}(\frac{990}{2}(\delta(\frac{990}{2\pi}\omega - 330) + \delta(\frac{990}{2\pi}\omega + 330))), \forall \omega \end{align} $

AboveNyquist.jpg

DTFT Of a Cosine Sampled Below the Nyquist Rate

Let’s use the same pure frequency as above.


x(t) = cos(2π * 330t)

Now let’s sample this pure cosine at a frequency below the Nyquist Rate. From above, the Nyquist Rate is 660Hz. Let’s sample at 550Hz.


$$\begin{split} x_{d}[n] & = x(n*\frac{1}{550Hz})\\ & = cos(2\pi n*\frac{330Hz}{550Hz}) = \frac{e^{j2\pi n \frac{330}{550}} + e^{-j2\pi n \frac{330}{550}}}{2}\\ \end{split}$$


Because $ \pi < \frac{2\pi 330}{550} < 2\pi$, aliasing occurring in the DTFT. The DTFT should be calculated with ω ∈ [ − π, π], so we will use the periodicity of cosine to shift xd[n] into an appropriate range.


$$\begin{split} x_{d}[n] & = cos(2\pi n*\frac{330}{550})\\ & = cos(2\pi n*\frac{330}{550} - 2\pi n)\\ & = cos(2\pi n*(\frac{330}{550} - \frac{550}{550}))\\ & = cos(2\pi n*(\frac{-220}{550}))\\ & = cos(2\pi n*\frac{220Hz}{550Hz}) \end{split}$$

Now that $\ |2\pi\frac{220}{550}| < \pi$, we can take the DTFT of xd[n], and the initial value will fall into a desired range for ω.


$$\begin{split} X(\omega) & = \frac{1}{2}(2\pi\delta(\omega - 2\pi \frac{220}{550}) + 2\pi\delta(\omega + 2\pi \frac{220}{550})) , \ \omega \in\ [-\pi,\pi]\\ & = \frac{550}{2}(\delta(\frac{550}{2\pi}\omega - 220) + \delta(\frac{550}{2\pi}\omega + 220)) , \ \omega \in\ [-\pi,\pi]\\ & = rep_{2\pi}(\frac{550}{2}(\delta(\frac{550}{2\pi}\omega - 220) + \delta(\frac{550}{2\pi}\omega + 220))), \forall \omega \end{split}$$

Back to ECE438, Fall 2014

Alumni Liaison

Abstract algebra continues the conceptual developments of linear algebra, on an even grander scale.

Dr. Paul Garrett