Line 17: Line 17:
 
\end{align}
 
\end{align}
 
</math>
 
</math>
 +
----
 +
Comments:
  
 +
For <math>{\color{red}n\neq 0}</math>:
  
 +
<math>
 +
\begin{align}
 +
a_n &= \frac{1}{T} \int_{0}^T x(t) e^{-j \frac{2\pi}{T}nt}dt  {\color{OliveGreen}\surd}\\
 +
& =\frac{1}{2} \int_{0}^2 x(t) e^{-j \frac{2\pi}{2}nt}dt {\color{OliveGreen}\surd} \\
 +
& =\frac{1}{2} \int_{0}^1 (1) e^{-j \frac{2\pi}{2}nt}dt {\color{OliveGreen}\surd}\\
 +
&=\frac{1}{2} \left. \frac{e^{-j \frac{2\pi}{2}nt}}{{\color{red} -j \pi n }} \right|_0^1\text { (note that one should not divide by n if }n=0)\\
 +
& =\frac{1}{2} \frac{(e^{-j \pi n}-1)}{  {\color{red} -j \pi n }} \\
 +
\end{align}
 +
</math>
 +
 +
Now deal with the case <math>{\color{red}n= 0}</math>: separately:
 +
 +
<math>
 +
{\color{red}
 +
\begin{align}
 +
a_0 &= \frac{1}{T} \int_{0}^T x(t) e^{-j \frac{2\pi}{T} 0  t}dt  \\
 +
& =\frac{1}{T} \int_{0}^T x(t) dt  \\
 +
&= \text{ average of } x(t) \text{ over one period} \\
 +
&= \frac{1}{2}
 +
\end{align}
 +
}
 +
</math>
  
 
----
 
----

Revision as of 14:17, 14 September 2010

Exercise: Compute the Fourier series coefficients of the following signal:

$ x(t)=\left\{\begin{array}{ll}1&\text{ when } 0\leq t <1 \\ 0& \text{ when } 1\leq t <2\end{array} \right. $

x(t) periodic with period two.

After you have obtained the coefficients, write the Fourier series of x(t).


Answer

Can somebody finish the following computation?

$ \begin{align} a_n &= \frac{1}{T} \int_{0}^T x(t) e^{-j \frac{2\pi}{T}nt}dt \\ & =\frac{1}{2} \int_{0}^2 x(t) e^{-j \frac{2\pi}{2}nt}dt \\ & =\frac{1}{2} \int_{0}^1 (1) e^{-j \frac{2\pi}{2}nt}dt \\ & =\frac{1}{2} (e^{-j \pi n}-1) \\ \end{align} $


Comments:

For $ {\color{red}n\neq 0} $:

$ \begin{align} a_n &= \frac{1}{T} \int_{0}^T x(t) e^{-j \frac{2\pi}{T}nt}dt {\color{OliveGreen}\surd}\\ & =\frac{1}{2} \int_{0}^2 x(t) e^{-j \frac{2\pi}{2}nt}dt {\color{OliveGreen}\surd} \\ & =\frac{1}{2} \int_{0}^1 (1) e^{-j \frac{2\pi}{2}nt}dt {\color{OliveGreen}\surd}\\ &=\frac{1}{2} \left. \frac{e^{-j \frac{2\pi}{2}nt}}{{\color{red} -j \pi n }} \right|_0^1\text { (note that one should not divide by n if }n=0)\\ & =\frac{1}{2} \frac{(e^{-j \pi n}-1)}{ {\color{red} -j \pi n }} \\ \end{align} $

Now deal with the case $ {\color{red}n= 0} $: separately:

$ {\color{red} \begin{align} a_0 &= \frac{1}{T} \int_{0}^T x(t) e^{-j \frac{2\pi}{T} 0 t}dt \\ & =\frac{1}{T} \int_{0}^T x(t) dt \\ &= \text{ average of } x(t) \text{ over one period} \\ &= \frac{1}{2} \end{align} } $


More exercises on computing continuous-time Fourier series

Back to ECE301

Alumni Liaison

To all math majors: "Mathematics is a wonderfully rich subject."

Dr. Paul Garrett