#### Question

Find (a) the Fourier cosine series, (b) the Fourier sine series. Sketch f(x) and its two periodic extensions. Show the details. f(x)=sin x(0<x<π)

#### Solution

Verified#### Step 1

1 of 9**(a)**

To find the Fourier cosine series, we suppose that the given function is even. That is, we expand the graph of the function so that it would be symmetric with respect to the $y$ axis.

We assume the function is periodic with period $p=2\pi$. This gives us

$L=\frac{p}{2}=\pi$

Since we are looking for the cosine series, we suppose that the Fourier coefficients $b_n=0$ and we need to find coefficients $a_0$, $a_n$ for $n=1,2,\ldots$

$\begin{align*} a_0&=\frac{1}{\pi}\int_{0}^{\pi}f(x)\,dx\\[7pt] &=\frac{1}{\pi}\int_{0}^{\pi} \sin x \,dx \\[7pt] &=-\frac{\cos x}{\pi}\Bigg|_0^\pi\\[7pt] &=\frac{2}{\pi } \end{align*}$