I need to solve this problem related with Fourier series:
${f(x)=\left\{\begin{matrix} -6& x\in [-3,0)\\ -4& x= 0\\ -2& x\in (0,3] \end{matrix}\right.}$
I would like to determine $a_{0}$, $a_{n}$ and $b_{n}$. Since this function is not a 2$\pi$-periodic function, I have to use $2L$ formula:
$a_{0}= \frac{1}{L}\int_{-L}^{L} f(x)dx$
$a_{n}= \frac{1}{L}\int_{-L}^{L} f(x) cos(\frac{n\pi}{L}x)dx$
$b_{n}= \frac{1}{L}\int_{-L}^{L} f(x) sin(\frac{n\pi}{L}x)dx$
$a_{0}$ after substitution:
$a_{0}= \frac{1}{L}\int_{-3}^{0} -6 dx + ??? + \frac{1}{L}\int_{0}^{3} -2dx$
I suppose that my main problem is clear: I don't know how to prescribe the second integral (???), because its $Df$ is not an interval, it is a specific value.