Unit 1, lesson 11

Even, Odd, and Symmetry

How to tell from a formula or a graph whether a function is even, odd or neither, why the domain has to be symmetric, and how mirror symmetry and half-turn symmetry of a graph match these algebraic tests.

  • Theory part 21
  • Practice part 22
  • Special Kinds of Functions

Fold a sheet of paper down the middle and the two halves match. Some graphs fold like this along the yy-axis, and others match themselves after half a turn about the origin. When you spot such a symmetry you only need to study half of the graph, and calculus uses it the same way to shorten sketches and integrals. Checking for it takes one short algebra step.

Key terms

Symmetric domain

Definition A set DD of real numbers is symmetric about 00 if −x∈D-x \in D for every x∈Dx \in D. The definitions of even and odd functions compare f(x)f(x) with f(−x)f(-x), so they make sense only when the domain of ff is symmetric about 00.

In plain words Whenever a number is in the set, so is its opposite. On the number line the set looks the same on both sides of 00.

Example Here are five sets, checked one by one.

SetSymmetric about 00Reason
[−3,3][-3, 3]yesif xx lies between −3-3 and 33, so does −x-x
(−∞,0)∪(0,∞)(-\infty, 0) \cup (0, \infty), the domain of 1/x1/xyesthe opposite of a nonzero number is nonzero
[−2,5][-2, 5]no55 is in it but −5-5 is not
[0,∞)[0, \infty), the domain of x\sqrt{x}no11 is in it but −1-1 is not
all x≠1x \ne 1, the domain of 1/(x−1)1/(x - 1)no−1-1 is in it but 11 is not

Even function

Definition A function ff with domain DD is even if DD is symmetric about 00 and

f(−x)=f(x)for every x∈D.f(-x) = f(x) \quad \text{for every } x \in D.

Examples on R\mathbb{R} are the constant functions, ∣x∣\lvert x \rvert, and the powers xnx^n with nn a positive even integer, such as x2x^2 and x4x^4. The name comes from these even powers.

In plain words Opposite inputs give the same output. Once you know the outputs for positive inputs, you know them for negative inputs too.

Example For f(x)=x4−3x2f(x) = x^4 - 3x^2 the domain is R\mathbb{R}, which is symmetric, and

f(−x)=(−x)4−3(−x)2=x4−3x2=f(x),\begin{aligned} f(-x) &= (-x)^4 - 3(-x)^2 \\[0.4em] &= x^4 - 3x^2 \\[0.4em] &= f(x), \end{aligned}

because an even power of −x-x equals the same power of xx. So ff is even. For instance f(2)=16−12=4f(2) = 16 - 12 = 4 and f(−2)=4f(-2) = 4, and f(1)=f(−1)=−2f(1) = f(-1) = -2.

Symmetry about the y-axis

Definition A set of points in the plane is symmetric about the yy-axis if for every point (x,y)(x, y) in the set, the mirror point (−x,y)(-x, y) is also in the set. The graph of a function ff is symmetric about the yy-axis exactly when ff is even, because the mirror point of (x,f(x))(x, f(x)) is (−x,f(x))(-x, f(x)), and that point is on the graph exactly when −x-x is in the domain and f(−x)=f(x)f(-x) = f(x).

In plain words Fold the picture along the yy-axis and the left half lands exactly on the right half.

Example The function g(x)=8/(x2+4)g(x) = 8/(x^2 + 4) is even, since replacing xx by −x-x leaves x2x^2 unchanged. Its graph pairs up points across the yy-axis.

xx−2-2−1-1001122
g(x)g(x)111.61.6221.61.611

The point (0,2)(0, 2) lies on the axis itself and is its own mirror image.

Odd function

Definition A function ff with domain DD is odd if DD is symmetric about 00 and

f(−x)=−f(x)for every x∈D.f(-x) = -f(x) \quad \text{for every } x \in D.

Examples are 1/x1/x and the powers xnx^n with nn a positive odd integer, such as xx and x3x^3. If 00 is in the domain of an odd function ff, then f(0)=−f(0)f(0) = -f(0), so f(0)=0f(0) = 0.

In plain words Opposite inputs give opposite outputs. Change the sign of the input and the output changes sign too.

Example For f(x)=x3−4xf(x) = x^3 - 4x on R\mathbb{R},

f(−x)=(−x)3−4(−x)=−x3+4x=−(x3−4x)=−f(x),\begin{aligned} f(-x) &= (-x)^3 - 4(-x) \\[0.4em] &= -x^3 + 4x \\[0.4em] &= -(x^3 - 4x) \\[0.4em] &= -f(x), \end{aligned}

so ff is odd. Indeed f(1)=−3f(1) = -3 and f(−1)=3f(-1) = 3, f(3)=15f(3) = 15 and f(−3)=−15f(-3) = -15, and f(0)=0f(0) = 0.

Symmetry about the origin

Definition A set of points in the plane is symmetric about the origin if for every point (x,y)(x, y) in the set, the point (−x,−y)(-x, -y) is also in the set. The origin is the midpoint of the segment from (x,y)(x, y) to (−x,−y)(-x, -y), so moving every point (x,y)(x, y) to (−x,−y)(-x, -y) is a rotation by half a turn about the origin, and such a set looks the same after a half turn. The graph of a function ff is symmetric about the origin exactly when ff is odd, because the point (−x,−f(x))(-x, -f(x)) is on the graph exactly when −x-x is in the domain and f(−x)=−f(x)f(-x) = -f(x).

In plain words Spin the picture half a turn around the origin and it matches itself. The same move can be done as a reflection across the yy-axis followed by a reflection across the xx-axis.

