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

Exercise 7.8 · Q17: ∫0π/4(2sec⁡2x+x3+2) dx\int_0^{\pi/4}(2\sec^2 x + x^3 + 2)\,dx

Exercise 7.8Fundamental theorem of calculus · Section 7.8
The question

Evaluate the definite integral

∫0π4(2sec⁡2x+x3+2)dx.\int_0^{\frac{\pi}{4}}\left(2\sec^2 x + x^3 + 2\right)dx.
Exam answer

Let I=∫0π4(2sec⁡2x+x3+2)dxI = \displaystyle\int_0^{\frac{\pi}{4}}\left(2\sec^2 x + x^3 + 2\right)dx⁠.

I=[2tan⁡x+x44+2x]0π4=(2tan⁡π4+π44⋅256+2π4)−(2tan⁡0+0+0)\begin{aligned} I &= \left[2\tan x + \frac{x^4}{4} + 2x\right]_0^{\frac{\pi}{4}} \\ &= \left(2\tan\frac{\pi}{4} + \frac{\pi^4}{4\cdot 256} + \frac{2\pi}{4}\right) \\ &\quad - (2\tan 0 + 0 + 0) \end{aligned}

∴ I=π41024+π2+2\therefore\ I = \dfrac{\pi^4}{1024} + \dfrac{\pi}{2} + 2⁠.

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

The one idea this problem is built on

Each of the three terms has a standard antiderivative: sec⁡2x\sec^2 x gives tan⁡x\tan x⁠, x3x^3 gives x44\frac{x^4}{4}⁠, and the constant 2 gives 2x2x⁠. The only care needed is that sec⁡2x\sec^2 x is continuous on [0,π4]\left[0, \frac{\pi}{4}\right] (it is, since cos⁡x≠0\cos x \ne 0 there), and then Theorem 2 (Section 7.8.3) gives F(π4)−F(0)F\left(\frac{\pi}{4}\right) - F(0)⁠.

Given, to find, and the plan
Given
The integrand f(x)=2sec⁡2x+x3+2f(x) = 2\sec^2 x + x^3 + 2 on [0,π4]\left[0, \frac{\pi}{4}\right]⁠.
To find
The exact value of the integral, and a decimal.
Plan
(1) Check continuity, especially of sec⁡2x\sec^2 x⁠. (2) Integrate term by term to get FF⁠. (3) Differentiate FF back. (4) Compute F(π4)−F(0)F\left(\frac{\pi}{4}\right) - F(0)⁠.

Basics you need

1Second fundamental theorem

∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a) when ff is continuous on [a,b][a, b] and F′=fF' = f⁠. Lesson: definite integrals and the fundamental theorem

2sec⁡2x\sec^2 x and tan⁡x\tan x

ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 x⁠, so ∫sec⁡2x dx=tan⁡x+C\int\sec^2 x\,dx = \tan x + C⁠; sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x} is defined only where cos⁡x≠0\cos x \ne 0⁠. Basics: trigonometric identities for integrals

3Power rule

∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C for n≠−1n \ne -1⁠. Basics: powers of x and the power rule

