Even and Odd Parts of a Function
In[28]:=
Clear[p1,p2,p3,p4,f]
f[x_]:=x^2+x^3
p1=Plot[f[x],{x,-4,4}];

In[29]:=
fe[x_]:=(1/2) (f[x]+f[-x])
fo[x_]:=(1/2) (f[x]-f[-x])
fe[x]
fo[x]
Out[29]=
2 x
Out[30]=
3 x
Well, that should come as NO surprise.
In[31]:=
Clear[f,fe,fo]
f[x_]:=Exp[x]
Plot[f[x],{x,-4,4}];

In[32]:=
fe[x_]:=(1/2) (f[x]+f[-x])
fo[x_]:=(1/2) (f[x]-f[-x])
fe[x]
fo[x]
Out[32]=
-x x
E + E
--------
2
Out[33]=
-x x
-E + E
---------
2
In[34]:=
Plot[fe[x],{x,-4,4}];

In[35]:=
Plot[fo[x],{x,-4,4}];

In[36]:=
Plot[fe[x]+fo[x],{x,-4,4}];

When calculating Fourier series, the even part of the function yields the cosine terms and the odd part of the function yields the sine terms.