"Suppose we have a function defined on an interval [0,K], then we extend it as an even or odd function of period K so as to produce a Fourier cosine or sine series."
(1): What exactly is extending a function?
(2): How do you extend a function to become odd or even?