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)=∣x∣f(x) = \left|x\right|

Even\displaystyle \text{Even}

This function is not a polynomial, so it was tested numerically at 50 points rather than proved from its exponents.

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).

    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)=∣x∣f(x) = \left|x\right|
  2. Test at sample points

    Compare f(−x)f(-x) with f(x)f(x) at 50 values of xx. For example at x=0.1x = 0.1 the values are 0.10.1 and 0.10.1. It is even if they always agree and odd if they are always opposite.

    f(0.1)=0.1f(−0.1)=0.1\begin{gathered} f(0.1) = 0.1 \\ f(-0.1) = 0.1 \end{gathered}
  3. Result

    So the function is even.

    Even\text{Even}

Worked examples