Even and Odd Functions — Definition, Tests, Examples

Even and Odd Functions — Definition, Tests, Examples

TL;DR

A function $f$ is even when $f(-x) = f(x)$ (its graph is symmetric about the $y$-axis) and odd when $f(-x) = -f(x)$ (its graph is symmetric about the origin). This article covers the algebraic test, three worked examples at Quick/Standard/Stretch tiers, the addition and multiplication rules, and what happens when a function is neither.

A Symmetry That Cuts Calculus Workloads in Half

A function whose graph is symmetric about the $y$-axis is called even. A function whose graph is symmetric through the origin is called odd. Most functions are neither, but the ones that are even or odd carry a structural property that can cut a calculus integral in half — literally.

The classification matters because of what symmetry implies. The integral of an odd function over a symmetric interval is exactly zero, no calculation needed. The Fourier series of an even function contains only cosines, not sines. Engineering uses both shortcuts daily.

What Even and Odd Mean Algebraically

A function $f$ is:

Even if, for every $x$ in the domain, $f(-x) = f(x)$.

Odd if, for every $x$ in the domain, $f(-x) = -f(x)$.

Neither if $f(-x)$ is neither $f(x)$ nor $-f(x)$ — true for most functions encountered in algebra.

Quick facts.

The Algebraic Test

To classify a function as even, odd, or neither:

  1. Compute $f(-x)$. Replace every $x$ in the formula with $-x$.
  2. Compare to $f(x)$. Is the result the same as $f(x)$? → even.
  3. Compare to $-f(x)$. Is the result the same as $-f(x)$? → odd.
  4. Otherwise neither.

The test is mechanical. The judgement is in correctly substituting $-x$ — especially when the function has multiple $x$ terms or exponents.

Worked Examples of Even and Odd Functions

Quick. Classify $f(x) = x^2 + 4$.

$$f(-x) = (-x)^2 + 4 = x^2 + 4 = f(x).$$

Final answer: $f$ is even.

Standard (Wrong Path First — A Common Slip Worth Walking Through). Classify $f(x) = x^3 - 2x + 5$.

The wrong path. The rusher sees a polynomial mixing $x^3$ and $x$ and thinks "all odd powers means odd function." They declare $f$ odd without testing.

The flaw: there is a constant term, $+5$, which is not an odd-power term. A constant is even ($5 = 5$ under sign-flip).

The rescue. Apply the test.

$$f(-x) = (-x)^3 - 2(-x) + 5 = -x^3 + 2x + 5.$$

Compare to $f(x) = x^3 - 2x + 5$: not equal (signs on the first two terms differ).

Compare to $-f(x) = -x^3 + 2x - 5$: not equal (the constant term differs).

Final answer: $f$ is neither even nor odd. The mix of odd-power terms with a constant breaks both symmetries.

Stretch. Classify $f(x) = \dfrac{x}{x^2 + 1}$.

$$f(-x) = \dfrac{-x}{(-x)^2 + 1} = \dfrac{-x}{x^2 + 1} = -\dfrac{x}{x^2 + 1} = -f(x).$$

Final answer: $f$ is odd. The denominator $x^2 + 1$ is even (squares preserve sign); the numerator $x$ flips sign; the whole expression flips sign, matching the odd definition.

Where Even-Odd Classification Pays Off

Symmetry is one of the deepest principles in mathematics. Recognising even-odd symmetry is the simplest practical use of that principle.

The destination, in every direction: symmetry is structure, and structure is computation you don't have to do.

The Even and Odd Functions Mistakes Students Make Most Often

1. Assuming exponent parity decides function parity.

Where it slips in: $f(x) = x^4 + x^2$ — student declares even because both exponents are even. Correct, but the reasoning is shallow.

Don't do this: Skip the substitution step when constants or mixed terms appear.

The correct way: Always test $f(-x)$ explicitly. Exponent parity gives a useful heuristic for polynomials with no constant, but adding a constant changes things.

2. Confusing "neither" with "both."

Where it slips in: A function that fails both tests — the student concludes it must be "both even and odd."

Don't do this: Treat "fails both" as "satisfies both."

The correct way: The only function that is both even and odd is $f(x) = 0$. Any function failing both tests is neither.

3. Sign errors in the substitution.

Where it slips in: $f(x) = x^3$ — student writes $f(-x) = -x^3$ correctly but then forgets that $(-x)^3 = -x^3$ requires the negative sign to come out of the cube.

Don't do this: Drop signs when computing $(-x)^n$.

The correct way: $(-x)^n = (-1)^n x^n$. Negative when $n$ is odd; positive when $n$ is even.

4. Misclassifying composite functions.

Where it slips in: $g(x) = f(x^2)$ where $f$ is unknown — student assumes the parity of $g$ matches the parity of $f$.

Don't do this: Inherit parity from the outer function alone.

The correct way: $g(-x) = f((-x)^2) = f(x^2) = g(x)$. The inner $x^2$ is even, so $g$ is even regardless of what $f$ is.

The real-world version. In 1944, the British codebreaker Tommy Flowers built Colossus — the world's first programmable digital electronic computer — to break the Lorenz cipher used by the German High Command.

Cryptanalysis exploited a parity (even/odd) property of the cipher's bit-stream: the cipher's output stream was not perfectly random, and the deviation from randomness was an odd-function statistical signature. Spotting that statistical asymmetry — the same even/odd reasoning a Grade 11 student does on $x^3 - 2x$ — shortened the war by an estimated 2 to 4 months.

The Mathematicians Who Shaped Function Symmetry

Leonhard Euler (1707–1783, Switzerland) introduced the modern definition of a function and explored symmetry properties in Introductio in analysin infinitorum (1748).

Joseph Fourier (1768–1830, France) developed the theory of Fourier series in Théorie analytique de la chaleur (1822), where the even-odd decomposition of a function determines whether its expansion contains only cosines, only sines, or both.

Emmy Noether (1882–1935, Germany) proved Noether's theorem (1915), the deepest statement in modern physics on the link between symmetry and conservation laws — for which even/odd parity of functions is the simplest example.

Conclusion

Take Even and Odd for a Test Drive

  1. Classify $f(x) = x^4 - 3x^2 + 1$.
  2. Classify $f(x) = \sin(x) + \cos(x)$.
  3. Classify $f(x) = \dfrac{1}{x^3}.