Even and Odd Functions — Definition, Tests, Examples

#Algebra
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.
BT
Bhanzu TeamLast updated on June 1, 20267 min read

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.

The definition is binary in each direction, but a function can fail both tests and still be a perfectly good function. Most functions are neither even nor odd.

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 $[-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}$.

Want a live Bhanzu trainer to walk through more even/odd function problems? Book a free demo class — online globally.

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is an even function?
A function where $f(-x) = f(x)$ for every $x$ in the domain. Its graph is symmetric about the $y$-axis. Examples: $x^2$, $\cos(x)$, $|x|$.
What is an odd function?
A function where $f(-x) = -f(x)$ for every $x$ in the domain. Its graph is symmetric about the origin. Examples: $x^3$, $\sin(x)$, $\tan(x)$.
Can a function be both even and odd?
Only the zero function $f(x) = 0$ is both. For any other function, $f(-x) = f(x)$ and $f(-x) = -f(x)$ together force $f(x) = -f(x)$, i.e., $f(x) = 0$.
Is every polynomial either even or odd?
No. A polynomial is even if all its terms have even exponents (including the constant, which is $x^0$); odd if all its terms have odd exponents; neither otherwise. Most polynomials are neither.
What is the integral of an odd function over a symmetric interval?
Zero. The positive and negative halves cancel exactly.
How do I decompose a function into its even and odd parts?
For any function $f$, write $f(x) = f_e(x) + f_o(x)$ where $f_e(x) = (f(x) + f(-x))/2$ is even and $f_o(x) = (f(x) - f(-x))/2$ is odd. The decomposition is unique.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →