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)=x3−xf(x) = x^{3} - x

Odd\displaystyle \text{Odd}
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)=x3−xf(x) = x^{3} - x
  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 only odd powers are present and every term changes sign.

    f(−x)=−x3+xf(-x) = -x^{3} + x
  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) = -f(x)
  4. Result

    So the function is odd.

    Odd\text{Odd}

Worked examples