Mathwords logoMathwords

Odd and Even Functions — Definition, Formula & Examples

Odd and even functions are functions classified by their symmetry. An even function is symmetric about the y-axis, meaning f(x)=f(x)f(-x) = f(x), while an odd function is symmetric about the origin, meaning f(x)=f(x)f(-x) = -f(x).

A function ff with a domain symmetric about the origin is called even if f(x)=f(x)f(-x) = f(x) for every xx in its domain, and odd if f(x)=f(x)f(-x) = -f(x) for every xx in its domain. These two properties are mutually exclusive except for the zero function f(x)=0f(x) = 0, which is both odd and even. A function that satisfies neither condition is classified as neither odd nor even.

Key Formula

Even: f(x)=f(x)Odd: f(x)=f(x)\text{Even: } f(-x) = f(x) \qquad \text{Odd: } f(-x) = -f(x)
Where:
  • f(x)f(x) = The original function value at x
  • f(x)f(-x) = The function value when x is replaced by −x
  • f(x)-f(x) = The negation (opposite sign) of the original function value

How It Works

To test whether a function is odd, even, or neither, replace every xx in the formula with x-x and simplify. If the result equals the original function f(x)f(x), the function is even. If the result equals f(x)-f(x), the function is odd. If it matches neither, the function is neither odd nor even. Graphically, an even function's graph looks the same when you flip it across the y-axis, while an odd function's graph looks the same when you rotate it 180° around the origin. Keep in mind that the domain must be symmetric about zero for either classification to apply — a function defined only on [0,5][0, 5] cannot be odd or even.

Worked Example

Problem: Determine whether f(x)=x42x2+3f(x) = x^4 - 2x^2 + 3 is odd, even, or neither.
Step 1: Replace every x with −x in the function.
f(x)=(x)42(x)2+3f(-x) = (-x)^4 - 2(-x)^2 + 3
Step 2: Simplify each term. Since (x)4=x4(-x)^4 = x^4 and (x)2=x2(-x)^2 = x^2, we get:
f(x)=x42x2+3f(-x) = x^4 - 2x^2 + 3
Step 3: Compare f(x)f(-x) to f(x)f(x). They are identical.
f(x)=x42x2+3=f(x)f(-x) = x^4 - 2x^2 + 3 = f(x)
Step 4: Since f(x)=f(x)f(-x) = f(x) for all x, the function is even. Its graph is symmetric about the y-axis.
Answer: f(x)=x42x2+3f(x) = x^4 - 2x^2 + 3 is an even function.

Another Example

This example shows a function that fails both tests. The constant term +1 breaks the origin symmetry that x3x^3 alone would have. It illustrates that adding a nonzero constant to an odd function destroys the odd property.

Problem: Determine whether g(x)=x3+1g(x) = x^3 + 1 is odd, even, or neither.
Step 1: Replace every x with −x.
g(x)=(x)3+1=x3+1g(-x) = (-x)^3 + 1 = -x^3 + 1
Step 2: Check if g(x)=g(x)g(-x) = g(x). Compare x3+1-x^3 + 1 to x3+1x^3 + 1. These are not equal, so the function is not even.
Step 3: Check if g(x)=g(x)g(-x) = -g(x). Compute g(x)-g(x).
g(x)=(x3+1)=x31-g(x) = -(x^3 + 1) = -x^3 - 1
Step 4: Compare g(x)=x3+1g(-x) = -x^3 + 1 to g(x)=x31-g(x) = -x^3 - 1. They differ (the constant terms have opposite signs), so the function is not odd either.
Answer: g(x)=x3+1g(x) = x^3 + 1 is neither odd nor even.

Visualization

Why It Matters

Odd and even function properties appear throughout precalculus and AP Calculus. In calculus, knowing a function is even or odd simplifies definite integrals: the integral of an odd function over a symmetric interval [a,a][-a, a] is always zero, which saves significant computation. Engineers and physicists use these symmetry properties in Fourier analysis to decompose signals into sine (odd) and cosine (even) components.

Common Mistakes

Mistake: Assuming a function must be either odd or even.
Correction: Most functions are neither. For example, f(x)=x2+xf(x) = x^2 + x fails both tests. Always check both conditions before concluding.
Mistake: Testing only one or two x-values instead of proving the identity algebraically.
Correction: Plugging in x=2x = 2 and seeing f(2)=f(2)f(-2) = f(2) does not prove a function is even — it must hold for every x in the domain. Always substitute x-x into the full formula and simplify.
Mistake: Confusing odd/even functions with odd/even numbers.
Correction: While there is a connection for power functions (xnx^n is even when n is even, odd when n is odd), general functions like exe^x or lnx\ln x are neither, regardless of any number being odd or even. Use the algebraic definitions.

Check Your Understanding

Is f(x)=x5xf(x) = x^5 - x odd, even, or neither?
Hint: Substitute x-x for xx and simplify each term separately.
Answer: Odd. f(x)=x5+x=(x5x)=f(x)f(-x) = -x^5 + x = -(x^5 - x) = -f(x).
Is h(x)=x2+xh(x) = x^2 + x odd, even, or neither?
Hint: Check the even test first, then the odd test.
Answer: Neither. h(x)=x2xh(-x) = x^2 - x, which equals neither h(x)h(x) nor h(x)-h(x).
If ff is odd, what must f(0)f(0) equal?
Hint: Plug x=0x = 0 directly into the odd function condition.
Answer: f(0)=0f(0) = 0. Setting x=0x = 0 in f(x)=f(x)f(-x) = -f(x) gives f(0)=f(0)f(0) = -f(0), so 2f(0)=02f(0) = 0.

Related Terms