Skip to content
Family Table Math
Auto

Even and Odd Functions

Some graphs are perfectly balanced: the left half is a mirror image of the right, or the graph looks the same after a half-turn. Functions with these symmetries are called even and odd. Spotting them saves work, because you only need to graph half the function and reflect or rotate to get the rest.

A function is even if

f(−x)=f(x)for every x in its domainf(-x) = f(x) \quad \text{for every } x \text{ in its domain}

Opposite inputs give the same output. The graph is symmetric about the yy-axis: if (a,b)(a, b) is on the graph, so is (−a,b)(-a, b).

A function is odd if

f(−x)=−f(x)for every x in its domainf(-x) = -f(x) \quad \text{for every } x \text{ in its domain}

Opposite inputs give opposite outputs. The graph has point symmetry about the origin: if (a,b)(a, b) is on the graph, so is (−a,−b)(-a, -b). Rotating the graph 180∘180^\circ about the origin leaves it unchanged.

An even function symmetric about the y-axis and an odd function symmetric about the origin −2 2 −4 −2 2 4 Even: y = x⁴ − 3x² (−2, 4) (2, 4) mirror image in the y‑axis −2 2 −4 −2 2 4 Odd: y = x³ − 4x (−1, 3) (1, −3) half‑turn about the origin
An even function is symmetric about the yy-axis; an odd function is symmetric about the origin.

Most functions are neither even nor odd.

  1. Replace every xx with (−x)(-x) and simplify f(−x)f(-x).
  2. Compare with f(x)f(x) and with −f(x)-f(x).
    • f(−x)=f(x)f(-x) = f(x): even.
    • f(−x)=−f(x)f(-x) = -f(x): odd.
    • Neither matches: neither. To show this convincingly, give one value of xx where each test fails.

The key facts: (−x)n=xn(-x)^n = x^n when nn is even, and (−x)n=−xn(-x)^n = -x^n when nn is odd.

That’s where the names come from:

  • A polynomial with only even powers of xx is even. (A constant counts as an even power, since 5=5x05 = 5x^0.) Example: 3x4−x2+73x^4 - x^2 + 7.
  • A polynomial with only odd powers of xx is odd. It has no constant term. Example: x5−2x3+xx^5 - 2x^3 + x.
  • A polynomial with a mixture is neither. Example: x3+x2x^3 + x^2.

Write the polynomial in expanded form before you decide: x(x−1)x(x - 1) looks like it has one power, but it’s x2−xx^2 - x.

The tests work for any function, not just polynomials:

  • cos⁡(−x)=cos⁡x\cos(-x) = \cos x, so cosine is even. Its graph is symmetric about the yy-axis.
  • sin⁡(−x)=−sin⁡x\sin(-x) = -\sin x, so sine is odd. Its graph is symmetric about the origin.
  • y=∣x∣y = |x| is even, and y=1xy = \dfrac{1}{x} is odd.
  • y=2xy = 2^x is neither: 2−1=122^{-1} = \tfrac{1}{2}, which is not 22 or −2-2.

These facts are true whether xx is measured in degrees or radians.

  • An odd function that is defined at 00 passes through the origin, because f(0)=−f(0)f(0) = -f(0) forces f(0)=0f(0) = 0.
  • The xx-intercepts of an even function come in pairs, aa and −a-a. So if an even function has a limited number of xx-intercepts, that number is odd exactly when 00 is one of them, and even when it isn’t.

If you combine even and odd functions, the result follows a pattern, much like multiplying positive and negative numbers:

CombinationResult
even ×\times even, or odd ×\times oddeven
even ×\times oddodd
even ++ eveneven
odd ++ oddodd
even ++ odd (both nonzero)neither

For example, if ff and gg are both odd and h(x)=f(x)g(x)h(x) = f(x)g(x), then

h(−x)=f(−x) g(−x)=(−f(x))(−g(x))=f(x)g(x)=h(x)h(-x) = f(-x)\,g(-x) = \big(-f(x)\big)\big(-g(x)\big) = f(x)g(x) = h(x)

so hh is even. The same patterns hold for quotients: odd ÷\div odd is even, and so on.

Is each function even, odd, or neither?

  • (a) f(x)=3x4−x2+7f(x) = 3x^4 - x^2 + 7
  • (b) g(x)=−2x5+x3−xg(x) = -2x^5 + x^3 - x
  • (c) h(x)=x3+x2h(x) = x^3 + x^2

Solution.

(a) Powers 44, 22, 00: all even, so ff is even.

(b) Powers 55, 33, 11: all odd, so gg is odd.

(c) Powers 33 and 22: a mixture, so hh is neither. Check with x=1x = 1: h(1)=2h(1) = 2 and h(−1)=−1+1=0h(-1) = -1 + 1 = 0. That’s neither h(1)h(1) nor −h(1)-h(1).

Determine whether each function is even, odd, or neither: (a) f(x)=x(x2−9)f(x) = x(x^2 - 9) (b) g(x)=(x−1)2g(x) = (x - 1)^2.

