Jun 7, 2025
Fourier Series Notes on the Real Fourier Series
The Fourier series is used to represent a periodic function as an infinite sum of sine and cosine functions with different frequencies and amplitudes. This allows us to analyze the function in terms of its frequency spectrum, that is, the harmonic components that make it up. The Fourier series is named after the French mathematician Jean-Baptiste Joseph Fourier, who discovered it in 1822.
The Fourier series of a function f ( x ) f(x) f ( x ) defined on the interval [ − L , L ] [-L, L] [ − L , L ] is the trigonometric series:
f ( x ) = a 0 2 + ∑ n = 1 + ∞ [ a n cos ( n π x L ) + b n sin ( n π x L ) ] Where the coefficients are: a 0 = 1 L ∫ − L L f ( x ) d x a n = 1 L ∫ − L L f ( x ) cos ( n π x L ) d x b n = 1 L ∫ − L L f ( x ) sin ( n π x L ) d x \begin{align*}
f(x) &=\frac{a_0}{2} +\sum_{n=1}^{+\infty}\quad \Bigl[ a_n\cos\Bigl(\frac{n\pi x}{L}\Bigr)+b_n\sin\Bigl(\frac{n\pi x}{L}\Bigr) \Bigr]\\
&\text{Where the coefficients are:}\\
a_0&=\frac{1}{L}\int_{-L}^{L} f(x) \, dx\\ \quad a_n&=\frac{1}{L}\int_{-L}^{L} f(x) \cos(\frac{n\pi x}{L}) \, dx
\\ \quad b_n&=\frac{1}{L}\int_{-L}^{L} f(x) \sin(\frac{n\pi x}{L}) \, dx \\
\end{align*} f ( x ) a 0 a n b n = 2 a 0 + n = 1 ∑ + ∞ [ a n cos ( L nπ x ) + b n sin ( L nπ x ) ] Where the coefficients are: = L 1 ∫ − L L f ( x ) d x = L 1 ∫ − L L f ( x ) cos ( L nπ x ) d x = L 1 ∫ − L L f ( x ) sin ( L nπ x ) d x
The Fourier series of an even function on [ − L , L ] [-L, L] [ − L , L ] is the cosine series:
f ( x ) = a 0 + ∑ n = 1 + ∞ a n cos ( n π x L ) a 0 = 2 L ∫ 0 L f ( x ) d x a n = 2 L ∫ 0 L f ( x ) cos ( n π x L ) d x \begin{align*}
f(x)&=a_0+\sum_{n=1}^{+\infty} \quad a_n\cos(\frac{n\pi x}{L})\\
a_0&=\frac{2}{L}\int_{0}^{L} f(x) \, dx\\ \quad a_n&=\frac{2}{L}\int_{0}^{L} f(x) \cos(\frac{n\pi x}{L}) \, dx
\end{align*} f ( x ) a 0 a n = a 0 + n = 1 ∑ + ∞ a n cos ( L nπ x ) = L 2 ∫ 0 L f ( x ) d x = L 2 ∫ 0 L f ( x ) cos ( L nπ x ) d x
The Fourier series of an odd function on [ − L , L ] [-L, L] [ − L , L ] is the sine series:
f ( x ) = ∑ n = 1 + ∞ b n sin ( n π x L ) b n = 2 L ∫ 0 L f ( x ) sin ( n π x L ) d x \begin{align*}
f(x)&=\sum_{n=1}^{+\infty} \quad b_n\sin(\frac{n\pi x}{L})\\
b_n&=\frac{2}{L}\int_{0}^{L} f(x) \sin(\frac{n\pi x}{L}) \, dx \\
\end{align*} f ( x ) b n = n = 1 ∑ + ∞ b n sin ( L nπ x ) = L 2 ∫ 0 L f ( x ) sin ( L nπ x ) d x
Example: Find the Fourier series of the function:
f ( x ) = { − 1 si − π < x < 0 1 si 0 < x < π \begin{align*}
f(x)&=\begin{cases} -1 & \text{si } -\pi<x<0 \\ \quad1 & \text{si } 0<x<\pi \end{cases}
\end{align*} f ( x ) = { − 1 1 si − π < x < 0 si 0 < x < π
Solution:
We note that the function is odd, so the Fourier series will be a sine series. Also, the function is periodic with period 2 π 2\pi 2 π , so L = π L=\pi L = π .
Let’s calculate the coefficient b n b_n b n (using the general definition):
b n = 1 π ∫ − π π f ( x ) sin ( n π x π ) d x = 1 π ∫ − π 0 ( − 1 ) sin ( n x ) d x + 1 π ∫ 0 π ( 1 ) sin ( n x ) d x = 1 π [ 1 n cos ( n x ) ] − π 0 − 1 π [ 1 n cos ( n x ) ] 0 π = 1 π [ cos ( 0 ) n − cos ( − n π ) n ] − 1 π [ cos ( n π ) n − cos ( 0 ) n ] = 1 π [ 1 n − 1 n cos ( n π ) ] − 1 π [ 1 n cos ( n π ) − 1 n ] = 1 π [ 1 n − ( − 1 ) n n ] − 1 π [ ( − 1 ) n n − 1 n ] = 1 π ( [ 1 n − ( − 1 ) n n ] − [ ( − 1 ) n n − 1 n ] ) = 1 π ( 2 n − 2 ( − 1 ) n n ) = 2 n π ( 1 − ( − 1 ) n ) = 2 π ( 1 + ( − 1 ) n + 1 n ) \begin{align*}
b_n&=\frac{1}{\pi}\int_{-\pi}^{\pi} f(x) \sin(\frac{n\pi x}{\pi}) \, dx\\
&=\frac{1}{\pi}\int_{-\pi}^{0} (-1) \sin(n x) \, dx \\
&+\frac{1}{\pi}\int_{0}^{\pi} (1) \sin(n x) \, dx\\
&=\frac{1}{\pi}{\Bigl[ \frac{1}{n}\cos(nx) \Bigr]}_{-\pi}^{0} -\frac{1}{\pi}{\Bigl[ \frac{1}{n}\cos(nx) \Bigr]}_{0}^{\pi}\\
&=\frac{1}{\pi}\Bigl[ \frac{\cos(0)}{n} -\frac{\cos(-n\pi)}{n} \Bigr] -\frac{1}{\pi}\Bigl[ \frac{\cos(n\pi)}{n} \\
&-\frac{\cos(0)}{n} \Bigr]\\
&=\frac{1}{\pi}\Bigl[ \frac{1}{n} -\frac{1}{n}\cos(n\pi) \Bigr] -\frac{1}{\pi}\Bigl[ \frac{1}{n}\cos(n\pi) -\frac{1}{n} \Bigr]\\
&=\frac{1}{\pi}\Bigl[ \frac{1}{n} -\frac{{(-1)}{^n}}{n} \Bigr] -\frac{1}{\pi}\Bigl[ \frac{(-1)^{n}}{n} -\frac{1}{n} \Bigr]\\
&=\frac{1}{\pi}\biggl(\Bigl[ \frac{1}{n} -\frac{(-1){^n}}{n} \Bigr] -\Bigl[ \frac{{(-1)}^{n}}{n} -\frac{1}{n} \Bigr] \biggr)\\
&=\frac{1}{\pi}\biggl(\frac{2}{n} -\frac{2 {(-1)}^{n}}{n} \biggr)\\
&=\frac{2}{n\pi}\biggl(1 -(-1)^{n} \biggr)\\
&=\frac{2}{\pi}\biggl( \frac{1 +(-1)^{n+1}}{n} \biggr)\\
\end{align*} b n = π 1 ∫ − π π f ( x ) sin ( π nπ x ) d x = π 1 ∫ − π 0 ( − 1 ) sin ( n x ) d x + π 1 ∫ 0 π ( 1 ) sin ( n x ) d x = π 1 [ n 1 cos ( n x ) ] − π 0 − π 1 [ n 1 cos ( n x ) ] 0 π = π 1 [ n cos ( 0 ) − n cos ( − nπ ) ] − π 1 [ n cos ( nπ ) − n cos ( 0 ) ] = π 1 [ n 1 − n 1 cos ( nπ ) ] − π 1 [ n 1 cos ( nπ ) − n 1 ] = π 1 [ n 1 − n ( − 1 ) n ] − π 1 [ n ( − 1 ) n − n 1 ] = π 1 ( [ n 1 − n ( − 1 ) n ] − [ n ( − 1 ) n − n 1 ] ) = π 1 ( n 2 − n 2 ( − 1 ) n ) = nπ 2 ( 1 − ( − 1 ) n ) = π 2 ( n 1 + ( − 1 ) n + 1 )
Using the parity property of the sine function:
b n = 2 π ∫ 0 π f ( x ) sin ( n π x π ) d x = 2 π ∫ 0 π ( 1 ) sin ( n x ) d x = 2 π [ − 1 n cos ( n x ) ] 0 π = 2 π [ − 1 n cos ( n π ) + 1 n cos ( 0 ) ] = 2 π [ − 1 n ( − 1 ) n + 1 n ] = 2 π ( 1 − ( − 1 ) n n ) = 2 π ( 1 + ( − 1 ) n + 1 n ) \begin{align*}
b_n&=\frac{2}{\pi}\int_{0}^{\pi} f(x) \sin(\frac{n\pi x}{\pi}) \, dx\\
&=\frac{2}{\pi}\int_{0}^{\pi} (1) \sin(n x) \, dx\\
&=\frac{2}{\pi}{\Bigl[ -\frac{1}{n}\cos(nx) \Bigr]}_{0}^{\pi}\\
&=\frac{2}{\pi}\Bigl[ -\frac{1}{n}\cos(n\pi) +\frac{1}{n}\cos(0) \Bigr]\\
&=\frac{2}{\pi}\Bigl[ -\frac{1}{n}(-1)^{n} +\frac{1}{n} \Bigr]\\
&=\frac{2}{\pi}\biggl( \frac{1 -(-1)^{n}}{n} \biggr)\\
&=\frac{2}{\pi}\biggl( \frac{1 +(-1)^{n+1}}{n} \biggr)\\
\end{align*} b n = π 2 ∫ 0 π f ( x ) sin ( π nπ x ) d x = π 2 ∫ 0 π ( 1 ) sin ( n x ) d x = π 2 [ − n 1 cos ( n x ) ] 0 π = π 2 [ − n 1 cos ( nπ ) + n 1 cos ( 0 ) ] = π 2 [ − n 1 ( − 1 ) n + n 1 ] = π 2 ( n 1 − ( − 1 ) n ) = π 2 ( n 1 + ( − 1 ) n + 1 )
Therefore, the Fourier series of the function is:
f ( x ) = 2 π ∑ n = 1 + ∞ ( 1 + ( − 1 ) n + 1 n ) sin ( n x ) \begin{align*}
f(x)&= \frac{2}{\pi}\sum_{n=1}^{+\infty} \quad \biggl( \frac{1 +(-1)^{n+1}}{n} \biggr) \sin(nx)\\
\end{align*} f ( x ) = π 2 n = 1 ∑ + ∞ ( n 1 + ( − 1 ) n + 1 ) sin ( n x )
We note that both methods yield the same result, but the second method (using the parity property of the sine function) is shorter and easier to calculate.
Remember: Parity Properties of Sine and Cosine Functions
Even function: A function f ( x ) f(x) f ( x ) is even if f ( − x ) = f ( x ) f(-x)=f(x) f ( − x ) = f ( x ) for all x x x in the domain of f ( x ) f(x) f ( x ) .
Odd function: A function f ( x ) f(x) f ( x ) is odd if f ( − x ) = − f ( x ) f(-x)=-f(x) f ( − x ) = − f ( x ) for all x x x in the domain of f ( x ) f(x) f ( x ) .
Parity property of the sine function: The sine function is an odd function, meaning sin ( − x ) = − sin ( x ) \sin(-x)=-\sin(x) sin ( − x ) = − sin ( x ) for all x x x in the domain of the sine function.
Parity property of the cosine function: The cosine function is an even function, meaning cos ( − x ) = cos ( x ) \cos(-x)=\cos(x) cos ( − x ) = cos ( x ) for all x x x in the domain of the cosine function.
Whenever we are working with an odd function , we can use the parity property of the sine function to calculate the coefficient b n b_n b n . Similarly, when we have an even function , we can use the parity property of the cosine function to calculate the coefficient a n a_n a n .
Complex Fourier Series
The complex Fourier series is an alternative way to write the Fourier series of a function f ( x ) f(x) f ( x ) defined on the interval [ − L , L ] [-L,L] [ − L , L ] . The complex Fourier series of a function f ( x ) f(x) f ( x ) defined on the interval [ − L , L ] [-L,L] [ − L , L ] is the series:
f ( x ) = ∑ n = − ∞ + ∞ c n e i n π x L \begin{align*}
f(x) &=\sum_{n=-\infty}^{+\infty} \quad c_n e^{i\frac{n\pi x}{L}}\\
\end{align*} f ( x ) = n = − ∞ ∑ + ∞ c n e i L nπ x
Where the coefficient is given by:
c n = 1 2 L ∫ − L L f ( x ) e − i n π x L d x \begin{align*}
c_n=\frac{1}{2L}\int_{-L}^{L} f(x) e^{-i\frac{n\pi x}{L}} \, dx\\
\end{align*} c n = 2 L 1 ∫ − L L f ( x ) e − i L nπ x d x
Example: Find the complex Fourier series of the function on [ − π , π ] [-\pi, \pi] [ − π , π ] :
f ( t ) = cos ( t 2 ) \begin{align*}
f(t)&=\cos(\frac{t}{2})\\
\end{align*} f ( t ) = cos ( 2 t )
Solution:
We note that the function is periodic with period 2 π 2\pi 2 π , so L = π L=\pi L = π .
We calculate the coefficient c n c_n c n :
c n = 1 2 π ∫ − π π f ( t ) e − i n π t π d t = 1 2 π ∫ − π π cos ( t 2 ) e − i n t d t = 1 2 π ∫ − π π ( e i t 2 + e − i t 2 2 ) e − i n t d t = 1 4 π ∫ − π π ( e i t 2 + e − i t 2 ) e − i n t d t = 1 4 π ∫ − π π e i t 2 e − i n t d t + 1 4 π ∫ − π π e − i t 2 e − i n t d t = 1 4 π ∫ − π π e i ( t 2 − n t ) d t + 1 4 π ∫ − π π e − i ( t 2 + n t ) d t = 1 4 π [ e i ( t 2 − n t ) i ( 1 2 − n ) ] − π π + 1 4 π [ e − i ( t 2 + n t ) − i ( 1 2 + n ) ] − π π = 1 4 π [ e i ( 1 2 − n ) π i ( 1 2 − n ) − e − i ( 1 2 − n ) π i ( 1 2 − n ) + e − i ( 1 2 + n ) π − i ( 1 2 + n ) − e i ( 1 2 + n ) π − i ( 1 2 + n ) ] = 1 4 π [ e i ( 1 2 − n ) π i ( 1 2 − n ) − e − i ( 1 2 − n ) π i ( 1 2 − n ) − e − i ( 1 2 + n ) π i ( 1 2 + n ) + e i ( 1 2 + n ) π i ( 1 2 + n ) ] = 1 4 π [ e i π 2 e − i n π i ( 1 2 − n ) − e − i π 2 e − i n π i ( 1 2 − n ) − e − i π 2 e i n π i ( 1 2 + n ) + e i π 2 e i n π i ( 1 2 + n ) ] = 1 4 π [ i ( − 1 ) n i ( 1 2 − n ) − − i ( − 1 ) n i ( 1 2 − n ) − − i ( − 1 ) n i ( 1 2 + n ) + i ( − 1 ) n i ( 1 2 + n ) ] = 1 4 π [ 2 ( − 1 ) n ( 1 2 − n ) + 2 ( − 1 ) n ( 1 2 + n ) ] = ( − 1 ) n 2 π [ 1 ( 1 2 − n ) + 1 ( 1 2 + n ) ] = ( − 1 ) n 2 π [ 2 ( 1 − 2 n ) + 2 ( 1 + 2 n ) ] = ( − 1 ) n π [ 1 ( 1 − 2 n ) + 1 ( 1 + 2 n ) ] = ( − 1 ) n π [ 2 ( 1 − 4 n 2 ) ] \begin{align*}
c_n&=\frac{1}{2\pi}\int_{-\pi}^{\pi} f(t) e^{-i\frac{n\pi t}{\pi}} \, dt\\
&=\frac{1}{2\pi}\int_{-\pi}^{\pi} \cos(\frac{t}{2}) e^{-in t} \, dt\\
&=\frac{1}{2\pi}\int_{-\pi}^{\pi} (\frac{e^{i\frac{t}{2}} + e^{-i\frac{t}{2}}}{2}) e^{-in t} \, dt\\
&=\frac{1}{4\pi}\int_{-\pi}^{\pi} (e^{i\frac{t}{2}} + e^{-i\frac{t}{2}}) e^{-in t} \, dt\\
&=\frac{1}{4\pi}\int_{-\pi}^{\pi} e^{i\frac{t}{2}} e^{-in t} \, dt +\frac{1}{4\pi}\int_{-\pi}^{\pi} e^{-i\frac{t}{2}} e^{-in t} \, dt\\
&=\frac{1}{4\pi}\int_{-\pi}^{\pi} e^{i(\frac{t}{2}-nt)} \, dt +\frac{1}{4\pi}\int_{-\pi}^{\pi} e^{-i(\frac{t}{2}+nt)} \, dt\\
&=\frac{1}{4\pi} \biggl[ \frac{e^{i(\frac{t}{2}-nt)}}{i(\frac{1}{2}-n)} \biggr]_{-\pi}^{\pi} +\frac{1}{4\pi} \biggl[ \frac{e^{-i(\frac{t}{2}+nt)}}{-i(\frac{1}{2}+n)} \biggr]_{-\pi}^{\pi}\\
&=\frac{1}{4\pi} \biggl[ \frac{e^{i(\frac{1}{2}-n)\pi}}{i(\frac{1}{2}-n)} -\frac{e^{-i(\frac{1}{2}-n)\pi}}{i(\frac{1}{2}-n)} + \frac{e^{-i(\frac{1}{2}+n)\pi}}{-i(\frac{1}{2}+n)} -\frac{e^{i(\frac{1}{2}+n)\pi}}{-i(\frac{1}{2}+n)} \biggr]\\
&=\frac{1}{4\pi} \biggl[ \frac{e^{i(\frac{1}{2}-n)\pi}}{i(\frac{1}{2}-n)} -\frac{e^{-i(\frac{1}{2}-n)\pi}}{i(\frac{1}{2}-n)} - \frac{e^{-i(\frac{1}{2}+n)\pi}}{i(\frac{1}{2}+n)} +\frac{e^{i(\frac{1}{2}+n)\pi}}{i(\frac{1}{2}+n)} \biggr]\\
&=\frac{1}{4\pi} \biggl[ \frac{e^{i\frac{\pi}{2}} e^{-in\pi}}{i(\frac{1}{2}-n)} -\frac{e^{-i\frac{\pi}{2}} e^{-in\pi}}{i(\frac{1}{2}-n)} - \frac{e^{-i\frac{\pi}{2}} e^{ in\pi}}{i(\frac{1}{2}+n)} +\frac{e^{i\frac{\pi}{2}} e^{in\pi}}{i(\frac{1}{2}+n)} \biggr]\\
&=\frac{1}{4\pi} \biggl[ \frac{i(-1)^n }{i(\frac{1}{2}-n)} -\frac{-i(-1)^n }{i(\frac{1}{2}-n)} - \frac{-i(-1)^n}{i(\frac{1}{2}+n)} +\frac{i(-1)^n}{i(\frac{1}{2}+n)} \biggr]\\
&=\frac{1}{4\pi} \biggl[ \frac{2(-1)^n }{(\frac{1}{2}-n)} +\frac{2(-1)^n}{(\frac{1}{2}+n)} \biggr]\\
&=\frac{(-1)^n}{2\pi} \biggl[ \frac{1 }{(\frac{1}{2}-n)} +\frac{1}{(\frac{1}{2}+n)}\biggr]\\
&=\frac{(-1)^n}{2\pi} \biggl[ \frac{2 }{(1-2n)} +\frac{2}{(1+2n)}\biggr]\\
&=\frac{(-1)^n}{\pi} \biggl[ \frac{1 }{(1-2n)} +\frac{1}{(1+2n)}\biggr]\\
&=\frac{(-1)^n}{\pi} \biggl[ \frac{2 }{(1-4n^2)} \biggr]\\
\end{align*} c n = 2 π 1 ∫ − π π f ( t ) e − i π nπ t d t = 2 π 1 ∫ − π π cos ( 2 t ) e − in t d t = 2 π 1 ∫ − π π ( 2 e i 2 t + e − i 2 t ) e − in t d t = 4 π 1 ∫ − π π ( e i 2 t + e − i 2 t ) e − in t d t = 4 π 1 ∫ − π π e i 2 t e − in t d t + 4 π 1 ∫ − π π e − i 2 t e − in t d t = 4 π 1 ∫ − π π e i ( 2 t − n t ) d t + 4 π 1 ∫ − π π e − i ( 2 t + n t ) d t = 4 π 1 [ i ( 2 1 − n ) e i ( 2 t − n t ) ] − π π + 4 π 1 [ − i ( 2 1 + n ) e − i ( 2 t + n t ) ] − π π = 4 π 1 [ i ( 2 1 − n ) e i ( 2 1 − n ) π − i ( 2 1 − n ) e − i ( 2 1 − n ) π + − i ( 2 1 + n ) e − i ( 2 1 + n ) π − − i ( 2 1 + n ) e i ( 2 1 + n ) π ] = 4 π 1 [ i ( 2 1 − n ) e i ( 2 1 − n ) π − i ( 2 1 − n ) e − i ( 2 1 − n ) π − i ( 2 1 + n ) e − i ( 2 1 + n ) π + i ( 2 1 + n ) e i ( 2 1 + n ) π ] = 4 π 1 [ i ( 2 1 − n ) e i 2 π e − inπ − i ( 2 1 − n ) e − i 2 π e − inπ − i ( 2 1 + n ) e − i 2 π e inπ + i ( 2 1 + n ) e i 2 π e inπ ] = 4 π 1 [ i ( 2 1 − n ) i ( − 1 ) n − i ( 2 1 − n ) − i ( − 1 ) n − i ( 2 1 + n ) − i ( − 1 ) n + i ( 2 1 + n ) i ( − 1 ) n ] = 4 π 1 [ ( 2 1 − n ) 2 ( − 1 ) n + ( 2 1 + n ) 2 ( − 1 ) n ] = 2 π ( − 1 ) n [ ( 2 1 − n ) 1 + ( 2 1 + n ) 1 ] = 2 π ( − 1 ) n [ ( 1 − 2 n ) 2 + ( 1 + 2 n ) 2 ] = π ( − 1 ) n [ ( 1 − 2 n ) 1 + ( 1 + 2 n ) 1 ] = π ( − 1 ) n [ ( 1 − 4 n 2 ) 2 ]
Therefore, the Fourier series of the function is:
f ( t ) = 2 π ∑ n = − ∞ + ∞ ( − 1 ) n ( 1 − 4 n 2 ) e i n t \begin{align*}
f(t)&=\frac{2}{\pi} \sum_{n=-\infty}^{+\infty} \quad \frac{(-1)^n}{(1-4n^2)} e^{in t}\\
\end{align*} f ( t ) = π 2 n = − ∞ ∑ + ∞ ( 1 − 4 n 2 ) ( − 1 ) n e in t
Using the complex Fourier series often yields a shorter and easier-to-calculate result than using the real Fourier series. Additionally, the complex Fourier series is simpler to manipulate than the real Fourier series. For example, the complex Fourier series is easier to differentiate and integrate than the real Fourier series.
Remember the following properties of the complex exponential:
e i θ = cos ( θ ) + i sin ( θ ) e − i θ = cos ( θ ) − i sin ( θ ) cos ( θ ) = e i θ + e − i θ 2 sin ( θ ) = e i θ − e − i θ 2 i cosh ( θ ) = e θ + e − θ 2 sinh ( θ ) = e θ − e − θ 2 \begin{align*}
e^{i\theta}&=\cos(\theta)+i\sin(\theta)\\
e^{-i\theta}&=\cos(\theta)-i\sin(\theta)\\
\cos(\theta)&=\frac{e^{i\theta}+e^{-i\theta}}{2}\\
\sin(\theta)&=\frac{e^{i\theta}-e^{-i\theta}}{2i}\\
\cosh(\theta)&=\frac{e^{\theta}+e^{-\theta}}{2}\\
\sinh(\theta)&=\frac{e^{\theta}-e^{-\theta}}{2}\\
\end{align*} e i θ e − i θ cos ( θ ) sin ( θ ) cosh ( θ ) sinh ( θ ) = cos ( θ ) + i sin ( θ ) = cos ( θ ) − i sin ( θ ) = 2 e i θ + e − i θ = 2 i e i θ − e − i θ = 2 e θ + e − θ = 2 e θ − e − θ
Also remember that:
cos ( n π ) = cos ( − n π ) = ( − 1 ) n sin ( n π ) = 0 cos ( n π 2 ) = 0 sin ( n π 2 ) = sin ( − n π 2 ) = ( − 1 ) n + 1 \begin{align*}
\cos(n\pi)&= \cos(-n\pi)={(-1)}^{n}\\
\sin(n\pi)&=0\\
\cos(\frac{n\pi}{2})&=0\\
\sin(\frac{n\pi}{2})&= \sin(-\frac{n\pi}{2})={(-1)}^{n+1}\\
\end{align*} cos ( nπ ) sin ( nπ ) cos ( 2 nπ ) sin ( 2 nπ ) = cos ( − nπ ) = ( − 1 ) n = 0 = 0 = sin ( − 2 nπ ) = ( − 1 ) n + 1
With these properties, you can calculate the complex Fourier series of a function more easily and quickly.