Note: The formulas for the Fourier transform on half intervals are often given in the form $\frac{2}{L}\displaystyle\int_{0}^Lf(x)cos\left(\frac{n\pi x}{L}\right) dx$, with the $\frac{2}{L}$ outside the integral. Computing these integrals will often involve u-substitutions, integration by parts, and other integration techniques that will produce all kinds of constants. With the way these problems are asked in WeBWorK, it would be hard to keep track of when constants should be factored out or not, so we will adopt the policy that constants are always part of the integrand. For example the formula for the cosine coefficient would be $\displaystyle\int_{0}^L\frac{2}{L}f(x)cos\left(\frac{n\pi x}{L}\right) dx$. When performing an integration by parts, all constants are included in the u term.

For the function $f(x) = \cases{1 & -9 < x < 0\\ -1 & 0 < x < 9\\}$ on the interval $[-9,9]$ we need only compute one set of the Fourier coefficients:

 $\displaystyle\int$ $dx =$

Your overall score for this problem is