Look at the graph. The dashed amber curve is f(−x), the mirror image in the y-axis; the dashed teal curve is −f(−x), the half turn about the origin. The one that lies on the blue graph tells you the symmetry.
Read How it was found for f(−x) written out and a check with numbers.
Even or odd
Symmetry
Odd
How it was found
Put −x in place of x: f(−x)=(−x)3−(−x).
A check with numbers: f(1)=0, f(−1)=0; f(2)=6, f(−2)=−6.
f(−x)=−f(x) for every x: odd. Half a turn about the origin puts the graph back on itself, so the teal curve −f(−x) lies on it.
Type the function in the f(x) box. The calculator replaces x with −x, compares the result with f(x) and with −f(x), and gives the verdict under Symmetry.
Next to the blue graph of f it draws two dashed curves: f(−x) in amber and −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) for every x. The graph is its own mirror image in the y-axis.
Odd: f(−x)=−f(x) for every x. A half turn about the origin puts the graph back on itself.
Neither even nor odd: neither equation holds for every x.
If the function repeats, a Period box gives the length after which it does: 2π for sin(x), π for tan(x).
How it was found shows f(−x) with −x put in place of every x, and then a check with numbers: the values of f at 1 and −1, and at 2 and −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) for every x in its domain: opposite inputs give the same output.
For f(x)=x2−2: f(−x)=(−x)2−2=x2−2=f(x). So the points (2,2) and (−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 y-axis. The graph is symmetric about the y-axis.
Examples: x2, x4, ∣x∣, cos(x), any constant, and any polynomial with even powers only.
x2−2 is even: (−2,2) and (2,2) are at the same height.
Odd functions
A function is odd when f(−x)=−f(x) for every x in its domain: opposite inputs give opposite outputs.
For f(x)=x3−x: f(−x)=(−x)3−(−x)=−x3+x=−(x3−x)=−f(x). Every point (x,y) on the graph has a partner (−x,−y), straight across the origin. The graph is symmetric about the origin.
If an odd function is defined at 0, then f(0)=−f(0), so f(0)=0: its graph passes through the origin.
Examples: x, x3, x1, sin(x), tan(x), and any polynomial with odd powers only.
x3−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+x gives f(−x)=x2−x, which is neither x2+x nor −x2−x. One check with numbers is enough to rule both out: f(1)=2 and f(−1)=0 are neither equal nor opposite.
Other examples: ex, ln(x), x, x3+1.
A function whose domain is not symmetric about 0 cannot be even or odd. x has no value at any negative number, so f(−x) cannot be compared with anything.
Only one function is both even and odd: the constant 0.
x2+x (blue) and its mirror image f(−x) (dashed) are different curves.
The test by hand
To test a function by hand:
1. Write f(−x) by replacing every x with (−x), keeping the brackets. 2. Simplify. Even powers swallow the sign, (−x)2=x2; odd powers keep it, (−x)3=−x3. 3. Compare. If you get f(x) back, the function is even. If you get −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 x0) 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) is even: cos(−x)=cos(x). sin(x) and tan(x) are odd: sin(−x)=−sin(x) and tan(−x)=−tan(x).
Combinations follow the product rules. xcos(x) is odd (odd times even), xsin(x) is even (odd times odd), and sin(x)+cos(x) is neither.
A shift usually destroys the symmetry: sin(x) is odd, but sin(x)+1 is neither, because its graph no longer passes through the origin.
cos(x) (blue) is even; sin(x) (amber) is odd.
Common mistakes
Dropping the brackets.(−x)2 is x2, but −x2 is not. Always substitute (−x) with brackets.
Deciding by the highest power only.x3+x2 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 x.
Confusing odd with "symmetric about the x-axis". A graph of a function cannot be symmetric about the x-axis (unless it is y=0); odd means symmetric about the origin.
Related tools and lessons
To see the mirror image and the half turn drawn step by step on prepared examples, open the Function Symmetry visual tool. Even and odd functions are covered with the other properties of functions.
The mirror images themselves are transformations; build any of them with the Function Transformation Calculator. For the symmetry together with everything else about one function, use the Function Explorer.