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

Odd\displaystyle \text{Odd}

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)=sin⁡(x)f(x) = \sin\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.0998330.099833 and −0.099833-0.099833. It is even if they always agree and odd if they are always opposite.

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

    So the function is odd.

    Odd\text{Odd}

Worked examples