Example The graph of y=1/xy = 1/x is symmetric about the origin. The point (2,12)\left(2, \frac{1}{2}\right) on the right branch pairs with (−2,−12)\left(-2, -\frac{1}{2}\right) on the left branch, and (12,2)\left(\frac{1}{2}, 2\right) pairs with (−12,−2)\left(-\frac{1}{2}, -2\right). The graph does not pass through the origin, because 00 is not in the domain, so the graph of an odd function need not contain (0,0)(0, 0).

The algebraic test

Definition To decide whether a function ff with domain DD is even, odd or neither, follow these steps.

  1. Check that DD is symmetric about 00. If it is not, then ff is neither even nor odd.
  2. Simplify f(−x)f(-x) and compare it with f(x)f(x) and with −f(x)-f(x). If f(−x)=f(x)f(-x) = f(x) for every xx in DD, the function is even. If f(−x)=−f(x)f(-x) = -f(x) for every xx in DD, it is odd.
  3. To show that ff is not even, one input aa with f(−a)≠f(a)f(-a) \ne f(a) is enough. To show that ff is not odd, one input bb with f(−b)≠−f(b)f(-b) \ne -f(b) is enough.

Numbers alone can only rule symmetry out. Agreement at a few inputs is not proof, because being even or odd is a statement about every xx in the domain.

In plain words Replace xx by −x-x, simplify, and see whether you get back f(x)f(x), its negative, or something else. A proof needs the algebra, while a disproof needs just one input that fails.

Example Take the function

f(x)=x3x2−4.f(x) = \frac{x^3}{x^2 - 4}.

Its domain is all real xx except −2-2 and 22, a set that is symmetric about 00. For every xx in it

f(−x)=(−x)3(−x)2−4=−x3x2−4=−f(x),\begin{aligned} f(-x) &= \frac{(-x)^3}{(-x)^2 - 4} \\[0.8em] &= \frac{-x^3}{x^2 - 4} \\[0.8em] &= -f(x), \end{aligned}

so ff is odd.

Neither even nor odd

Definition A function is neither even nor odd if it is not even and it is not odd. That happens when its domain is not symmetric about 00, or when the domain is symmetric but it contains inputs aa and bb, possibly equal, with f(−a)≠f(a)f(-a) \ne f(a) and f(−b)≠−f(b)f(-b) \ne -f(b). Most functions are neither, and “not even” does not mean “odd”.

In plain words Even and odd are special properties, not two boxes that every function falls into. A function can fail both tests.

Example For f(x)=x2+xf(x) = x^2 + x we get f(1)=2f(1) = 2 and f(−1)=0f(-1) = 0. Since 0≠20 \ne 2, the function is not even, and since 0≠−20 \ne -2, it is not odd. So ff is neither. The function x\sqrt{x} is also neither, without any computing, because its domain [0,∞)[0, \infty) is not symmetric.

The zero function on a symmetric domain

Definition Let DD be a set that is symmetric about 00. A function with domain DD is both even and odd exactly when it is the zero function on DD, that is, f(x)=0f(x) = 0 for every x∈Dx \in D. If ff is both, then for every xx in DD

f(x)=f(−x)=−f(x),f(x) = f(-x) = -f(x),

so 2f(x)=02f(x) = 0 and f(x)=0f(x) = 0. Conversely, the zero function satisfies both conditions, since 0=00 = 0 and 0=−00 = -0.

In plain words The only graph of a function that is both its own mirror image across the yy-axis and its own half-turn image is a flat graph lying on the xx-axis. On each symmetric domain there is exactly one such function.

Example The function f(x)=x2−∣x∣f(x) = \sqrt{x^2} - \lvert x \rvert is defined for every real xx, and since x2=∣x∣\sqrt{x^2} = \lvert x \rvert, it equals 00 everywhere. So it is both even and odd. By contrast, the zero function with domain [0,1][0, 1] is neither, because that domain is not symmetric about 00.

Check yourself

  1. Classify each of f(x)=x5−2x3f(x) = x^5 - 2x^3, g(x)=x2−3∣x∣g(x) = x^2 - 3\lvert x \rvert and h(x)=x3+1h(x) = x^3 + 1 as even, odd or neither.
Show the answer

All three have domain R\mathbb{R}. For the first, f(−x)=−x5+2x3=−f(x)f(-x) = -x^5 + 2x^3 = -f(x), so ff is odd. For the second,

g(−x)=(−x)2−3∣−x∣=x2−3∣x∣=g(x),\begin{aligned} g(-x) &= (-x)^2 - 3\lvert -x \rvert \\[0.4em] &= x^2 - 3\lvert x \rvert \\[0.4em] &= g(x), \end{aligned}

so gg is even. For the third, h(1)=2h(1) = 2 and h(−1)=0h(-1) = 0, and since 0≠20 \ne 2 and 0≠−20 \ne -2, the function hh is neither.

  1. An odd function ff has 00 in its domain, and its graph passes through (2,−5)(2, -5). Name two more points on the graph.
Show the answer

Oddness gives f(−2)=−f(2)=5f(-2) = -f(2) = 5, so (−2,5)(-2, 5) is on the graph. Since 00 is in the domain, f(0)=0f(0) = 0, so the graph also contains (0,0)(0, 0).

  1. A student notices that f(x)=x3+x2−xf(x) = x^3 + x^2 - x satisfies f(−1)=f(1)f(-1) = f(1) and concludes that ff is even. Is that right?
Show the answer

No. Both values are 11, but one matching pair proves nothing. At 22 the values differ, with f(2)=10f(2) = 10 and f(−2)=−2f(-2) = -2, so ff is not even. It is not odd either, since f(−1)=1f(-1) = 1 while −f(1)=−1-f(1) = -1. The function is neither.

How this lesson connects

Resources for this lesson