Solution

  1. Check continuity on [0,π4]\left[0, \frac{\pi}{4}\right]

    On [0,π4]\left[0, \frac{\pi}{4}\right]⁠, cos⁡x\cos x decreases from 1 to 12\frac{1}{\sqrt2}⁠, so cos⁡x≥12>0\cos x \ge \frac{1}{\sqrt2} > 0⁠. Hence sec⁡2x=1cos⁡2x\sec^2 x = \frac{1}{\cos^2 x} is defined and continuous there, with values between 1 and 2. The terms x3x^3 and 2 are polynomials. So the integrand is continuous on the whole interval.

    sec⁡2x\sec^2 x blows up where cos⁡x=0\cos x = 0⁠, at x=π2+nπx = \frac{\pi}{2} + n\pi⁠. The nearest such point, π2\frac{\pi}{2}⁠, lies outside [0,π4]\left[0, \frac{\pi}{4}\right]⁠, so Theorem 2 can be used.
    cos⁡π4=12\cos\frac{\pi}{4} = \frac{1}{\sqrt2}⁠, so sec⁡2π4=2\sec^2\frac{\pi}{4} = 2⁠. Basics: trigonometric identities
  2. Integrate term by term

    ∫(2sec⁡2x+x3+2) dx=2tan⁡x+x44+2x+C.\begin{aligned}\int(2\sec^2 x + x^3 + 2)\,dx &= 2\tan x + \frac{x^4}{4} + 2x + C.\end{aligned}

    Take F(x)=2tan⁡x+x44+2xF(x) = 2\tan x + \frac{x^4}{4} + 2x⁠.

    The integral of a sum is the sum of the integrals, and constants come outside (Properties (III), (IV), Section 7.2.1). Then ∫sec⁡2x dx=tan⁡x\int\sec^2 x\,dx = \tan x⁠, ∫x3dx=x44\int x^3 dx = \frac{x^4}{4} and ∫2 dx=2x\int 2\,dx = 2x⁠.
    Standard formulae (iv) and (i), Section 7.2. Basics: the power rule
  3. Check: differentiate FF back

    F′(x)=2sec⁡2x+4x34+2=2sec⁡2x+x3+2. ✓F'(x) = 2\sec^2 x + \frac{4x^3}{4} + 2 = 2\sec^2 x + x^3 + 2.\ \checkmark
    Differentiating returns the integrand on every interval where cos⁡x≠0\cos x \ne 0⁠, in particular on [0,π4]\left[0, \frac{\pi}{4}\right]⁠.
    Property (I), Section 7.2.1. Basics: integration undoes differentiation
  4. Evaluate F(π4)−F(0)F\left(\frac{\pi}{4}\right) - F(0)

    At the upper limit: tan⁡π4=1\tan\frac{\pi}{4} = 1 and (π4)4=π4256\left(\frac{\pi}{4}\right)^4 = \frac{\pi^4}{256}⁠. At the lower limit everything is 0 (tan⁡0=0\tan 0 = 0⁠). So

    I=[2⋅1+π44⋅256+2π4]−[0]=π41024+π2+2.\begin{aligned}I &= \left[2\cdot 1 + \frac{\pi^4}{4\cdot 256} + \frac{2\pi}{4}\right] - [0] \\ &= \frac{\pi^4}{1024} + \frac{\pi}{2} + 2.\end{aligned}

    In decimals: π41024≈0.0951261\frac{\pi^4}{1024} \approx 0.0951261 and π2≈1.5707963\frac{\pi}{2} \approx 1.5707963⁠, so I≈3.6659224I \approx 3.6659224⁠.

    π/8 π/4 2 4 6 x y y = 2sec²x + x³ + 2 area ≈ 3.666
    The shaded region under y=2sec⁡2x+x3+2y = 2\sec^2 x + x^3 + 2 from 0 to π4\frac{\pi}{4} has area about 3.666. The curve rises from 4 to about 6.48, and the width is π4≈0.785\frac{\pi}{4} \approx 0.785⁠, so the area lies between 4×0.7854 \times 0.785 and 6.48×0.7856.48 \times 0.785⁠.
    The x4x^4 term is small (about 0.095) because π4<1\frac{\pi}{4} < 1⁠, so its fourth power is smaller still. The bound from the figure, between about 3.14 and 5.09, contains 3.666.
    4⋅256=10244\cdot 256 = 1024⁠; 2π4=π2\frac{2\pi}{4} = \frac{\pi}{2}⁠. Basics: area as a sum of thin strips
Result ∫0π4(2sec⁡2x+x3+2) dx=π41024+π2+2\int_0^{\frac{\pi}{4}}(2\sec^2 x + x^3 + 2)\,dx = \frac{\pi^4}{1024} + \frac{\pi}{2} + 2

≈3.6659224\approx 3.6659224⁠. (Textbook answer: π41024+π2+2\frac{\pi^4}{1024} + \frac{\pi}{2} + 2⁠.)

Check it with numbers

A numerical integration of 2sec⁡2x+x3+22\sec^2 x + x^3 + 2 over [0,π4]\left[0, \frac{\pi}{4}\right] gives about 3.6659224, the same as the exact value to 7 decimal places.

Separately: ∫0π/42sec⁡2x dx=2\int_0^{\pi/4}2\sec^2 x\,dx = 2⁠, ∫0π/4x3dx≈0.0951261\int_0^{\pi/4}x^3dx \approx 0.0951261⁠, ∫0π/42 dx≈1.5707963\int_0^{\pi/4}2\,dx \approx 1.5707963⁠.

Common mistakes
  1. Integrating sec⁡2x\sec^2 x as sec⁡3x3\frac{\sec^3 x}{3}⁠. The power rule does not apply to a function of xx without its derivative; sec⁡2x\sec^2 x is the derivative of tan⁡x\tan x⁠.
  2. Writing (π4)4=π416\left(\frac{\pi}{4}\right)^4 = \frac{\pi^4}{16}⁠. 44=2564^4 = 256⁠, and the extra 14\frac14 from x44\frac{x^4}{4} makes 1024.
  3. Ignoring continuity. Over an interval containing π2\frac{\pi}{2} the same calculation would be meaningless, since sec⁡2x\sec^2 x is undefined there.
What to take away
  1. For a sum, integrate each term with its own standard formula.
  2. Before using Theorem 2 with tan⁡\tan⁠, sec⁡\sec or a quotient, check that no point of the interval makes a denominator 0.
  3. Rough area bounds (smallest height × width, largest height × width) catch big slips.

Every fact used, and where it comes from

FactUsed inSource
∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a) for continuous ffSteps 1, 4Theorem 2 and Remark (iv), Section 7.8.3 (Lesson)
∫sec⁡2x dx=tan⁡x+C\int\sec^2 x\,dx = \tan x + CStep 2Standard formula (iv), Section 7.2 (Basics)
∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + CStep 2Standard formula (i), Section 7.2 (Basics)
Sum and constant-multiple rulesStep 2Properties (III), (IV), Section 7.2.1
tan⁡π4=1\tan\frac{\pi}{4} = 1⁠, cos⁡π4=12\cos\frac{\pi}{4} = \frac{1}{\sqrt2}Steps 1, 4Trigonometric values (Basics)
Definite integral as areaFigureSection 7.8.1 (Basics)
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 →