Calculus – Importance of Writing Function as Sum of Even and Odd Functions

calculuseven-and-odd-functions

For the function $f(x)$ we can write it as sum of even and odd functions:

$$f(x)=\underbrace{\frac{f(x)+f(-x)}{2}}_{\text{Even}}+\underbrace{\frac{f(x)-f(-x)}{2}}_{\text{Odd}}$$

My question is why it is important for us to write a function as sum of these two even and odd functions? Is there any application of that?

Best Answer

When I was a high school student I thought that the even/odd decomposition you write about seemed kind of peculiar and not so fundamental. After learning more mathematics I realized the method behind it (extracting "symmetric pieces" by averaging and what you might call anti-averaging) is actually a very simple example of two important processes in mathematics: eigenspace decompositions and averaging over a group to extract symmetric pieces of a function (or vector, etc.). What I write below is not meant to give you new situations where your even/odd decomposition helps solve a calculus problem, but to show you many further examples of the same idea so you see it is quite broadly occurring in mathematics.

In nearly every situation where there is an operation that iterates twice to be the identity operation you get an analogue of the even/odd decomposition. Here are three examples.

  1. The matrix transpose (where $M^{\top\top} = M$) leads to the expression of a square matrix as a sum of matrices that are symmetric ($M^\top = M$) and skew-symmetric ($M^\top = -M$) $$ A = \frac{A + A^\top}{2} + \frac{A - A^\top}{2} $$

  2. Complex conjugation (where $\overline{\overline{z}} = z$) gives an "even/odd" type viewpoint on writing a complex number in standard form is $a+bi$, since this is the sum of a real number (fitting $\overline{w} = w$) and a purely imaginary number (fitting $\overline{w} = -w$): $$ z = \frac{z + \overline{z}}{2} + \frac{z - \overline{z}}{2} = a + bi $$ where $z = a + bi$ and $\overline{z} = a - bi$.

  3. The swap operator on functions ($f(x,y) \mapsto f(y,x)$) or tensors ($v \otimes w \mapsto w \otimes v$) leads to the expression of a function or tensor as a sum of symmetric and antisymmetric functions or tensors: $$ f(x,y) = \frac{f(x,y) + f(y,x)}{2} + \frac{f(x,y) - f(y,x)}{2} $$ and $$ v \otimes w = \frac{v \otimes w + w \otimes v}{2} + \frac{v \otimes w - w \otimes v}{2}. $$ This has a role in quantum mechanics, where it underlies the distinction between bosons (having symmetric wavefunctions) and fermions (having antisymmetric wavefunctions).

I said that in nearly every situation you get something like an even/odd decomposition because sometimes one of those parts is zero and thus uninteresting. For instance, a 180-degree rotation $R$ of the plane has $R(v) = -v$ for all $v$ in $\mathbf R^2$, so here the whole space "looks odd" under the effect of $R$. No vector in $\mathbf R^2$ is fixed by a 180-degree rotation except for the origin.

The use of "order $2$" here keeps the algebra very simple, but we can also consider higher-order symmetries rather than symmetries of order 2. Consider for each $n \geq 1$ trying to decompose a function $f:\mathbf C \to \mathbf C$ as a sum of functions $f_k(z)$ that get scaled by the $k$th power of each $n$th root of unity when it undergoes interior scaling by each $n$th root of unity: $f_k(\zeta z) = \zeta^k f_k(z)$ for all $n$th roots of unity $\zeta$ (or equivalently just $\zeta = e^{2\pi i/n}$) and all complex numbers $z$, where $0 \leq k \leq n-1$. The case $n=2$ is even/odd functions on $\mathbf C$ ($f_0(-z) = f_0(z)$ means $f_0$ is an even function and $f_1(-z) = -f_1(z)$ means $f_1$ is an odd function). Taking $n = 4$, we can try to decompose each function $f:\mathbf C \to \mathbf C$ as a sum of four functions $$ f(z) = f_0(z) + f_1(z) + f_2(z) + f_2(z) $$ where $f_0(iz) = f_0(z)$, $f_1(iz) = if_1(z)$, $f_2(iz) = -f_2(z)$, and $f_3(iz) = -if_3(z)$ for all $z \in \mathbf C$.Here are formulas for each of the functions: $$ f_0(z) = \frac{f(z) + f(iz) + f(-z) + f(-iz)}{4}, $$ $$ f_1(z) = \frac{f(z) - if(iz) - f(-z) + if(-iz)}{4}, $$ $$ f_2(z) = \frac{f(z) - f(iz) + f(-z) - f(-iz)}{4}, $$ $$ f_3(z) = \frac{f(z) + if(iz) - f(-z) - if(-iz)}{4}. $$ These averaging formulas are generalizations of the formulas you wrote for determining the even/odd parts of a function $\mathbf R \to \mathbf R$. And this is useful in Fourier analysis, since the Fourier transform on functions has order $4$.

The ideas presented here extend even further to the decomposition of a representation of a finite group as a sum of irreducible representations. For the cyclic group of order $2$ there are two irreducible representations, and that is reflected in the appearance of even functions and odd functions in your formula. So the even/odd decomposition for functions in your question is a special case of a really important idea in math. It is not just some "trick" to solve artificial calculus problems.