Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Even or Odd Function Calculator

How to use
  1. Type the function in the f(x)f(x) box, for example x4−2x2x^4 - 2x^2, x3−xx^3 - x or xcos⁡(x)x\cos(x). Learn more about entering the function
  2. Read the verdict under Symmetry: even, odd, or neither. A function that repeats also gets its Period. Learn more about reading the answer
  3. Look at the graph. The dashed amber curve is f(−x)f(-x), the mirror image in the yy-axis; the dashed teal curve is −f(−x)-f(-x), the half turn about the origin. The one that lies on the blue graph tells you the symmetry.
  4. Read How it was found for f(−x)f(-x) written out and a check with numbers.

Even or odd
Symmetry
Odd\displaystyle \text{Odd}
How it was found

Put −x-x in place of xx: f(−x)=(−x)3−(−x)f(-x) = {\left(-x\right)}^{3}-\left(-x\right).

A check with numbers: f(1)=0f(1) = 0, f(−1)=0f(-1) = 0; f(2)=6f(2) = 6, f(−2)=−6f(-2) = -6.

f(−x)=−f(x)f(-x) = -f(x) for every xx: odd. Half a turn about the origin puts the graph back on itself, so the teal curve −f(−x)-f(-x) lies on it.

Drawn by the tool
f(−x) — mirror in the y-axisf(-x) \text{ — mirror in the y-axis}read-only
−f(−x) — half turn about the origin-f(-x) \text{ — half turn about the origin}read-only
f(x)=x3−xf\left(x\right)={x}^{3}-x
f(−x) — mirror in the y-axisf(-x) \text{ — mirror in the y-axis}
−f(−x) — half turn about the origin-f(-x) \text{ — half turn about the origin}


Testing a function

DemoEven, odd or neither
Step 0 of 4
Type the function in the f(x)f(x) box. The calculator replaces xx with −x-x, compares the result with f(x)f(x) and with −f(x)-f(x), and gives the verdict under Symmetry.

Next to the blue graph of ff it draws two dashed curves: f(−x)f(-x) in amber and −f(−x)-f(-x) in teal. If the function is even, the amber curve lies exactly on the blue one. If it is odd, the teal curve does. If neither does, the function is neither even nor odd, and you can see where the curves part.

The verdict follows every change. Add a constant to an odd function and watch it stop being odd.

Reading the answer

DemoBeyond polynomials
Step 0 of 4
    The Symmetry box says one of three things:

  • Even: f(−x)=f(x)f(-x) = f(x) for every xx. The graph is its own mirror image in the yy-axis.
  • Odd: f(−x)=−f(x)f(-x) = -f(x) for every xx. A half turn about the origin puts the graph back on itself.
  • Neither even nor odd: neither equation holds for every xx.

  • If the function repeats, a Period box gives the length after which it does: 2π2\pi for sin⁡(x)\sin(x), π\pi for tan⁡(x)\tan(x).

    How it was found shows f(−x)f(-x) with −x-x put in place of every xx, and then a check with numbers: the values of ff at 11 and −1-1, and at 22 and −2-2. Equal pairs point to an even function; pairs with opposite signs point to an odd one.

Even functions

A function is even when f(−x)=f(x)f(-x) = f(x) for every xx in its domain: opposite inputs give the same output.

For f(x)=x2−2f(x) = x^2 - 2: f(−x)=(−x)2−2=x2−2=f(x)f(-x) = (-x)^2 - 2 = x^2 - 2 = f(x). So the points (2, 2)(2,\ 2) and (−2, 2)(-2,\ 2) are both on the graph, and in general every point has a partner at the same height on the other side of the yy-axis. The graph is symmetric about the yy-axis.

Examples: x2x^2, x4x^4, ∣x∣|x|, cos⁡(x)\cos(x), any constant, and any polynomial with even powers only.
x2−2x^2 - 2 is even: (−2, 2)(-2,\ 2) and (2, 2)(2,\ 2) are at the same height.

Odd functions

