← MathScape

Integrals of Symmetric Functions

MATH161
Reference: Stewart 4.5  •  Chapter: 4  •  Section: 5

Navigation: Wiki Home > Skills > Symmetric Function Integrals

Integrals of Symmetric Functions

Exploit Symmetry to Simplify Calculations

When integrating over a symmetric interval $[-a, a]$, the symmetry of the integrand can dramatically simplify your work:

This isn't just a computational shortcut—it reflects the deep connection between a function's symmetry and its integral's behavior.

Prerequisite Map

This skill
Symmetric Function Integrals

Quick Reference

Property Value
Section Stewart 4.5
Course MATH162
Difficulty Intermediate
Time ~15 minutes

Key Concepts

Even and Odd Functions: Quick Review

Even function: $f(-x) = f(x)$ for all $x$

Odd function: $f(-x) = -f(x)$ for all $x$

The Symmetry Theorem

Theorem (Integrals of Symmetric Functions): Suppose $f$ is continuous on $[-a, a]$.

(a) If $f$ is even: $$\boxed{\int_{-a}^{a} f(x)\,dx = 2\int_0^a f(x)\,dx}$$

(b) If $f$ is odd: $$\boxed{\int_{-a}^{a} f(x)\,dx = 0}$$

Geometric Interpretation

Even functions:

    y
    ↑     /‾‾‾\
    |    /     \        Area from -a to 0 equals
    |   /       \       Area from 0 to a
    |  /         \      (mirror images)
────┼──────────────→ x
   -a    0     a

The two halves are mirror images, so the total area is twice the right half.

Odd functions:

    y
    ↑     ╱
    |    ╱   positive area
    |   ╱
────┼──────────────→ x
    |         ╲
    |          ╲  negative area
    ↓           ╲
   -a    0     a

The positive area (right of origin) exactly cancels the negative area (left of origin).

Why It Works: Proof

Split the integral: $$\int_{-a}^{a} f(x)\,dx = \int_{-a}^{0} f(x)\,dx + \int_{0}^{a} f(x)\,dx$$

For the left integral, substitute $u = -x$, so $du = -dx$:

$$\int_{-a}^{0} f(x)\,dx = \int_{a}^{0} f(-u)(-du) = \int_{0}^{a} f(-u)\,du$$

So: $$\int_{-a}^{a} f(x)\,dx = \int_{0}^{a} f(-u)\,du + \int_{0}^{a} f(x)\,dx = \int_{0}^{a} [f(-x) + f(x)]\,dx$$

(a) If $f$ is even: $f(-x) = f(x)$, so: $$\int_{0}^{a} [f(x) + f(x)]\,dx = 2\int_{0}^{a} f(x)\,dx$$

(b) If $f$ is odd: $f(-x) = -f(x)$, so: $$\int_{0}^{a} [-f(x) + f(x)]\,dx = \int_{0}^{a} 0\,dx = 0$$

When to Use This Theorem

  1. Recognize symmetric interval: limits are $[-a, a]$ (same magnitude, opposite signs)
  2. Check if integrand is even or odd
  3. Apply the appropriate rule

Warning: The interval must be symmetric! $\int_0^a f(x)\,dx$ and $\int_{-2}^{3} f(x)\,dx$ don't qualify.

Testing for Even/Odd

To test $f(x)$:

  1. Compute $f(-x)$ by replacing every $x$ with $-x$
  2. Compare to $f(x)$:

Worked Examples

Example 1: Even Function

Evaluate $\int_{-2}^{2} (x^6 + 1)\,dx$.

Check symmetry: Let $f(x) = x^6 + 1$. $$f(-x) = (-x)^6 + 1 = x^6 + 1 = f(x)$$

$f$ is even.

Apply theorem: $$\int_{-2}^{2} (x^6 + 1)\,dx = 2\int_0^2 (x^6 + 1)\,dx = 2\left[\frac{x^7}{7} + x\right]_0^2$$

$$= 2\left(\frac{128}{7} + 2 - 0\right) = 2 \cdot \frac{142}{7} = \frac{284}{7}$$

Example 2: Odd Function (Instant Zero)

Evaluate $\int_{-1}^{1} \frac{\tan x}{1 + x^2 + x^4}\,dx$.

Check symmetry: Let $f(x) = \frac{\tan x}{1 + x^2 + x^4}$.

Numerator: $\tan(-x) = -\tan x$ (odd) Denominator: $1 + (-x)^2 + (-x)^4 = 1 + x^2 + x^4$ (even)

$$f(-x) = \frac{-\tan x}{1 + x^2 + x^4} = -f(x)$$

$f$ is odd.

Apply theorem: $$\int_{-1}^{1} \frac{\tan x}{1 + x^2 + x^4}\,dx = 0$$

No calculation needed!

Example 3: Neither Even Nor Odd

Evaluate $\int_{-1}^{1} (x^3 + x^2)\,dx$.

Check symmetry: Let $f(x) = x^3 + x^2$. $$f(-x) = (-x)^3 + (-x)^2 = -x^3 + x^2$$

This is neither $f(x)$ nor $-f(x)$. Neither even nor odd.

Solution: Split into even and odd parts! $$f(x) = x^3 + x^2 = \underbrace{x^2}_{\text{even}} + \underbrace{x^3}_{\text{odd}}$$

$$\int_{-1}^{1} (x^3 + x^2)\,dx = \int_{-1}^{1} x^3\,dx + \int_{-1}^{1} x^2\,dx = 0 + 2\int_0^1 x^2\,dx$$

$$= 2 \cdot \frac{1}{3} = \frac{2}{3}$$

Practice Problems

Level 1 Classify Even or Odd

Classify each function as even, odd, or neither:

  1. $f(x) = x^5 - x$
  2. $g(x) = x^2 + \cos x$
  3. $h(x) = e^x$
  4. $k(x) = x\sin x$
Thought Process

For each, compute $f(-x)$ and compare to $f(x)$.

Remember:

  • Even powers of $x$ are even functions
  • Odd powers of $x$ are odd functions
  • $\sin(-x) = -\sin x$ (odd), $\cos(-x) = \cos x$ (even)
  • Products: even × even = even, odd × odd = even, even × odd = odd
Show Answer

(a) $f(-x) = (-x)^5 - (-x) = -x^5 + x = -(x^5 - x) = -f(x)$ → Odd

(b) $g(-x) = (-x)^2 + \cos(-x) = x^2 + \cos x = g(x)$ → Even

(c) $h(-x) = e^{-x} \neq e^x$ and $\neq -e^x$ → Neither

(d) $k(-x) = (-x)\sin(-x) = (-x)(-\sin x) = x\sin x = k(x)$ → Even

(Odd × Odd = Even)

Level 2 Quick Evaluations

Evaluate each integral using symmetry:

  1. $\displaystyle\int_{-3}^{3} x^5\,dx$
  2. $\displaystyle\int_{-\pi}^{\pi} \cos x\,dx$
  3. $\displaystyle\int_{-2}^{2} (x^4 - 3x^2 + 1)\,dx$
Thought Process

(a) $x^5$ is odd (odd power).

(b) $\cos x$ is even.

(c) Check each term: $x^4$ (even), $x^2$ (even), $1$ (even). Sum of even functions is even.

Show Answer

(a) $x^5$ is odd, so $\int_{-3}^{3} x^5\,dx = \boxed{0}$

(b) $\cos x$ is even, so: $$\int_{-\pi}^{\pi} \cos x\,dx = 2\int_0^{\pi} \cos x\,dx = 2[\sin x]_0^{\pi} = 2(0 - 0) = \boxed{0}$$

(Note: The integral is 0 here because of the specific limits, not because of symmetry!)

(c) $x^4 - 3x^2 + 1$ is even (sum of even functions), so: $$\int_{-2}^{2} (x^4 - 3x^2 + 1)\,dx = 2\int_0^2 (x^4 - 3x^2 + 1)\,dx$$ $$= 2\left[\frac{x^5}{5} - x^3 + x\right]_0^2 = 2\left(\frac{32}{5} - 8 + 2\right) = 2 \cdot \frac{2}{5} = \boxed{\frac{4}{5}}$$

Level 3 Split Into Even and Odd Parts

Evaluate $\displaystyle\int_{-1}^{1} (e^x + e^{-x} + x^3)\,dx$.

Thought Process

Note that $e^x + e^{-x} = 2\cosh x$ is even (check: $e^{-x} + e^{-(-x)} = e^{-x} + e^x$).

And $x^3$ is odd.

Show Answer

Let $f(x) = e^x + e^{-x}$. Then: $$f(-x) = e^{-x} + e^{-(-x)} = e^{-x} + e^x = f(x)$$

So $e^x + e^{-x}$ is even, and $x^3$ is odd.

$$\int_{-1}^{1} (e^x + e^{-x} + x^3)\,dx = \int_{-1}^{1} (e^x + e^{-x})\,dx + \underbrace{\int_{-1}^{1} x^3\,dx}_{= 0}$$

$$= 2\int_0^1 (e^x + e^{-x})\,dx = 2[e^x - e^{-x}]_0^1$$

$$= 2[(e - e^{-1}) - (1 - 1)] = 2(e - 1/e) = \boxed{2e - \frac{2}{e}} = \frac{2(e^2 - 1)}{e}$$

Level 4 Complex Integrand

Evaluate $\displaystyle\int_{-\pi/2}^{\pi/2} \frac{\sin^2 x \cos x}{1 + e^x}\,dx$.

Hint: Add the integral to itself with $x$ replaced by $-x$.

Thought Process

Let $I = \int_{-\pi/2}^{\pi/2} \frac{\sin^2 x \cos x}{1 + e^x}\,dx$.

Consider what happens when we replace $x$ with $-x$ and add:

Note: $\frac{1}{1+e^x} + \frac{1}{1+e^{-x}} = \frac{1+e^{-x}+1+e^x}{(1+e^x)(1+e^{-x})} = \frac{2+e^x+e^{-x}}{(1+e^x)(1+e^{-x})}$

Actually, let's simplify: $\frac{1}{1+e^{-x}} = \frac{e^x}{e^x+1}$

So $\frac{1}{1+e^x} + \frac{e^x}{e^x+1} = 1$!

Show Answer

Let $I = \int_{-\pi/2}^{\pi/2} \frac{\sin^2 x \cos x}{1 + e^x}\,dx$.

Key observation: $\frac{1}{1+e^{-x}} = \frac{e^x}{1+e^x}$

So: $\frac{1}{1+e^x} + \frac{1}{1+e^{-x}} = \frac{1}{1+e^x} + \frac{e^x}{1+e^x} = \frac{1+e^x}{1+e^x} = 1$

Now consider substituting $u = -x$ in $I$: $$I = \int_{\pi/2}^{-\pi/2} \frac{\sin^2(-u) \cos(-u)}{1 + e^{-u}}(-du) = \int_{-\pi/2}^{\pi/2} \frac{\sin^2 u \cos u}{1 + e^{-u}}\,du$$

Adding the two expressions for $I$: $$2I = \int_{-\pi/2}^{\pi/2} \sin^2 x \cos x \left(\frac{1}{1+e^x} + \frac{1}{1+e^{-x}}\right)\,dx$$

$$= \int_{-\pi/2}^{\pi/2} \sin^2 x \cos x \cdot 1\,dx$$

Now $\sin^2 x \cos x$ is odd (even × even × odd = odd).

So $2I = 0$, meaning $I = \boxed{0}$.

Level 5 Theoretical Application

Prove that for any continuous function $f$:

$$\int_{-a}^{a} f(x)\,dx = \int_{-a}^{a} f(-x)\,dx$$

Use this to show that any function can be written as the sum of an even and an odd function.

Thought Process

For the first part: use substitution $u = -x$ on either integral.

For the second part: define

  • Even part: $f_e(x) = \frac{f(x) + f(-x)}{2}$
  • Odd part: $f_o(x) = \frac{f(x) - f(-x)}{2}$

Then verify $f_e$ is even, $f_o$ is odd, and $f = f_e + f_o$.

Show Answer

Part 1: Proof of the identity

In $\int_{-a}^{a} f(-x)\,dx$, let $u = -x$, so $du = -dx$.

  • When $x = -a$: $u = a$
  • When $x = a$: $u = -a$

$$\int_{-a}^{a} f(-x)\,dx = \int_{a}^{-a} f(u)(-du) = \int_{-a}^{a} f(u)\,du$$

This equals $\int_{-a}^{a} f(x)\,dx$. $\square$

Part 2: Decomposition into even and odd

Define: $$f_e(x) = \frac{f(x) + f(-x)}{2} \quad \text{(even part)}$$ $$f_o(x) = \frac{f(x) - f(-x)}{2} \quad \text{(odd part)}$$

Check $f_e$ is even: $$f_e(-x) = \frac{f(-x) + f(-(-x))}{2} = \frac{f(-x) + f(x)}{2} = f_e(x) \checkmark$$

Check $f_o$ is odd: $$f_o(-x) = \frac{f(-x) - f(-(-x))}{2} = \frac{f(-x) - f(x)}{2} = -f_o(x) \checkmark$$

Check $f = f_e + f_o$: $$f_e(x) + f_o(x) = \frac{f(x) + f(-x)}{2} + \frac{f(x) - f(-x)}{2} = \frac{2f(x)}{2} = f(x) \checkmark$$

Application: For any $f$ on $[-a, a]$: $$\int_{-a}^{a} f(x)\,dx = \int_{-a}^{a} f_e(x)\,dx + \int_{-a}^{a} f_o(x)\,dx = 2\int_0^a f_e(x)\,dx + 0$$

Conceptual Questions (CCI-Style)

Level 2 Geometric Reasoning

Without computing, explain why $\int_{-2}^{2} x^3\,dx = 0$ using a geometric argument about the graph of $y = x^3$.

Thought Process

What does the graph of $y = x^3$ look like? It passes through the origin and has point symmetry about $(0, 0)$.

Show Answer

The graph of $y = x^3$ has point symmetry about the origin: if $(a, b)$ is on the curve, so is $(-a, -b)$.

On $[0, 2]$: the curve is above the $x$-axis, so the integral represents positive area.

On $[-2, 0]$: the curve is below the $x$-axis (mirror image through origin), so the integral represents negative area of the same magnitude.

    y
    ↑      ╱
    |     ╱  positive area = A
    |    ╱
────┼───────────→ x
    |    ╲
    |     ╲  negative area = -A
    ↓      ╲

The positive area exactly cancels the negative area: $$\int_{-2}^{2} x^3\,dx = (-A) + A = 0$$

Level 3 Non-Symmetric Intervals

Can you use the symmetry theorem to evaluate $\int_0^2 x^3\,dx$? Explain why or why not.

Thought Process

What are the requirements for the symmetry theorem?

Show Answer

No, you cannot directly use the symmetry theorem because the interval $[0, 2]$ is not symmetric about the origin.

The theorem requires integration over $[-a, a]$ for some $a$.

However, you could use it indirectly: $$\int_{-2}^{2} x^3\,dx = 0 \text{ (by symmetry)}$$

And also: $$\int_{-2}^{2} x^3\,dx = \int_{-2}^{0} x^3\,dx + \int_{0}^{2} x^3\,dx$$

By the substitution $u = -x$ in the first integral: $$\int_{-2}^{0} x^3\,dx = -\int_{0}^{2} x^3\,dx$$

So: $-\int_{0}^{2} x^3\,dx + \int_{0}^{2} x^3\,dx = 0$ ✓ (confirms the symmetry)

But to find $\int_0^2 x^3\,dx$ itself, you must compute directly: $$\int_0^2 x^3\,dx = \left[\frac{x^4}{4}\right]_0^2 = 4$$

Mastery Checklist

Mental Model

The Balance Scale Analogy:

Imagine placing the function's area on a balance scale centered at $x = 0$:


Connections

Looking back:

Looking ahead:

Real-world connections:


Previous Up Next
u-Substitution (Definite) Skills Index Integration by Parts

Last updated: 2026-01-22