Even functions use only cosines (F(–x) = F(x)) and odd functions use only sines. The coefficients an and bn come from integrals of F(x) cos(nx) and F(x) sin(nx).