Unit 3, chapter 11

Read the symmetry before calculating

How odd and even functions behave on a symmetric interval, why an odd integrand integrates to zero and an even one to twice its right half, and how parity splits a mixed integrand before any antiderivative.

  • Chapter 11
  • Symmetry, improper integrals, Simpson's rule and power series

The integral ∫−11(x3+cos⁡x) dx\int_{-1}^{1} (x^3 + \cos x)\,dx can be found from an antiderivative, but its interval already does much of the work. The interval reaches exactly as far to the left of 00 as to the right, so every point xx in it has a mirror point −x-x. What happens to each term of the integrand when xx is replaced by −x-x, and what does that do to the integral? This page answers both questions, shows that the cubic term contributes nothing and the cosine term doubles its right half, and arrives at the exact value 2sin⁡12\sin 1.

Key terms

Symmetric interval

Definition For a real number a>0a > 0, the interval [−a,a][-a, a] is symmetric about 00. Its midpoint is 00, and for every xx in the interval the point −x-x lies in it too. More generally, the interval [c−a,c+a][c - a, c + a] is symmetric about its midpoint cc. A set DD of real numbers is called symmetric about 00 when −x-x lies in DD for every xx in DD. Even and odd functions are defined on sets of this kind.

In plain words A symmetric interval reaches equally far on both sides of its center, so its points come in mirror pairs xx and −x-x, and only the center is paired with itself. The symmetry rules on this page use intervals centered at 00, because 00 is the point that the mirror x↦−xx \mapsto -x leaves in place.

Example The interval [−1,1][-1, 1] is symmetric about 00. The interval [−1,2][-1, 2] is not, because the point 22 has no partner −2-2 in it. The interval [0,2][0, 2] is symmetric about 11 rather than 00. On it the substitution t=x−1t = x - 1 moves the center to 00 and changes the bounds to −1-1 and 11, so by the odd rule below

∫02(x−1)3 dx=∫−11t3 dt=0.\begin{aligned} \int_0^2 (x - 1)^3\,dx &= \int_{-1}^{1} t^3\,dt \\[0.4em] &= 0. \end{aligned}

Odd function

Definition Let ff be defined on a set DD that is symmetric about 00. The function ff is odd if

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

for every xx in DD. The graph of an odd function is symmetric about the origin, which means that a half turn about the origin carries the graph onto itself. If 00 lies in DD, then f(0)=−f(0)f(0) = -f(0), so f(0)=0f(0) = 0.

In plain words Replacing xx by −x-x keeps the size of the output and flips its sign. Heights at mirror points are equal in size and opposite in sign.

Example The function x3x^3 is odd, since (−x)3=−x3(-x)^3 = -x^3. For instance, (12)3=18(\tfrac12)^3 = \tfrac18 while (−12)3=−18(-\tfrac12)^3 = -\tfrac18. The functions sin⁡x\sin x, x5−4xx^5 - 4x, and tan⁡x\tan x on (−π2,π2)(-\tfrac{\pi}{2}, \tfrac{\pi}{2}) are odd as well. The function x3+1x^3 + 1 is not odd, because its value at 00 is 11 instead of 00.

Even function

Definition Let gg be defined on a set DD that is symmetric about 00. The function gg is even if

g(−x)=g(x)g(-x) = g(x)

for every xx in DD. The graph of an even function is symmetric about the vertical axis, so reflecting the graph across that axis carries it onto itself.

In plain words Replacing xx by −x-x leaves the output unchanged. Heights at mirror points are equal and have the same sign, whatever that sign is.

Example The function cos⁡x\cos x is even, since cos⁡(−x)=cos⁡x\cos(-x) = \cos x. So are x2x^2, x4−3x2x^4 - 3x^2, ∣x∣\lvert x \rvert and e−x2e^{-x^2}. An even function may be negative. The function x2−1x^2 - 1 is even and negative on (−1,1)(-1, 1), and its heights at xx and −x-x still agree.

Parity

Definition The parity of a function defined on a set symmetric about 00 records whether the function is even, odd or neither. Every such function ff is the sum of an even function and an odd function in exactly one way, with

feven(x)=f(x)+f(−x)2,fodd(x)=f(x)−f(−x)2.\begin{aligned} f_{\text{even}}(x) &= \frac{f(x) + f(-x)}{2}, \\[0.4em] f_{\text{odd}}(x) &= \frac{f(x) - f(-x)}{2}. \end{aligned}

Sums and constant multiples of odd functions are odd, and sums and constant multiples of even functions are even. A product of two even functions or of two odd functions is even, and a product of an even function and an odd function is odd. The zero function is the only function that is both even and odd.

In plain words Parity describes how a function responds to the mirror x↦−xx \mapsto -x. A function that is neither even nor odd can still be split into an even part and an odd part, and each part can then use its own symmetry. In products, parity combines like signs, with even playing the role of plus and odd the role of minus.

Example The integrand f(x)=x3+cos⁡xf(x) = x^3 + \cos x is neither even nor odd. Its values f(1)=1+cos⁡1≈1.540f(1) = 1 + \cos 1 \approx 1.540 and f(−1)=−1+cos⁡1≈−0.460f(-1) = -1 + \cos 1 \approx -0.460 are neither equal nor opposite. Since f(−x)=−x3+cos⁡xf(-x) = -x^3 + \cos x, the formulas give the even part cos⁡x\cos x and the odd part x3x^3. In the same way the exponential splits as ex=cosh⁡x+sinh⁡xe^x = \cosh x + \sinh x, with even part cosh⁡x\cosh x and odd part sinh⁡x\sinh x. Among products, x2sin⁡xx^2 \sin x is odd and xsin⁡xx \sin x is even.

Symmetry rule for definite integrals

Definition Let a>0a > 0 and let ff be integrable on [−a,a][-a, a], for example continuous there. If ff is odd, then

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

and if ff is even, then

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

The reason is the substitution x=−tx = -t on the left half, which turns the bounds −a-a and 00 into aa and 00 and gives

∫−a0f(x) dx=∫0af(−t) dt.\int_{-a}^{0} f(x)\,dx = \int_0^a f(-t)\,dt.

For odd ff the left half is therefore −∫0af(t) dt-\int_0^a f(t)\,dt, and for even ff it is +∫0af(t) dt+\int_0^a f(t)\,dt. For any ff integrable on [−a,a][-a, a], adding the two halves gives

∫−aaf(x) dx=∫0a(f(t)+f(−t)) dt=2∫0afeven(t) dt,\begin{aligned} &\int_{-a}^{a} f(x)\,dx \\[0.4em] &\quad = \int_0^a \bigl(f(t) + f(-t)\bigr)\,dt \\[0.4em] &\quad = 2\int_0^a f_{\text{even}}(t)\,dt, \end{aligned}

so over a symmetric interval only the even part of an integrand contributes. Both conditions matter. The rule says nothing about an interval such as [−1,2][-1, 2], and it does not apply to 1/x1/x on [−1,1][-1, 1], which is not integrable there.

In plain words Cut the region over a symmetric interval into thin strips that come in mirror pairs of equal width. For an odd function the two strips of a pair carry opposite signed areas and cancel. For an even function they carry equal signed areas, so the left half repeats the right half. Neither rule needs the function to be positive, and a zero integral of an odd function is a balance of signed area, not an absence of area.

Example Call the opening integral II. Its integrand is continuous on [−1,1][-1, 1], and angles are measured in radians. By linearity, and because x3x^3 is odd and cos⁡x\cos x is even,

I=∫−11x3 dx+∫−11cos⁡x dx=0+2∫01cos⁡x dx=2[sin⁡x]01=2sin⁡1.\begin{aligned} I &= \int_{-1}^{1} x^3\,dx \\[0.4em] &\quad + \int_{-1}^{1} \cos x\,dx \\[0.4em] &= 0 + 2\int_0^1 \cos x\,dx \\[0.4em] &= 2\bigl[\sin x\bigr]_0^1 = 2\sin 1. \end{aligned}

So the integral equals 2sin⁡1≈1.682942\sin 1 \approx 1.68294. The cubic term still encloses two regions of area 14\tfrac14 each, and the 00 records only that their signed areas cancel. As a check on size, cos⁡x\cos x decreases from 11 to cos⁡1≈0.540\cos 1 \approx 0.540 on [0,1][0, 1], so the integral lies between 2cos⁡1≈1.0812\cos 1 \approx 1.081 and 22. Dropping the factor 22 or reading the 11 in sin⁡1\sin 1 as one degree would give 0.8410.841 or 0.0350.035, both outside that range.

Check yourself

  1. Evaluate ∫−22(x3+x2) dx\int_{-2}^{2} (x^3 + x^2)\,dx.
Show the answer

Both terms are continuous on [−2,2][-2, 2]. The term x3x^3 is odd and x2x^2 is even, so the symmetry rule gives

∫−22(x3+x2) dx=0+2∫02x2 dx=2⋅83=163.\begin{aligned} &\int_{-2}^{2} (x^3 + x^2)\,dx \\[0.4em] &\quad = 0 + 2\int_0^2 x^2\,dx \\[0.4em] &\quad = 2 \cdot \frac{8}{3} = \frac{16}{3}. \end{aligned}

A direct antiderivative gives the same value, (4+83)−(4−83)=163(4 + \tfrac83) - (4 - \tfrac83) = \tfrac{16}{3}.

  1. Evaluate the integral
∫−π/4π/4(x4sin⁡x+sec⁡2x) dx.\int_{-\pi/4}^{\pi/4} \bigl(x^4 \sin x + \sec^2 x\bigr)\,dx.
Show the answer

Both terms are continuous on [−π4,π4][-\tfrac{\pi}{4}, \tfrac{\pi}{4}], where cos⁡x>0\cos x > 0. The product x4sin⁡xx^4 \sin x is an even function times an odd function, so it is odd and its integral over the symmetric interval is 00. The function sec⁡2x=1/cos⁡2x\sec^2 x = 1/\cos^2 x is even because cos⁡x\cos x is even. Hence

∫−π/4π/4(x4sin⁡x+sec⁡2x) dx=2∫0π/4sec⁡2x dx=2[tan⁡x]0π/4=2.\begin{aligned} &\int_{-\pi/4}^{\pi/4} \bigl(x^4 \sin x + \sec^2 x\bigr)\,dx \\[0.4em] &\quad = 2\int_0^{\pi/4} \sec^2 x\,dx \\[0.4em] &\quad = 2\bigl[\tan x\bigr]_0^{\pi/4} = 2. \end{aligned}

The term x4sin⁡xx^4 \sin x would need integration by parts four times, and symmetry removes it without any of that work.

  1. A classmate writes ∫−12x3 dx=0\int_{-1}^{2} x^3\,dx = 0 and ∫−111x dx=0\int_{-1}^{1} \frac{1}{x}\,dx = 0, because x3x^3 and 1/x1/x are odd. What goes wrong in each case? Find the first integral.
Show the answer

The interval [−1,2][-1, 2] is not symmetric about 00. Its symmetric part [−1,1][-1, 1] does contribute 00, but the unmatched piece [1,2][1, 2] remains, so

∫−12x3 dx=∫12x3 dx=16−14=154.\begin{aligned} \int_{-1}^{2} x^3\,dx &= \int_1^2 x^3\,dx \\[0.4em] &= \frac{16 - 1}{4} = \frac{15}{4}. \end{aligned}

In the second case the interval is symmetric and 1/x1/x is odd, but 1/x1/x is undefined at 00 and unbounded near it, so it is not integrable on [−1,1][-1, 1] and the rule does not apply. Treated as an improper integral, the right half already fails,

∫01dxx=lim⁡t→0+∫t1dxx=lim⁡t→0+(−ln⁡t)=∞,\begin{aligned} \int_0^1 \frac{dx}{x} &= \lim_{t \to 0^+} \int_t^1 \frac{dx}{x} \\[0.4em] &= \lim_{t \to 0^+} (-\ln t) = \infty, \end{aligned}

so the integral diverges. Cutting out a gap (−t,t)(-t, t) around 00 and letting t→0+t \to 0^+ does give 00, a number called the Cauchy principal value, but that is a different quantity from the integral.