A function is odd when f(−x)=−f(x)f(-x) = -f(x) for every xx in its domain: opposite inputs give opposite outputs.

For f(x)=x3−xf(x) = x^3 - x: f(−x)=(−x)3−(−x)=−x3+x=−(x3−x)=−f(x)f(-x) = (-x)^3 - (-x) = -x^3 + x = -(x^3 - x) = -f(x). Every point (x, y)(x,\ y) on the graph has a partner (−x, −y)(-x,\ -y), straight across the origin. The graph is symmetric about the origin.

If an odd function is defined at 00, then f(0)=−f(0)f(0) = -f(0), so f(0)=0f(0) = 0: its graph passes through the origin.

Examples: xx, x3x^3, 1x\dfrac{1}{x}, sin⁡(x)\sin(x), tan⁡(x)\tan(x), and any polynomial with odd powers only.
x3−xx^3 - x is odd: each point has a partner straight across the origin.

Most functions are neither

Being even or odd is special. f(x)=x2+xf(x) = x^2 + x gives f(−x)=x2−xf(-x) = x^2 - x, which is neither x2+xx^2 + x nor −x2−x-x^2 - x. One check with numbers is enough to rule both out: f(1)=2f(1) = 2 and f(−1)=0f(-1) = 0 are neither equal nor opposite.

Other examples: exe^x, ln⁡(x)\ln(x), x\sqrt{x}, x3+1x^3 + 1.

A function whose domain is not symmetric about 00 cannot be even or odd. x\sqrt{x} has no value at any negative number, so f(−x)f(-x) cannot be compared with anything.

Only one function is both even and odd: the constant 00.
x2+xx^2 + x (blue) and its mirror image f(−x)f(-x) (dashed) are different curves.

The test by hand

To test a function by hand:

1. Write f(−x)f(-x) by replacing every xx with (−x)(-x), keeping the brackets.
2. Simplify. Even powers swallow the sign, (−x)2=x2(-x)^2 = x^2; odd powers keep it, (−x)3=−x3(-x)^3 = -x^3.
3. Compare. If you get f(x)f(x) back, the function is even. If you get −f(x)-f(x), it is odd. Otherwise it is neither.

For a polynomial this comes down to its powers: only even powers (a constant counts as x0x^0) make it even, only odd powers make it odd, a mixture makes it neither.

Useful facts for products and sums: even times even is even, odd times odd is even, even times odd is odd. A sum of two even functions is even, of two odd functions is odd.

Symmetry of the trigonometric functions

cos⁡(x)\cos(x) is even: cos⁡(−x)=cos⁡(x)\cos(-x) = \cos(x). sin⁡(x)\sin(x) and tan⁡(x)\tan(x) are odd: sin⁡(−x)=−sin⁡(x)\sin(-x) = -\sin(x) and tan⁡(−x)=−tan⁡(x)\tan(-x) = -\tan(x).

Combinations follow the product rules. xcos⁡(x)x\cos(x) is odd (odd times even), xsin⁡(x)x\sin(x) is even (odd times odd), and sin⁡(x)+cos⁡(x)\sin(x) + \cos(x) is neither.

A shift usually destroys the symmetry: sin⁡(x)\sin(x) is odd, but sin⁡(x)+1\sin(x) + 1 is neither, because its graph no longer passes through the origin.
cos⁡(x)\cos(x) (blue) is even; sin⁡(x)\sin(x) (amber) is odd.

Common mistakes

  • Dropping the brackets. (−x)2(-x)^2 is x2x^2, but −x2-x^2 is not. Always substitute (−x)(-x) with brackets.
  • Deciding by the highest power only. x3+x2x^3 + x^2 has an odd leading power and is still neither.
  • Thinking a function must be one or the other. Most functions are neither.
  • Checking a single pair of numbers. One pair can rule a symmetry out but cannot prove it; the equation must hold for every xx.
  • Confusing odd with "symmetric about the xx-axis". A graph of a function cannot be symmetric about the xx-axis (unless it is y=0y = 0); odd means symmetric about the origin.