Solution.

(a) Replace xx with −x-x:

f(−x)=(−x)((−x)2−9)=−x(x2−9)=−f(x)f(-x) = (-x)\big((-x)^2 - 9\big) = -x(x^2 - 9) = -f(x)

So ff is odd.

(b)

g(−x)=(−x−1)2=(x+1)2g(-x) = (-x - 1)^2 = (x + 1)^2

This isn’t the same as (x−1)2(x - 1)^2 or −(x−1)2-(x - 1)^2. To be sure, test x=1x = 1: g(1)=0g(1) = 0, but g(−1)=4g(-1) = 4. Since g(−1)≠g(1)g(-1) \ne g(1) and g(−1)≠−g(1)g(-1) \ne -g(1), gg is neither. (Its graph is a parabola with vertex (1,0)(1, 0), which isn’t symmetric about the yy-axis.)

Is each function even, odd, or neither? (a) f(x)=x2+cos⁡xf(x) = x^2 + \cos x (b) g(x)=x+sin⁡xg(x) = x + \sin x (c) h(x)=xsin⁡xh(x) = x \sin x

Solution. Use cos⁡(−x)=cos⁡x\cos(-x) = \cos x and sin⁡(−x)=−sin⁡x\sin(-x) = -\sin x.

(a) f(−x)=(−x)2+cos⁡(−x)=x2+cos⁡x=f(x)f(-x) = (-x)^2 + \cos(-x) = x^2 + \cos x = f(x): even (even ++ even).

(b) g(−x)=−x+sin⁡(−x)=−x−sin⁡x=−(x+sin⁡x)=−g(x)g(-x) = -x + \sin(-x) = -x - \sin x = -(x + \sin x) = -g(x): odd (odd ++ odd).

(c) h(−x)=(−x)sin⁡(−x)=(−x)(−sin⁡x)=xsin⁡x=h(x)h(-x) = (-x)\sin(-x) = (-x)(-\sin x) = x \sin x = h(x): even (odd ×\times odd).

Example 4: Using symmetry to build a polynomial

Section titled “Example 4: Using symmetry to build a polynomial”

An even polynomial function of degree 44 has zeros at 11 and 33, and f(0)=18f(0) = 18. Find f(x)f(x).

Solution. Because ff is even, its zeros come in pairs: ±1\pm 1 and ±3\pm 3. That’s four zeros for a quartic, so (as in families of polynomials)

f(x)=k(x−1)(x+1)(x−3)(x+3)=k(x2−1)(x2−9)f(x) = k(x - 1)(x + 1)(x - 3)(x + 3) = k(x^2 - 1)(x^2 - 9) f(0)=k(−1)(−9)=9k=18⇒k=2f(0) = k(-1)(-9) = 9k = 18 \quad\Rightarrow\quad k = 2

f(x)=2(x2−1)(x2−9)=2x4−20x2+18f(x) = 2(x^2 - 1)(x^2 - 9) = 2x^4 - 20x^2 + 18. Check: only even powers, so it’s even. ✓

Testing only one value and concluding “even” or “odd”. One pair like f(2)=f(−2)f(2) = f(-2) doesn’t prove ff is even; f(−x)=f(x)f(-x) = f(x) has to hold for every xx. Use algebra to prove even or odd. (One value is enough to prove “neither”, though.)

Forgetting that a constant term is an even power. f(x)=x3+1f(x) = x^3 + 1 is not odd: the 11 is like x0x^0. Check: f(−1)=0f(-1) = 0, but −f(1)=−2-f(1) = -2.

Deciding from the factored form. f(x)=x(x−1)f(x) = x(x - 1) has only odd-looking pieces, but it expands to x2−xx^2 - x, which is neither. Expand first, or use the algebraic test.

Thinking “odd degree” means “odd function”. x3+x2x^3 + x^2 has odd degree but isn’t odd. Every power must be odd.

Mixing up the symmetries. Even means a mirror image in the yy-axis. Odd means a half-turn about the origin, not a mirror image in the xx-axis (which wouldn’t even be a function).

1. (Warm-up) Is each function even, odd, or neither? (a) y=5x6−2x2y = 5x^6 - 2x^2 (b) y=x7−3xy = x^7 - 3x (c) y=x4+xy = x^4 + x (d) y=4x3+1y = 4x^3 + 1

Solution

(a) Even: powers 66 and 22.

(b) Odd: powers 77 and 11.

(c) Neither: powers 44 and 11 are mixed.

(d) Neither: the constant 11 is an even power, mixed with the odd power 33.

2. (Warm-up) Suppose f(4)=−7f(4) = -7. Find f(−4)f(-4) if (a) ff is odd, (b) ff is even.

Solution

(a) f(−4)=−f(4)=7f(-4) = -f(4) = 7.

(b) f(−4)=f(4)=−7f(-4) = f(4) = -7.

3. (Warm-up) The points (2,5)(2, 5) and (−3,1)(-3, 1) are on the graph of an odd function ff. Name two more points that must be on the graph, and give f(0)f(0).

