The integral 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 as to the right, so every point in it has a mirror point . What happens to each term of the integrand when is replaced by , 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 .
Key terms
Symmetric interval
Definition For a real number , the interval is symmetric about . Its midpoint is , and for every in the interval the point lies in it too. More generally, the interval is symmetric about its midpoint . A set of real numbers is called symmetric about when lies in for every in . 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 and , and only the center is paired with itself. The symmetry rules on this page use intervals centered at , because is the point that the mirror leaves in place.
Example The interval is symmetric about . The interval is not, because the point has no partner in it. The interval is symmetric about rather than . On it the substitution moves the center to and changes the bounds to and , so by the odd rule below
Odd function
Definition Let be defined on a set that is symmetric about . The function is odd if
for every in . 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 lies in , then , so .
In plain words Replacing by 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 is odd, since . For instance, while . The functions , , and on are odd as well. The function is not odd, because its value at is instead of .
Even function
Definition Let be defined on a set that is symmetric about . The function is even if
for every in . 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 by leaves the output unchanged. Heights at mirror points are equal and have the same sign, whatever that sign is.
Example The function is even, since . So are , , and . An even function may be negative. The function is even and negative on , and its heights at and still agree.
Parity
Definition The parity of a function defined on a set symmetric about records whether the function is even, odd or neither. Every such function is the sum of an even function and an odd function in exactly one way, with
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 . 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 is neither even nor odd. Its values and are neither equal nor opposite. Since , the formulas give the even part and the odd part . In the same way the exponential splits as , with even part and odd part . Among products, is odd and is even.
Symmetry rule for definite integrals
Definition Let and let be integrable on , for example continuous there. If is odd, then
and if is even, then
The reason is the substitution on the left half, which turns the bounds and into and and gives
For odd the left half is therefore , and for even it is . For any integrable on , adding the two halves gives
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 , and it does not apply to on , 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 . Its integrand is continuous on , and angles are measured in radians. By linearity, and because is odd and is even,
So the integral equals . The cubic term still encloses two regions of area each, and the records only that their signed areas cancel. As a check on size, decreases from to on , so the integral lies between and . Dropping the factor or reading the in as one degree would give or , both outside that range.
Check yourself
- Evaluate .
Show the answer
Both terms are continuous on . The term is odd and is even, so the symmetry rule gives
A direct antiderivative gives the same value, .
- Evaluate the integral
Show the answer
Both terms are continuous on , where . The product is an even function times an odd function, so it is odd and its integral over the symmetric interval is . The function is even because is even. Hence
The term would need integration by parts four times, and symmetry removes it without any of that work.
- A classmate writes and , because and are odd. What goes wrong in each case? Find the first integral.
Show the answer
The interval is not symmetric about . Its symmetric part does contribute , but the unmatched piece remains, so
In the second case the interval is symmetric and is odd, but is undefined at and unbounded near it, so it is not integrable on and the rule does not apply. Treated as an improper integral, the right half already fails,
so the integral diverges. Cutting out a gap around and letting does give , a number called the Cauchy principal value, but that is a different quantity from the integral.