How do I divide a function into even and odd sections?

Suppose you could write a function $f(x)$ as the sum of an even and an odd function; call them $E(x)$ and $O(x)$.

In particular, you would have \[f(x) = E(x)+O(x)\] and you would also have \[f(-x) = E(-x) + O(-x) = E(x) - O(x)\] with the latter equation because we are assuming $E$ is even and $O$ is odd, so $E(x)=E(-x)$ and $O(-x) = -O(x)$.

Adding both equations you get $f(x)+f(-x) = 2E(x)$. Subtracting the second equation from the first gives you $f(x)-f(-x)=2O(x)$. Now solve for $E(x)$ and $O(x)$, and you get the formulas you see in the solution. Then you check that the answer does indeed work (that is, you check that the formulas you found do give you an even and an odd function in all cases).

In other words: pretend you already know the answer, and try to deduce conditions that the answer must satisfy (these will be necessary conditions); if things go well, you'll get enough information about what they must be like to figure out what they are.


Suppose $f(x)=g(x)+h(x)$ with $g$ even and $h$ odd. Then $f(-x)=g(-x)+h(-x)=g(x)-h(x)$. Think of $f(x)=g(x)+h(x)$ and $f(-x)=g(x)-h(x)$ as a system of two equations in two unknowns, $g(x)$ and $h(x)$, to solve for $g$ and $h$.