Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Miscellaneous · Q34: ∫−11x17cos⁡4x dx=0\int_{-1}^{1}x^{17}\cos^4x\,dx=0

Miscellaneous ExerciseOdd functions on a symmetric interval (P7) · Miscellaneous Exercise
The question

Prove that

∫−11x17cos⁡4x dx=0\int_{-1}^{1} x^{17}\cos^4 x\,dx = 0
Exam answer

Let I=∫−11x17cos⁡4x dxI = \displaystyle\int_{-1}^{1}x^{17}\cos^4 x\,dx and f(x)=x17cos⁡4xf(x) = x^{17}\cos^4 x⁠.

f(−x)=(−x)17cos⁡4(−x)=−x17cos⁡4x=−f(x)\begin{aligned} f(-x) &= (-x)^{17}\cos^4(-x) \\ &= -x^{17}\cos^4 x = -f(x) \end{aligned}

So ff is an odd function.

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

∴ I=0=RHS\therefore\ I = 0 = \text{RHS}⁠. Hence proved.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Finding an antiderivative of x17cos⁡4xx^{17}\cos^4 x would take seventeen rounds of integration by parts. We do not need one. The interval [−1,1][-1, 1] is symmetric about 0, and the integrand is an odd function: replacing xx by −x-x changes its sign. Property P7 (ii) says the integral of an odd function over [−a,a][-a, a] is 0, because the area to the right of the axis is cancelled exactly by an equal area, below the axis, on the left.

Given, to show, and the plan
Given
f(x)=x17cos⁡4xf(x) = x^{17}\cos^4 x on [−1,1][-1, 1]⁠.
To show
∫−11f(x) dx=0\int_{-1}^{1} f(x)\,dx = 0⁠.
Plan
(1) Continuity. (2) Show f(−x)=−f(x)f(-x) = -f(x)⁠. (3) Apply P7 (ii) with a=1a = 1⁠, and see why it works. (4) Picture and numerical check.

Basics you need

1Odd and even functions

ff is even if f(−x)=f(x)f(-x) = f(x) and odd if f(−x)=−f(x)f(-x) = -f(x)⁠, for every xx in a domain symmetric about 0. Odd powers of xx are odd; cos⁡x\cos x and all its powers are even. Basics: symmetry and mirror images

2Property P7 (Section 7.10)

(i) ∫−aaf=2∫0af\int_{-a}^{a} f = 2\int_0^a f if ff is even; (ii) ∫−aaf=0\int_{-a}^{a} f = 0 if ff is odd. Lesson: properties of definite integrals

3Signed area

Area below the xx-axis counts as negative in a definite integral. Basics: area as a sum of thin strips

Solution

  1. The integrand is continuous on [−1,1][-1, 1]

    x17x^{17} is a polynomial and cos⁡4x=(cos⁡x)4\cos^4 x = (\cos x)^4 is a power of a continuous function, so their product is continuous on all of R\R⁠, in particular on [−1,1][-1, 1]⁠.

    P7 is proved in Section 7.10 for integrals that exist in the sense of Theorem 2, so continuity on the closed interval is the condition to check first.
  2. Show the integrand is odd

    For every real xx⁠,

    f(−x)=(−x)17cos⁡4(−x)=(−x17)(cos⁡x)4=−x17cos⁡4x=−f(x).\begin{aligned} f(-x) &= (-x)^{17}\cos^4(-x) \\ &= (-x^{17})(\cos x)^4 \\ &= -x^{17}\cos^4 x = -f(x) . \end{aligned}

    So ff is an odd function.

    Two facts: (−x)17=(−1)17x17=−x17(-x)^{17} = (-1)^{17}x^{17} = -x^{17} because 17 is odd; and cos⁡(−x)=cos⁡x\cos(-x) = \cos x⁠, so cos⁡4(−x)=cos⁡4x\cos^4(-x) = \cos^4 x⁠. An odd function times an even function is odd. The domain [−1,1][-1, 1] is symmetric about 0, which P7 also needs.
    cos⁡(−x)=cos⁡x\cos(-x) = \cos x (cosine is even). Basics: symmetry and mirror images
  3. Apply P7 (ii) with a=1a = 1

    ∫−11x17cos⁡4x dx=0.\int_{-1}^{1} x^{17}\cos^4 x\,dx = 0 .

    Why P7 (ii) holds here: by P2, split at 0, and in the left part put x=−tx = -t⁠, dx=−dtdx = -dt (limits −1→1-1 \to 1⁠, 0→00 \to 0⁠):

    ∫−10f(x) dx=∫10f(−t)(−dt)=∫01f(−t) dt=−∫01f(t) dt.\begin{aligned} \int_{-1}^{0} f(x)\,dx &= \int_{1}^{0} f(-t)(-dt) \\ &= \int_0^1 f(-t)\,dt \\ &= -\int_0^1 f(t)\,dt . \end{aligned}

    So the left part is exactly the negative of the right part ∫01f\int_0^1 f⁠, and the two add to 0. This is the required result.

    This repeats the book's proof of P7 for our ff⁠, so you can see that nothing more than oddness and a symmetric interval is used. The minus from dx=−dtdx = -dt is undone by swapping the limits back (P1), and the minus from f(−t)=−f(t)f(-t) = -f(t) is what produces the cancellation.
    Section 7.10: P2 (splitting), P1 (swapping limits), P0 (renaming the variable), P7 (ii). Lesson: properties of definite integrals
  4. Picture: two equal and opposite areas

    x y −1 −0.5 0.5 1 0.05 −0.05 area +0.006608 area −0.006608
    y=x17cos⁡4xy = x^{17}\cos^4 x on [−1,1][-1, 1] (vertical scale stretched 6 times compared with the horizontal). The curve is almost flat near 0 because x17x^{17} is tiny there, and it is symmetric about the origin. The area on the right, about 0.006608, is above the axis; the matching area on the left is below it and counts as −0.006608-0.006608⁠. They cancel.
    An odd function's graph is unchanged by a half-turn about the origin. A half-turn carries the region above the axis on [0,1][0, 1] onto a region of the same size below the axis on [−1,0][-1, 0]⁠, and signed areas below the axis are negative.
