Even or Odd Function Calculator

Enter a function to test whether it is even, odd or neither.

A function of x, such as x^3 - x, sin(x) or abs(x).

Try

Result

You enteredf(x)=0f(x) = 0

Both even and odd (f=0)\displaystyle \text{Both even and odd } (f = 0)
Show the work
  1. Even and odd functions

    A function is even when replacing xx by −x-x changes nothing (its graph is symmetric about the y-axis) and odd when it changes the sign of the whole function (symmetric about the origin). For a polynomial this depends only on which powers of xx appear.

    Using f(−x)=f(x) (even),f(−x)=−f(x) (odd)f(-x) = f(x) \text{ (even)}, \qquad f(-x) = -f(x) \text{ (odd)}

    f(x)=0f(x) = 0
  2. Even and odd powers of x

    Replacing xx by −x-x leaves every even power alone and flips the sign of every odd power. So there are no terms at all.

    f(−x)=0f(-x) = 0
  3. Compare with f(x) and -f(x)

    f(−x)f(-x) is compared with f(x)f(x) and with −f(x)-f(x).

    f(−x)=f(x)=−f(x)=0\begin{aligned} f(-x) &= f(x) \\ &= -f(x) \\ &= 0 \end{aligned}
  4. Result

    So the function is both even and odd (f = 0).

    Both even and odd (f=0)\text{Both even and odd } (f = 0)

Worked examples