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)=x2+xf(x) = x^{2} + x

Neither\displaystyle \text{Neither}
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)=x2+xf(x) = x^{2} + 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 both even and odd powers are present, so some terms change and some do not.

    f(−x)=x2−xf(-x) = x^{2} - x
  3. Compare with f(x) and -f(x)

    f(−x)f(-x) is neither equal to f(x)f(x) nor to −f(x)-f(x).

    f(−x)≠f(x) and f(−x)≠−f(x)f(-x) \neq f(x) \text{ and } f(-x) \neq -f(x)
  4. Result

    So the function is neither.

    Neither\text{Neither}

Worked examples