In short
A function is even if f(-x) = f(x) for all x in its domain — its graph is symmetric about the y-axis. A function is odd if f(-x) = -f(x) — its graph is symmetric about the origin (180° rotation). Most functions are neither. The classification matters because even/odd symmetry cuts computation in half: integrals, series expansions, and equation-solving all simplify when symmetry is present.
Stand on a flat road and look at a distant cell tower. The two guy-wires anchoring the tower to the ground — one running left, one running right — form a symmetric V-shape. If you sketched the height of the wire as a function of horizontal distance from the tower, you would get something like f(x) = |x|: the same shape on the left as on the right, a perfect mirror image across the vertical centre line.
Now think of a different shape. A motorcycle ramp at a stunt show curves upward to the right and downward to the left — like the graph of f(x) = x^3. There is no left-right mirror symmetry here. But there is a different kind of symmetry: if you rotate the entire picture 180° around the centre point, it looks exactly the same. The upward curve on the right becomes the downward curve on the left, and vice versa.
These two types of symmetry — mirror symmetry about the y-axis, and rotational symmetry about the origin — are the defining properties of even and odd functions.
The definitions
Even function
A function f is even if its domain is symmetric about 0 and
Geometrically: the graph is unchanged when reflected across the y-axis.
Odd function
A function f is odd if its domain is symmetric about 0 and
Geometrically: the graph is unchanged when rotated 180° about the origin.
"Domain symmetric about 0" means: whenever x is in the domain, -x is also in the domain. The function f(x) = \sqrt{x}, defined only for x \ge 0, cannot be even or odd — the domain [0, \infty) is not symmetric about 0.
Testing a function: the three-step method
Given a function f(x), test whether it is even, odd, or neither:
- Check the domain. Is it symmetric about 0? If not, stop — the function is neither even nor odd.
- Compute f(-x). Replace every x with -x and simplify.
- Compare. If f(-x) = f(x), the function is even. If f(-x) = -f(x), it is odd. If neither, it is neither.
Examples of the test
f(x) = x^4 - 3x^2 + 7. The domain is \mathbb{R}, symmetric about 0. Compute:
Since f(-x) = f(x), this is even.
f(x) = x^5 + 2x. The domain is \mathbb{R}. Compute:
Since f(-x) = -f(x), this is odd.
f(x) = x^2 + x. The domain is \mathbb{R}. Compute:
Is this f(x) = x^2 + x? No. Is this -f(x) = -x^2 - x? No. So the function is neither even nor odd.
The pattern for polynomials: a polynomial with only even powers of x (including the constant term, which is x^0) is even. A polynomial with only odd powers is odd. A polynomial with a mix of even and odd powers is neither.
Beyond polynomials
The test works for any function:
- f(x) = \cos x: \cos(-x) = \cos x. Even.
- f(x) = \sin x: \sin(-x) = -\sin x. Odd.
- f(x) = e^x: e^{-x} \neq e^x and e^{-x} \neq -e^x. Neither.
- f(x) = |x|: |-x| = |x|. Even.
- f(x) = \frac{1}{x}: \frac{1}{-x} = -\frac{1}{x}. Odd.
The only function that is both even and odd
Is any function both even and odd at the same time? If f(-x) = f(x) and f(-x) = -f(x), then f(x) = -f(x), which forces 2f(x) = 0, so f(x) = 0 for all x. The zero function f(x) = 0 is the only function that is both even and odd.
Also worth noting: if f is odd, then setting x = 0 gives f(-0) = -f(0), i.e., f(0) = -f(0), so f(0) = 0. Every odd function (whose domain includes 0) must pass through the origin.
Properties under operations
What happens when you add, subtract, multiply, or compose even and odd functions? The table below summarises the results. Let E stand for even and O for odd.
| Operation | Result |
|---|---|
| E + E | Even |
| O + O | Odd |
| E + O | Neither (in general) |
| E \cdot E | Even |
| O \cdot O | Even |
| E \cdot O | Odd |
| E \circ E | Even |
| O \circ O | Odd |
| E \circ O | Even |
| O \circ E | Even |
Each of these can be verified directly from the definitions. Take the product rule "O \cdot O is even" as an example. Let f and g both be odd. Then
The two negatives cancel, giving an even product. The same pattern — replacing -x, using the symmetry condition, simplifying — proves every row in the table.
And "E \cdot O is odd": let f be even and g be odd. Then
One negative survives, making the product odd.
Every function can be split into even and odd parts
Here is a surprising and beautiful fact. Take any function f whose domain is symmetric about 0. Define:
Then f_e is even, f_o is odd, and f(x) = f_e(x) + f_o(x).
Check that f_e is even: f_e(-x) = \frac{f(-x) + f(x)}{2} = f_e(x).
Check that f_o is odd: f_o(-x) = \frac{f(-x) - f(x)}{2} = -\frac{f(x) - f(-x)}{2} = -f_o(x).
Check the sum: f_e(x) + f_o(x) = \frac{f(x) + f(-x)}{2} + \frac{f(x) - f(-x)}{2} = f(x).
Example. Take f(x) = e^x.
The exponential function is neither even nor odd, but it splits cleanly into hyperbolic cosine (even) and hyperbolic sine (odd). This decomposition appears throughout physics and engineering.
Two worked examples
Example 1: Determine whether $f(x) = \frac{x^2}{1 + |x|}$ is even, odd, or neither
Step 1. Check the domain. The denominator is 1 + |x|, which is always positive (since |x| \ge 0). So the domain is all of \mathbb{R}, which is symmetric about 0.
Why: a domain check is always the first step. If the domain is not symmetric, the question is over immediately.
Step 2. Compute f(-x).
Why: (-x)^2 = x^2 and |-x| = |x|, so every piece is unchanged.
Step 3. Compare. f(-x) = \frac{x^2}{1 + |x|} = f(x).
Why: the expressions are identical, confirming even symmetry.
Step 4. The function is even.
Result: f(x) = \frac{x^2}{1 + |x|} is even.
The graph tells the same story as the algebra. At x = -1, f(-1) = \frac{1}{2}. At x = 1, f(1) = \frac{1}{2}. Every pair of opposite inputs gives the same output — the hallmark of an even function.
Example 2: Determine whether $f(x) = x^3 - \sin x$ is even, odd, or neither
Step 1. The domain is \mathbb{R}, symmetric about 0.
Why: both x^3 and \sin x are defined for all real numbers.
Step 2. Compute f(-x).
Why: (-x)^3 = -x^3 (cube preserves the sign change) and \sin(-x) = -\sin x (sine is odd).
Step 3. Compare with -f(x).
Why: distribute the negative sign across both terms.
Step 4. Since f(-x) = -x^3 + \sin x = -f(x), the function is odd.
Result: f(x) = x^3 - \sin x is odd.
Both x^3 (odd) and \sin x (odd) are odd functions. The rule "O - O is odd" (which follows from "O + O is odd" since subtraction is addition of a negative, and the negative of an odd function is odd) correctly predicts the result. The graph confirms it: the curve through the origin has the characteristic 180° rotational symmetry of an odd function.
Common confusions
-
"A function must be either even or odd." Most functions are neither. The function f(x) = x^2 + x is neither even nor odd — it fails both tests. "Even" and "odd" are special properties that most functions do not have.
-
"Even means the exponents are even." This is a useful pattern for polynomials — x^4 + x^2 + 1 is even, x^5 + x^3 is odd — but it does not generalise. The function f(x) = e^{x^2} is even (replace x with -x and the exponent (-x)^2 = x^2 is unchanged), but there is no "exponent" in the polynomial sense.
-
"If f(0) = 0, the function is odd." Passing through the origin is necessary for odd functions (when 0 is in the domain) but not sufficient. The function f(x) = x^2 \sin x has f(0) = 0, and it happens to be odd — but f(x) = x^2 also has f(0) = 0 and is even. The value at zero is a necessary condition for oddness, not a sufficient one.
-
"The product of two odd functions is odd." It is even. Two sign flips cancel: (-1)(-1) = +1. This catches many students on their first encounter.
-
"Even/odd is about the formula, not the graph." The two are equivalent. f(-x) = f(x) is a statement about the formula; mirror symmetry about the y-axis is a statement about the graph. They say exactly the same thing. The formula is what you use to prove the property; the graph is what you use to see it.
Going deeper
If you can test any function for even/odd symmetry, apply the operation rules, and decompose a function into its even and odd parts, you have what you need for the next chapter. The material below explores extensions and applications.
Even and odd extensions
Suppose a function g is defined only for x \ge 0. You can extend it to all of \mathbb{R} in two natural ways:
Even extension:
This makes f even by copying the right-half graph onto the left half as a mirror image.
Odd extension:
This makes f odd by copying the right half, flipping it vertically, and placing it on the left. For the odd extension to be continuous at x = 0, you need g(0) = 0.
Even and odd extensions are central in Fourier analysis. When you expand a function defined on [0, L] in terms of sines (odd functions) or cosines (even functions), you are implicitly working with the odd or even extension of the original function.
An interactive test
Drag the slider to blend between f(x) = x^2 (even) and f(x) = x^3 (odd). At the extremes, the symmetry is clear; in between, the function is neither.
Where this leads next
Symmetry is one of the most powerful ideas in mathematics. Even and odd functions are the simplest case — symmetry of a function under the transformation x \mapsto -x. The next articles extend this idea.
- Periodic Functions — functions that repeat after a fixed shift. Periodicity is another kind of symmetry: invariance under x \mapsto x + T.
- Functions — Definition and Notation — the foundational definitions that underpin everything here.
- Graphs of Basic Functions — the standard library of shapes, many of which are even or odd.
- Types of Functions — a different classification (one-one, onto) that interacts with even/odd symmetry. Every non-zero even function from \mathbb{R} to \mathbb{R} is automatically not one-one.
- Domain and Range — the requirement that the domain be symmetric about 0 is a constraint on when even/odd can even be defined.