Solution

(−2,−5)(-2, -5) and (3,−1)(3, -1). Since an odd function defined at 00 passes through the origin, f(0)=0f(0) = 0.

4. (Core) Show algebraically that f(x)=−2x5+3x3f(x) = -2x^5 + 3x^3 is odd.

Solutionf(−x)=−2(−x)5+3(−x)3=−2(−x5)+3(−x3)=2x5−3x3=−(−2x5+3x3)=−f(x)\begin{aligned} f(-x) &= -2(-x)^5 + 3(-x)^3 \\ &= -2(-x^5) + 3(-x^3) \\ &= 2x^5 - 3x^3 \\ &= -(-2x^5 + 3x^3) = -f(x) \end{aligned}

So ff is odd.

5. (Core) Is each function even, odd, or neither? (a) f(x)=x2(x−2)(x+2)f(x) = x^2(x - 2)(x + 2) (b) g(x)=x(x−2)(x+2)g(x) = x(x - 2)(x + 2) (c) h(x)=(x+2)2(x−2)h(x) = (x + 2)^2(x - 2)

Solution

(a) f(x)=x2(x2−4)=x4−4x2f(x) = x^2(x^2 - 4) = x^4 - 4x^2: only even powers, so even.

(b) g(x)=x(x2−4)=x3−4xg(x) = x(x^2 - 4) = x^3 - 4x: only odd powers, so odd.

(c) h(x)=(x2+4x+4)(x−2)=x3+2x2−4x−8h(x) = (x^2 + 4x + 4)(x - 2) = x^3 + 2x^2 - 4x - 8: mixed powers, so neither. (Check: h(1)=9(−1)=−9h(1) = 9(-1) = -9, while h(−1)=1(−3)=−3h(-1) = 1(-3) = -3, which is neither −9-9 nor 99.)

6. (Core) Is each function even, odd, or neither? (a) f(x)=x2sin⁡xf(x) = x^2 \sin x (b) g(x)=cos⁡x+x4g(x) = \cos x + x^4 (c) h(x)=sin⁡x+cos⁡xh(x) = \sin x + \cos x

Solution

(a) f(−x)=(−x)2sin⁡(−x)=x2(−sin⁡x)=−f(x)f(-x) = (-x)^2 \sin(-x) = x^2(-\sin x) = -f(x): odd (even ×\times odd).

(b) g(−x)=cos⁡(−x)+(−x)4=cos⁡x+x4=g(x)g(-x) = \cos(-x) + (-x)^4 = \cos x + x^4 = g(x): even.

(c) h(−x)=−sin⁡x+cos⁡xh(-x) = -\sin x + \cos x. Test x=90∘x = 90^\circ: h(90∘)=1+0=1h(90^\circ) = 1 + 0 = 1, but h(−90∘)=−1+0=−1h(-90^\circ) = -1 + 0 = -1, so hh is not even. Test x=0x = 0: h(0)=0+1=1≠0h(0) = 0 + 1 = 1 \ne 0, so hh is not odd (an odd function would pass through the origin). Neither.

7. (Core) Suppose ff is even and gg is odd, with the same domain. Prove that p(x)=f(x)g(x)p(x) = f(x)g(x) is odd.

Solutionp(−x)=f(−x) g(−x)=f(x)(−g(x))=−f(x)g(x)=−p(x)p(-x) = f(-x)\,g(-x) = f(x)\big(-g(x)\big) = -f(x)g(x) = -p(x)

Since p(−x)=−p(x)p(-x) = -p(x) for every xx, pp is odd.

8. (Challenge) An odd polynomial function of degree 55 has zeros at 00, 22, and 33, and passes through (1,48)(1, 48). Find its equation.

Solution

Since ff is odd, the zeros 22 and 33 come with −2-2 and −3-3. That’s five zeros: 0,±2,±30, \pm 2, \pm 3.

f(x)=kx(x−2)(x+2)(x−3)(x+3)=kx(x2−4)(x2−9)f(x) = kx(x - 2)(x + 2)(x - 3)(x + 3) = kx(x^2 - 4)(x^2 - 9)48=k(1)(−3)(−8)=24k⇒k=248 = k(1)(-3)(-8) = 24k \quad\Rightarrow\quad k = 2

f(x)=2x(x2−4)(x2−9)=2x5−26x3+72xf(x) = 2x(x^2 - 4)(x^2 - 9) = 2x^5 - 26x^3 + 72x. Check: only odd powers. ✓

9. (Challenge) Show that the only function that is both even and odd (on a domain of all real numbers) is f(x)=0f(x) = 0.

Solution

If ff is both even and odd, then for every xx:

f(−x)=f(x)andf(−x)=−f(x)f(-x) = f(x) \quad \text{and} \quad f(-x) = -f(x)

So f(x)=−f(x)f(x) = -f(x), which gives 2f(x)=02f(x) = 0, so f(x)=0f(x) = 0 for every xx. And f(x)=0f(x) = 0 does satisfy both tests, since 0=00 = 0 and 0=−00 = -0.