{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Problems for October 2, 2019\n",
"1. Given the forward DFT, derive the IDFT.\n",
"2. Show that the DFT and IDFT are periodic. What is the period?\n",
"3. Note that H(n) are complex, and h(k) are real. What restrictions does this put on H(n)? Hint: The answer is: $H(n) = H^*(-n)$.\n",
"\n",
"# Problems for October 3, 2019\n",
"1. The dot or inner product of a two vectors, $\\mathbf a$ and $\\mathbf b$ is the product of the lengths of the two vectors multplied by the cosine of the angle between them. $$\\mathbf a \\cdot \\mathbf b = |\\mathbf a||\\mathbf b| cos \\theta = \\sum_{k=0}^{N-1} a_k b_k^*$$\n",
"If one of the vectors is a unit vector, then the inner product is the projection of the other vector in the direction of the unit vector. This means the inner product is a way of computing how much one vector is in the direction of another. If the vectors come from a A/D converter length of a vector is a measure of how loud or how much power there is in that signal that was sampled. The inner product tells us how much one vector is like another, or how much or one vector is in the other, how close they are to sounding alike. How could you interpret $$H(n) = \\sum_{k=0}^{N-1} h(k) e^{-j2\\pi nk/N}$$ as you think of this as an inner product?\n",
"2. Suppose you make your sampling interval smaller and smaller, so that you are taking an infinite number of samples in an interval $T_0$. Suppose you were told that you could write a periodic function that repeats over $T_0$ with this sum, how would you find the coefficients $c_n$? $$ x(t) = x(t+T_0) = \\sum_{n=-\\infty}^{\\infty} c_n e^{j2\\pi nt/T_0}$$\n",
"\n",
"# Problems for October 4, 2019\n",
"1. How would you interpret the $c_n$?\n",
"2. If $x(t) \\in \\mathbb{R}$, what can you say about $c_n$? Hint: the answer is $c_n = c_{-n}^*$.\n",
"3. If $x(t) = x(-t) = x(t+T_0)$, what can you say about $c_n$? What is $x(t) = -x(-t)$?\n",
"4. Find the Complex Fourier Series for $sgn(cos(t))$.\n",
"5. Plot $sgn(cos(t))$, the first few of the terms in its Fourier series and the sum of those terms.\n",
"\n",
"# Problems for October 7\n",
"1. What is the significance of negative $n$ in the Complex Fourier Series? Why are negative $n's$ needed?\n",
"2. What frequency is the cosine associated with the $n = -1$ for an even periodic function, $x(t) = x(-t) = x(t + T_0)$?\n",
"3. Suppose you were going to approximate the formula for the coefficients of the Complex Fourier Series with a rectangular integration sum. What would you get at frequencies $k/T_0$, for $k \\in {0, 1, 2, ..., (N-1)/2}$?\n",
"4. How does this relate to the DFT? If you only needed a finite number of them, could you save yourself some effort calculating some Fourier series coefficients using this?\n",
"Given the IDFT\n",
"$$h(k) = 1/N \\sum_{n=0}^{N-1} H(n) e^{j2\\pi nk/N}$$\n",
"Can you say how is the IDFT related to $x(t)=x(t+T_0)$ , and its Fourier series coefficients, $c_n$ ? \n",
"\n",
"# Problems for October 9 \n",
"Today we tackle the problem that Fourier series only work for periodic signals. It would be very nice if we could think of frequency components of any signal, periodic or not. What if we just let the period, $T_0$ get really large? For example, for a long time people thought the earth was flat, not round, and this was primarily because the circumfrence of the earth is so large.\n",
"1. Write $x(t)=x(t+T_0)$ as the Fourier series and then substitute the formula you found for $c_n$ into that, being careful not to get dummy variables mixed up with real ones. It is better to use limits of $−T_0/2$ and $T_0/2$ rather the $0$ to $T_0$. Remember that $n$ ranges vastly.\n",
"What do the following things approach in the limit as $T_0$ approaches $\\infty$?$$ n/T_0$$ $$\\sum_{n=-\\infty}^{\\infty} 1/T_0$$ $$T_0$$ $$\\int_{-T_0/2}^{T_0/2} $$\n",
"\n",
"# Problems for October 10\n",
"Today we try to understand the $\\delta (u)$, the \"Impulse Function,\" also known as the \"Dirac Delta Function. You can think of an impulse function as the limit of a sequence of functions that has the sifting property, $$f(x) =\\int_{-\\infty}^{\\infty} f(u) \\delta(u-x) du$$\n",
"1. Find an impulse function identity by interchanging the order of integration of $x(t) = \\mathscr F^{-1} [\\mathscr F[x(t)]]$. This involves interchanging the order of limiting operations, so it may not work for all $x(t)$. When I do iffy things like this, I put a flag in my notes, and when I run into some issues later, I check to see if they could have been caused by my flagged operation.\n",
"2. What does this say about the orthogonality of $e^{j2\\pi f t}$?\n",
"3. Show that the impulse is an even function, $\\delta(u) = \\delta(-u)$.\n",
"4. Evaluate: $$ \\int_{-\\infty}^{\\infty} \\delta(u) du$$\n",
"5. Note that there are some problems finding the \"length\" of the impulse function.\n",
"6. Show $\\delta (au) = 1/|a| \\delta(u)$.\n",
"\n",
"# Problems for October 11, The Linearity Game\n",
"\n",
" In this section we will investigate linear time invariant systems. The idea is to take a system, and output due to a set of basis functions and figure out what the output due to any input is. We use the idea that we can make the input up as a linear combination of the basis functions. We also use time invariance to determine that the whole set of basis functions is.\n",
" 1. Fill in the following table:\n",
"|Input to the LTI System| Output | Reason |\n",
"|---|---|---|\n",
"|$\\delta(t)$ | $h(t)$ | Given | \n",
"|$\\delta(t-t_0)$| | |\n",
"| $x(t)$ | | |\n",
"|$e^{j2\\pi ft} $| | |\n",
"|$X(f) e^{j2\\pi f t}$| | |\n",
"|$\\int_{-\\infty}^{\\infty}X(f) e^{j2\\pi f t} df$| | |\n",
"\n",
"2. What is the difference between the last line and the $x(t)$ line?\n",
"\n",
"# Problems for October 16\n",
"Today we will review and work on notebooks to try and be ready for submissions Saturday night at 6:00 p.m.\n",
"\n",
"# Problems for October 17\n",
"\n",
"1. Together, lets do the same RC circuit from class with an excitation of $e^{j2\\pi f t}$.\n",
"2. Use that to find the output due to a periodic wave, $x(t) = x(t+T_0)$.\n",
"3. write a python script to plot the output from a square wave. Does it look right?\n",
"\n",
"# Operations in Time and Frequency\n",
"\n",
"Each of the following are common operations we do to signals in a system. It is useful to know how doing something in time affects the frequency components, and vice versa.\n",
"\n",
"1. Show that a time shift of $t_0$ multiplies frequency components by a phase factor of $e^{-j2\\pi ft}$. For the Fourier series, the frequencies are discrete, given by $f = n/T_0$.\n",
"\n",
"2. Show that you can shift a signal, $x(t)$, in frequency by an amount $f_0$, by multiplying it by $e^{j2\\pi f_0 t}$. xWhat happens if you multiply $x(t)$ by a cosine wave at frequency $1/T_0$? How about a square wave? This is a really handy thing. We used this in the VNA last year.\n",
"\n",
"3. Show that differentiation of $x(t)$ is the same as multiplying the frequency componets by $j2\\pi f$.\n",
"\n",
"4. What corresponds to filtering using a filter transfer function, $H(f)$?\n",
"\n",
"5. What are the $H(f)$ and $h(t)$ for the the time delay and differentiation? Is there a transfer function and impulse response for frequency shifting?\n",
"\n",
"6. What do the above properties mean for Fourier series, and for digital signal processing?\n",
"\n",
"\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}