Do I subtract the DC component (mean value) from the amplitude in my sine terms?
$f(t)=\left\{ \begin{array}{l l} 0 & \quad -5\le t\leq 0\\ 1 & \quad 0< t\leq 5 \end{array} \right.$
(I'd write it properly, but it won't let me upload pics of my graph due to low rep, nor use bigger than/smaller than operator... hope you understand!)
Period is $10$.
I see the mean value is $\frac{1}{2}$. that will be a term on it's own. I've aquired the $b_n$ term, but it's twice what the solution in my book says it should be.
I set the amplitude of my function to be $1$ ... should it be $\frac{1}{2}$, because I have to account for the DC component?