How to choose between real and complex coefficients of Fourier series?

2.1k Views Asked by At

Sometimes in exercises we are asked to calculate the fourier series of a function. But there are two ways to do that.

If $f:\Bbb R\mapsto\Bbb R$ is $T$-periodic over $\Bbb R$ then what conditions will make you choose one type of coefficients over the other? I'm referring to the choice between calculating $a_n={2\over T}\int\limits_0^Tf(x)\cos({2\pi\over T}nx)dx,\ b_n={2\over T}\int\limits_0^Tf(x)\sin({2\pi\over T}nx)dx\ $ or $\ c_n={1\over T}\int\limits_0^Tf(x)e^{-i{2\pi\over T}nx}$

for a function.

2

There are 2 best solutions below

0
On

$a_n$ is the cosine series, whilst $b_n$ is the sine series. The use of them depends on whether the function on $\mathbb{R}$ is even or odd:

  • If the function is even, $a_n$ will give you the Fourier coefficient of sum of $\cos(\frac{2\pi nx}{T})$. You'll have to figure out what $a_0$ is, since the function is even.
  • If the function is odd, $b_n$ will give you the Fourier coefficient of sum of $\sin(\frac{2\pi nx}{T})$. You don't have $b_0$ for an odd function.
  • If neither, you have to compute coefficients for sum of $\cos(\frac{2\pi nx}{T})$ and sum of $\sin(\frac{2\pi nx}{T})$.

For complex Fourier coefficient $c_n$, if the function is odd , the Fourier coefficient is purely imaginary (and odd). If the function is even , the Fourier coefficient is purely real (and even). You can apply the integral for coefficient to arbitrary periodic functions on, $\mathbb{R}$ or $\mathbb{C}$.

Note that the sums of them (representations) are different. For complex Fourier series, you have an infinite sum of exponential; for sine and cosine series, you have sums over positive $n$. However, the resultant representations are equivalent. You can check by picking any odd/even functions.

In short, it depends on the questions "In what form do you want the function to be in?" and "Will this simplify calculation?".

0
On

\begin{align} & \frac{1}{2\pi}\int_{-\pi}^{\pi}f(t)dt \\ &+\sum_{n=1}^{N}\frac{1}{\pi}\int_{-\pi}^{\pi}f(t)\cos(nt)dt\cos(nx) \\ &+\sum_{n=1}^{N}\frac{1}{\pi}\int_{-\pi}^{\pi}f(t)\sin(nt)dt\sin(nx) \\ =& \frac{1}{2\pi}\int_{-\pi}^{\pi}f(t)dt+\sum_{n=1}^{N}\frac{1}{\pi}\int_{-\pi}^{\pi}f(t)\cos(n(t-x))dt \\ =&\sum_{n=-N}^{N}\frac{1}{2\pi}\int_{-\pi}^{\pi}f(t)e^{-int}dt e^{inx} \end{align}