Generalising, an even polynomial can only have terms with even powers and an odd polynomial can only have terms with odd powers. Further, if the degree of the polynomial is even then the polynomial
cannot be odd but it
can be even (though it could also be neither odd nor even). Similarly, if the degree of the polynomial is odd then the polynomial
cannot be even but it
can be odd (though it could also be neither odd nor even).
Taking
:
- is even if and only if
- cannot be odd and a polynomial of degree
Taking
:
- is odd if and only if
- cannot be even and a polynomial of degree
Any polynomial
can be partitioned into two functions:
- , an even function, and
- , an odd function, such that
- . This can be achieved by defining:
In fact, this partition can be used on any function
and if
then the function is odd, and if
then it is even. This partition is not useful for all functions. For example,
is neither odd nor even and the partition does not yield a useful / sensible partition into an odd function and an even function. By contrast,
is usefully separable into an odd component
and an even component
.
Applying this to the above problem, we need an odd function of degree 3. Starting from
we have
and we need the even part to be zero, which is how the above solutions established that
. This can be shown as follows: