← Back to all lessons
Class 12Calculus5:48Published 26 Oct 2024

Definite Integrals: Odd and Even Functions (Exercise 7.10)

Evaluate definite integrals over symmetric limits by first testing whether the function is odd or even, using property P7 from Exercise 7.10.

When the limits of a definite integral run from negative a to a, you can often shortcut the work by checking the symmetry of the function. This lesson applies property P7: an even function doubles the integral over the right half, while an odd function integrates to zero. Worked examples cover a sine-squared integral, a sine-cosine product, and a modulus integral.

What you'll learn

  • How to test whether a function is even or odd before integrating
  • Doubling the half-range integral when the function is even, and getting zero when it is odd
  • Evaluating a sine-squared integral by rewriting it with a double-angle identity
  • Integrating a modulus function over given limits

Lesson chapters

0:00Property P7: integrals of odd and even functions
0:42Integral of sine squared over symmetric limits
1:50Using the double-angle identity to finish
3:32Sine to the fifth times cosine to the fourth: an odd function
4:54Integral of a modulus function from 0 to 4

Lesson notes

This lesson works through Exercise 7.10, evaluating definite integrals over symmetric limits by applying property P7: the rule for integrals of odd and even functions. The key idea is to test the symmetry of the function first, which often turns a hard integral into a simple one.

Property P7: odd and even functions

For limits running from a-a to aa, the symmetry of ff decides the answer.

If ff is even, meaning f(x)=f(x)f(-x) = f(x), then

aaf(x)dx=20af(x)dx.\int_{-a}^{a} f(x)\,dx = 2\int_{0}^{a} f(x)\,dx.

If ff is odd, meaning f(x)=f(x)f(-x) = -f(x), then

aaf(x)dx=0.\int_{-a}^{a} f(x)\,dx = 0.

So whenever the limits have the form a-a to aa, first check whether the function is odd or even, and only fall back to direct integration if neither applies.

Example 1: π/2π/2sin2xdx\int_{-\pi/2}^{\pi/2} \sin^2 x\,dx

Let I=π/2π/2sin2xdxI = \displaystyle\int_{-\pi/2}^{\pi/2} \sin^2 x\,dx, with f(x)=sin2xf(x) = \sin^2 x.

Check the symmetry. Replacing xx with x-x:

f(x)=(sin(x))2=(sinx)2=sin2x=f(x).f(-x) = \big(\sin(-x)\big)^2 = \big(-\sin x\big)^2 = \sin^2 x = f(x).

So ff is even, and by P7

I=20π/2sin2xdx.I = 2\int_{0}^{\pi/2} \sin^2 x\,dx.

Finishing with the double-angle identity

Write sin2x\sin^2 x in terms of a multiple angle using sin2x=1cos2x2\sin^2 x = \tfrac{1 - \cos 2x}{2}:

I=20π/21cos2x2dx=212[0π/21dx0π/2cos2xdx].I = 2\int_{0}^{\pi/2} \frac{1 - \cos 2x}{2}\,dx = 2 \cdot \frac{1}{2}\left[\int_{0}^{\pi/2} 1\,dx - \int_{0}^{\pi/2} \cos 2x\,dx\right].

The factor of 22 and the 12\tfrac{1}{2} cancel. Integrating, 1dx=x\int 1\,dx = x and cos2xdx=sin2x2\int \cos 2x\,dx = \tfrac{\sin 2x}{2}:

I=[x]0π/212[sin2x]0π/2.I = \left[x\right]_{0}^{\pi/2} - \frac{1}{2}\left[\sin 2x\right]_{0}^{\pi/2}.

Applying the limits:

I=(π20)12(sinπsin0)=π212(00)=π2.I = \left(\frac{\pi}{2} - 0\right) - \frac{1}{2}\big(\sin \pi - \sin 0\big) = \frac{\pi}{2} - \frac{1}{2}(0 - 0) = \frac{\pi}{2}.

Example 2: 11sin5xcos4xdx\int_{-1}^{1} \sin^5 x \, \cos^4 x\,dx

The limits are again of the form a-a to aa, so test the symmetry of f(x)=sin5xcos4xf(x) = \sin^5 x \, \cos^4 x.

f(x)=(sin(x))5(cos(x))4=(sinx)5(cosx)4=sin5xcos4x=f(x).f(-x) = \big(\sin(-x)\big)^5 \big(\cos(-x)\big)^4 = \big(-\sin x\big)^5 \big(\cos x\big)^4 = -\sin^5 x \, \cos^4 x = -f(x).

Since f(x)=f(x)f(-x) = -f(x), the function is odd, so by P7

11sin5xcos4xdx=0.\int_{-1}^{1} \sin^5 x \, \cos^4 x\,dx = 0.

Example 3: 04x1dx\int_{0}^{4} |x - 1|\,dx

Here the limits are not symmetric, so integrate directly. Using udu=uu2\int |u|\,du = \tfrac{u\,|u|}{2} with u=x1u = x - 1:

I=[(x1)x12]04.I = \left[\frac{(x-1)\,|x-1|}{2}\right]_{0}^{4}.

Applying the limits:

I=12[(41)41(01)01]=12[33(1)1].I = \frac{1}{2}\Big[(4-1)\,|4-1| - (0-1)\,|0-1|\Big] = \frac{1}{2}\big[3 \cdot |3| - (-1)\cdot|-1|\big].

I=12[33(1)1]=12(9+1)=1210=5.I = \frac{1}{2}\big[3 \cdot 3 - (-1)\cdot 1\big] = \frac{1}{2}(9 + 1) = \frac{1}{2}\cdot 10 = 5.

Key takeaways

  • For limits a-a to aa, test symmetry first: an even function gives 20af(x)dx2\int_{0}^{a} f(x)\,dx, an odd function gives 00.
  • sin2x\sin^2 x is even and integrates cleanly once rewritten as 1cos2x2\tfrac{1-\cos 2x}{2}, giving π2\tfrac{\pi}{2} over π2-\tfrac{\pi}{2} to π2\tfrac{\pi}{2}.
  • A modulus integral over non-symmetric limits is evaluated directly using udu=uu2\int |u|\,du = \tfrac{u\,|u|}{2}.