Result

f(x)=x17cos⁡4xf(x) = x^{17}\cos^4 x is continuous and odd, and [−1,1][-1, 1] is symmetric about 0, so by P7 (ii) ∫−11x17cos⁡4x dx=0,\int_{-1}^{1} x^{17}\cos^4 x\,dx = 0, as was to be proved.

Check it with numbers

Numerical integration (adaptive quadrature) gives ∫01x17cos⁡4x dx≈0.0066078909\int_0^1 x^{17}\cos^4 x\,dx \approx 0.0066078909 and ∫−10x17cos⁡4x dx≈−0.0066078909\int_{-1}^{0} x^{17}\cos^4 x\,dx \approx -0.0066078909⁠; the whole integral is 0 to all digits computed.

Oddness at a sample point: 0.917≈0.1667720.9^{17} \approx 0.166772 and cos⁡40.9≈0.149304\cos^4 0.9 \approx 0.149304⁠, so f(0.9)≈0.024900f(0.9) \approx 0.024900⁠, while f(−0.9)f(-0.9) ≈(−0.166772)(0.149304)\approx (-0.166772)(0.149304) ≈−0.024900\approx -0.024900 ✓.

Common mistakes
  1. Calling the integrand even because cos⁡4x\cos^4 x is even. The factor x17x^{17} is odd, and odd times even is odd.
  2. Using P7 on a non-symmetric interval, such as [0,1][0, 1] or [−1,2][-1, 2]⁠. The cancellation needs [−a,a][-a, a]⁠.
  3. Attempting seventeen integrations by parts. Always look for symmetry before integrating.
What to take away
  1. On [−a,a][-a, a]⁠, test f(−x)f(-x) first: odd means the integral is 0; even means it is 2∫0af2\int_0^a f⁠.
  2. Odd ×\times even = odd; odd ×\times odd = even; even ×\times even = even (just like the signs −×+-\times+⁠, −×−-\times-⁠, +×++\times+⁠).

Every fact used, and where it comes from

FactUsed inSource
Continuity of polynomials, cos⁡\cos⁠, productsStep 1Chapter 5, Section 5.2
cos⁡(−x)=cos⁡x\cos(-x) = \cos x⁠; (−x)17=−x17(-x)^{17} = -x^{17}Step 2Trigonometric functions (Class XI); laws of exponents
P7 (ii): ∫−aaf=0\int_{-a}^{a} f = 0 for odd ffStep 3Section 7.10, property P7 (ii) (Lesson: properties)
P0, P1, P2 and substitution, used in the proof of P7Step 3Section 7.10 (Proof of P7); Section 7.9
Signed areaStep 4Section 7.8.1 (Basics: area)
All decimalsStep 4, CheckRecomputed (mpmath quadrature, 30 digits) in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →