I've seen quite a few proofs already that demonstrate that any function $f$ can be written as the sum of an even and odd function. I'm trying to prove this result by dividing into cases where $f$ is even, $f$ is odd, and $f$ is neither even nor odd. But I'm having trouble with the case where $f$ is neither even nor odd.
This is the construction of the proof so far:
By definition a function $f$ is even if $f(x)=f(-x)$ and odd if $f(x)=-f(-x).$ From a previous result, the sum of two even functions is even, the sum of two odd functions is odd, and the sum of an even and odd function is neither even nor odd.
$f$ is even: $f(x)=\dfrac{f(x)+f(x)}{2}=\dfrac{f(x)+f(-x)}{2}+0=\dfrac{f(x)+f(-x)}{2}+\dfrac{f(x)-f(-x)}{2}$
$f$ is odd: $f(x) = \dfrac{-f(x)-f(x)}{-2}=0 +\ \dfrac{-f(x)+f(-x)}{-2}=\dfrac{f(x)+f(-x)}{2}+\dfrac{f(x)-f(-x)}{2} $
How would I go about showing that a function $f$ which is neither even nor odd can be written as the sum of an even function $\biggl(E(x):=\dfrac{f(x)+f(-x)}{2}\biggr)$ and an odd function $\biggl(O(x):=\dfrac{f(x)-f(-x)}{2}\biggr)$?