# 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.**  
> - **Even test:** $f(-x) = f(x)$. Graph symmetric about the $y$-axis.  
> - **Odd test:** $f(-x) = -f(x)$. Graph symmetric about the origin (180° rotation).  
> - **Both even and odd:** only $f(x) = 0$ for all $x$. Nothing else.  
> - **Even + even = even.** **Odd + odd = odd.** Even + odd = neither (in general).  
> - **Even × even = even.** **Odd × odd = even.** Even × odd = odd.  
> - **Grade introduced:** CBSE Class 11 (functions chapter); CCSS-M HSF-BF.A.3 (identify the effect on the graph of replacing $f(x)$ by $f(-x)$); NCERT Class 11 Chapter 2 — Relations and Functions.

## 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.

- **Integration shortcut.** For odd $f$ and symmetric interval $	exttt{[-a, a]}$: $\int_{-a}^{a} f(x), dx = 0$. The positive and negative halves cancel exactly. For even $f$: $\int_{-a}^{a} f(x), dx = 2 \int_{0}^{a} f(x), dx$. Half the integration work.
- **Fourier series.** Even functions expand into a cosine series only; odd functions, sine only. Knowing the parity halves the work of computing coefficients.
- **Physics symmetry.** Even potentials (e.g., the harmonic oscillator $V = kx^2$) admit even/odd parity quantum states; the parity is a _conserved quantity_.
- **Computer graphics.** Even functions describe mirror-symmetric shapes; odd functions describe centrally-symmetric ones. Both halve storage requirements.
- **Signal processing.** Real signals decompose into even and odd parts: $f(x) = f_e(x) + f_o(x)$ where $f_e(x) = (f(x) + f(-x))/2$ and $f_o(x) = (f(x) - f(-x))/2$.

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

- An **even function** satisfies $f(-x) = f(x)$ — symmetric about the $y$-axis.
- An **odd function** satisfies $f(-x) = -f(x)$ — symmetric about the origin.
- The single most common mistake is judging parity by exponent patterns alone — always test by substituting $-x$ into the function.
- The only function that is both even and odd is $f(x) = 0$.
- The classification powers integration shortcuts, Fourier series, and parity-based physics arguments.

## 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}.
