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

Exercise 7.8 · Q8: ∫π/6π/4cosec⁡x dx\int_{\pi/6}^{\pi/4}\operatorname{cosec}x\,dx

Exercise 7.8Fundamental theorem of calculus · Section 7.8
The question

Evaluate the definite integral

∫π6π4cosec⁡x dx.\int_{\frac{\pi}{6}}^{\frac{\pi}{4}}\operatorname{cosec}x\,dx.
Exam answer

Let I=∫π6π4cosec⁡x dxI = \displaystyle\int_{\frac{\pi}{6}}^{\frac{\pi}{4}}\operatorname{cosec}x\,dx⁠.

Using ∫cosec⁡x dx\displaystyle\int\operatorname{cosec}x\,dx =log⁡∣cosec⁡x−cot⁡x∣+C,{= \log|\operatorname{cosec}x - \cot x| + C,}

I=[log⁡∣cosec⁡x−cot⁡x∣]π6π4=log⁡(2−1)−log⁡(2−3)\begin{aligned} I &= \Big[\log|\operatorname{cosec}x - \cot x|\Big]_{\frac{\pi}{6}}^{\frac{\pi}{4}} \\ &= \log\left(\sqrt2 - 1\right) - \log\left(2 - \sqrt3\right) \end{aligned}

∴ I=log⁡(2−12−3)\therefore\ I = \log\left(\dfrac{\sqrt2 - 1}{2 - \sqrt3}\right)⁠.

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

The one idea this problem is built on

The second fundamental theorem (Theorem 2, Section 7.8.3): ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)⁠. The antiderivative of cosec⁡x\operatorname{cosec}x is log⁡∣cosec⁡x−cot⁡x∣\log|\operatorname{cosec}x - \cot x|⁠, result (iv) of Section 7.3.1. Putting in the exact values of cosec⁡\operatorname{cosec} and cot⁡\cot at π4\frac{\pi}{4} and π6\frac{\pi}{6} gives two logarithms, which combine into one.

Given, to find, and the plan
Given
f(x)=cosec⁡x=1sin⁡xf(x) = \operatorname{cosec}x = \frac{1}{\sin x} on [π6,π4]\left[\frac{\pi}{6}, \frac{\pi}{4}\right]⁠.
To find
The exact value of the integral.
Plan
(1) Continuity: sin⁡x≠0\sin x \ne 0⁠. (2) Antiderivative (derived as in the book), checked by differentiating. (3) Exact values at the limits and F(π4)−F(π6)F\left(\frac{\pi}{4}\right) - F\left(\frac{\pi}{6}\right)⁠. (4) Cross-check with cosec⁡x−cot⁡x=tan⁡x2\operatorname{cosec}x - \cot x = \tan\frac{x}{2} and with the graph.

Basics you need

1Second fundamental theorem

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

2Substitution and ∫dtt\int\frac{dt}{t}

If t=g(x)t = g(x)⁠, dt=g′(x) dxdt = g'(x)\,dx (Section 7.3.1); ∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C (standard formula (xii)). Basics: substitution (the chain rule backwards)

3Identity

cosec⁡2x−cot⁡2x=1\operatorname{cosec}^2 x - \cot^2 x = 1⁠, so (cosec⁡x+cot⁡x)(cosec⁡x−cot⁡x)=1(\operatorname{cosec}x + \cot x)(\operatorname{cosec}x - \cot x) = 1⁠. Basics: trigonometric identities for integrals

4Exact values

sin⁡π6=12\sin\frac{\pi}{6} = \frac12⁠, cos⁡π6=32\cos\frac{\pi}{6} = \frac{\sqrt3}{2}⁠; sin⁡π4=cos⁡π4=12\sin\frac{\pi}{4} = \cos\frac{\pi}{4} = \frac{1}{\sqrt2}⁠. Basics: trigonometric values

Solution

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

    cosec⁡x=1sin⁡x\operatorname{cosec}x = \frac{1}{\sin x} is continuous wherever sin⁡x≠0\sin x \ne 0⁠. On [π6,π4]\left[\frac{\pi}{6}, \frac{\pi}{4}\right]⁠, sin⁡x\sin x increases from 12\frac12 to 12\frac{1}{\sqrt2}⁠, so sin⁡x≥12>0\sin x \ge \frac12 > 0⁠. The integrand is continuous on the whole interval.

    cosec⁡x\operatorname{cosec}x breaks down only at multiples of π\pi (where sin⁡x=0\sin x = 0⁠); none lies in [π6,π4]\left[\frac{\pi}{6}, \frac{\pi}{4}\right]⁠. So Theorem 2 applies (Remark (iv) after Theorem 2).
    Quotient of continuous functions: Chapter 5, Theorem 1, Section 5.2.1. Lesson: the fundamental theorem
  2. Antiderivative: the book's trick

    Multiply top and bottom by cosec⁡x+cot⁡x\operatorname{cosec}x + \cot x (which is positive on our interval):

    ∫cosec⁡x dx=∫cosec⁡x(cosec⁡x+cot⁡x)cosec⁡x+cot⁡x dx.\int\operatorname{cosec}x\,dx = \int\frac{\operatorname{cosec}x\left(\operatorname{cosec}x + \cot x\right)}{\operatorname{cosec}x + \cot x}\,dx.

    Let t=cosec⁡x+cot⁡xt = \operatorname{cosec}x + \cot x⁠. Then

    dt=(−cosec⁡xcot⁡x−cosec⁡2x)dx=−cosec⁡x(cosec⁡x+cot⁡x)dx,\begin{aligned}dt &= \left(-\operatorname{cosec}x\cot x - \operatorname{cosec}^2 x\right)dx \\ &= -\operatorname{cosec}x\left(\operatorname{cosec}x + \cot x\right)dx,\end{aligned}

    which is minus the numerator. So

    ∫cosec⁡x dx=−∫dtt=−log⁡∣cosec⁡x+cot⁡x∣+C.\int\operatorname{cosec}x\,dx = -\int\frac{dt}{t} = -\log|\operatorname{cosec}x + \cot x| + C.

    Now use the identity cosec⁡2x−cot⁡2x=1\operatorname{cosec}^2 x - \cot^2 x = 1⁠:

    (cosec⁡x+cot⁡x)(cosec⁡x−cot⁡x)=1,(\operatorname{cosec}x + \cot x)(\operatorname{cosec}x - \cot x) = 1,

    so the two brackets are reciprocals of each other, and

    −log⁡∣cosec⁡x+cot⁡x∣=log⁡1∣cosec⁡x+cot⁡x∣=log⁡∣cosec⁡x−cot⁡x∣.\begin{aligned}-\log|\operatorname{cosec}x + \cot x| &= \log\frac{1}{|\operatorname{cosec}x + \cot x|} \\ &= \log|\operatorname{cosec}x - \cot x|.\end{aligned}

    Take

    F(x)=log⁡∣cosec⁡x−cot⁡x∣.F(x) = \log\left|\operatorname{cosec}x - \cot x\right|.
    The multiplier is chosen so that the numerator becomes (minus) the derivative of the denominator; then the integral is a logarithm. The final form is result (iv) of Section 7.3.1: ∫cosec⁡x dx=log⁡∣cosec⁡x−cot⁡x∣+C\int\operatorname{cosec}x\,dx = \log|\operatorname{cosec}x - \cot x| + C⁠.
    ddxcosec⁡x=−cosec⁡xcot⁡x\frac{d}{dx}\operatorname{cosec}x = -\operatorname{cosec}x\cot x⁠, ddxcot⁡x=−cosec⁡2x\frac{d}{dx}\cot x = -\operatorname{cosec}^2 x⁠. Lesson: integration by substitution
  3. Check: differentiate FF back

    On our interval cosec⁡x−cot⁡x=1−cos⁡xsin⁡x>0\operatorname{cosec}x - \cot x = \frac{1 - \cos x}{\sin x} > 0⁠, so F(x)=log⁡(cosec⁡x−cot⁡x)F(x) = \log(\operatorname{cosec}x - \cot x) and, by the chain rule,

    F′(x)=−cosec⁡xcot⁡x+cosec⁡2xcosec⁡x−cot⁡x=cosec⁡x(cosec⁡x−cot⁡x)cosec⁡x−cot⁡x=cosec⁡x.\begin{aligned}F'(x) &= \frac{-\operatorname{cosec}x\cot x + \operatorname{cosec}^2 x}{\operatorname{cosec}x - \cot x} \\ &= \frac{\operatorname{cosec}x\left(\operatorname{cosec}x - \cot x\right)}{\operatorname{cosec}x - \cot x} = \operatorname{cosec}x.\end{aligned}
    Factor cosec⁡x\operatorname{cosec}x out of the numerator; the bracket cancels with the denominator, leaving exactly the integrand.
    ddxlog⁡u=u′u\frac{d}{dx}\log u = \frac{u'}{u} for u>0u > 0⁠. Basics: the chain rule
  4. Values at the two limits

    At x=π4x = \frac{\pi}{4}⁠: cosec⁡π4=2\operatorname{cosec}\frac{\pi}{4} = \sqrt2 and cot⁡π4=1\cot\frac{\pi}{4} = 1⁠, so

    F(π4)=log⁡(2−1).F\left(\tfrac{\pi}{4}\right) = \log\left(\sqrt2 - 1\right).

    At x=π6x = \frac{\pi}{6}⁠: cosec⁡π6=11/2=2\operatorname{cosec}\frac{\pi}{6} = \frac{1}{1/2} = 2 and cot⁡π6=3/21/2=3\cot\frac{\pi}{6} = \frac{\sqrt3/2}{1/2} = \sqrt3⁠, so

    F(π6)=log⁡(2−3).F\left(\tfrac{\pi}{6}\right) = \log\left(2 - \sqrt3\right).
    Both 2−1≈0.414\sqrt2 - 1 \approx 0.414 and 2−3≈0.2682 - \sqrt3 \approx 0.268 are positive, so the bars are not needed. Both logarithms are negative (their arguments are less than 1); that is fine, only their difference matters.
    cosec⁡=1sin⁡\operatorname{cosec} = \frac{1}{\sin}⁠, cot⁡=cos⁡sin⁡\cot = \frac{\cos}{\sin}⁠. Basics: trigonometric values
  5. Subtract: upper minus lower

    ∫π6π4cosec⁡x dx=log⁡(2−1)−log⁡(2−3)=log⁡2−12−3.\begin{aligned}\int_{\frac{\pi}{6}}^{\frac{\pi}{4}}\operatorname{cosec}x\,dx &= \log\left(\sqrt2 - 1\right) - \log\left(2 - \sqrt3\right) \\ &= \log\frac{\sqrt2 - 1}{2 - \sqrt3}.\end{aligned}

    In decimals: log⁡(2−1)≈−0.8813736\log(\sqrt2 - 1) \approx -0.8813736 and log⁡(2−3)≈−1.3169579\log(2 - \sqrt3) \approx -1.3169579⁠, so the integral is

    −0.8813736−(−1.3169579)≈0.4355843.-0.8813736 - (-1.3169579) \approx 0.4355843.
    log⁡a−log⁡b=log⁡ab\log a - \log b = \log\frac{a}{b} gives the book's form. Multiplying top and bottom by 2+32 + \sqrt3 (and using (2−3)(2+3)=1(2 - \sqrt3)(2 + \sqrt3) = 1⁠) gives an equivalent form: 2−12−3\frac{\sqrt2 - 1}{2 - \sqrt3} equals (2−1)(2+3)≈1.5458661(\sqrt2 - 1)(2 + \sqrt3) \approx 1.5458661⁠, and log⁡1.5458661≈0.4355843\log 1.5458661 \approx 0.4355843⁠.
    Laws of logarithms. Basics: logarithms
  6. Cross-check with tan⁡x2\tan\frac{x}{2} and the graph

    By the half-angle formulas,

    cosec⁡x−cot⁡x=1−cos⁡xsin⁡x=2sin⁡2x22sin⁡x2cos⁡x2=tan⁡x2.\begin{aligned}\operatorname{cosec}x - \cot x &= \frac{1 - \cos x}{\sin x} \\ &= \frac{2\sin^2\frac{x}{2}}{2\sin\frac{x}{2}\cos\frac{x}{2}} = \tan\frac{x}{2}.\end{aligned}

    So F(x)=log⁡tan⁡x2F(x) = \log\tan\frac{x}{2}⁠, and the two values above are tan⁡π8=2−1\tan\frac{\pi}{8} = \sqrt2 - 1 and tan⁡π12=2−3\tan\frac{\pi}{12} = 2 - \sqrt3⁠, as expected.

    Size: cosec⁡x\operatorname{cosec}x falls from 2 to 2\sqrt2 over a base of width π4−π6=π12\frac{\pi}{4} - \frac{\pi}{6} = \frac{\pi}{12}⁠, so

    2⋅π12≈0.370<0.436<2⋅π12≈0.524.\sqrt2\cdot\frac{\pi}{12} \approx 0.370 < 0.436 < 2\cdot\frac{\pi}{12} \approx 0.524.
    π/6 π/4 π/2 1 2 3 x y (π/6, 2) (π/4, √2) y = cosec x area ≈ 0.436
    The shaded region under y=cosec⁡xy = \operatorname{cosec}x from π6\frac{\pi}{6} to π4\frac{\pi}{4} has area log⁡2−12−3≈0.436\log\frac{\sqrt2 - 1}{2 - \sqrt3} \approx 0.436⁠. The curve falls from 2 to 2\sqrt2 there; its lowest point, 1, is at π2\frac{\pi}{2}⁠.
    Two independent facts (the well-known values of tan⁡π8\tan\frac{\pi}{8} and tan⁡π12\tan\frac{\pi}{12}⁠, and the rectangle bounds) agree with the answer.
    1−cos⁡x=2sin⁡2x21 - \cos x = 2\sin^2\frac{x}{2}⁠, sin⁡x=2sin⁡x2cos⁡x2\sin x = 2\sin\frac{x}{2}\cos\frac{x}{2}⁠. Basics: trigonometric identities
Result ∫π6π4cosec⁡x dx=log⁡2−12−3≈0.4355843.\int_{\frac{\pi}{6}}^{\frac{\pi}{4}}\operatorname{cosec}x\,dx = \log\frac{\sqrt2 - 1}{2 - \sqrt3} \approx 0.4355843.

(Textbook answer: log⁡(2−12−3)\log\left(\frac{\sqrt2 - 1}{2 - \sqrt3}\right)⁠, the same.)

Check it with numbers

Numerical integration of 1sin⁡x\frac{1}{\sin x} from π6≈0.5235988\frac{\pi}{6} \approx 0.5235988 to π4≈0.7853982\frac{\pi}{4} \approx 0.7853982 (thin strips, no antiderivative used) gives 0.43558430.4355843⁠, matching log⁡1.5458661≈0.4355843\log 1.5458661 \approx 0.4355843⁠.

Common mistakes
  1. Writing ∫cosec⁡x dx=−cot⁡x\int\operatorname{cosec}x\,dx = -\cot x⁠. That is ∫cosec⁡2x dx\int\operatorname{cosec}^2 x\,dx⁠. The integral of cosec⁡x\operatorname{cosec}x itself is a logarithm.
  2. Swapping the order. log⁡∣cosec⁡x−cot⁡x∣\log|\operatorname{cosec}x - \cot x| is right; log⁡∣cot⁡x−cosec⁡x∣\log|\cot x - \operatorname{cosec}x| is the same thing because of the bars, but log⁡(cot⁡x−cosec⁡x)\log(\cot x - \operatorname{cosec}x) without bars is undefined here.
  3. Upper minus lower reversed. The answer must be positive, because cosec⁡x>0\operatorname{cosec}x > 0 on the interval. Getting log⁡2−32−1<0\log\frac{2 - \sqrt3}{\sqrt2 - 1} < 0 means the subtraction was reversed.
What to take away
  1. ∫cosec⁡x dx\int\operatorname{cosec}x\,dx is log⁡∣cosec⁡x−cot⁡x∣+C\log|\operatorname{cosec}x - \cot x| + C⁠, which equals log⁡∣tan⁡x2∣+C\log\left|\tan\frac{x}{2}\right| + C⁠.
  2. Check that sin⁡x≠0\sin x \ne 0 on the whole interval before using Theorem 2.
  3. Logarithms of numbers less than 1 are negative; the difference can still be positive.

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, 5Theorem 2, Section 7.8.3 (Lesson)
Quotient of continuous functions is continuousStep 1Chapter 5, Theorem 1, Section 5.2.1
∫cosec⁡x dx=log⁡∣cosec⁡x−cot⁡x∣+C\int\operatorname{cosec}x\,dx = \log|\operatorname{cosec}x - \cot x| + CStep 2Section 7.3.1, result (iv) (Lesson)
cosec⁡2x−cot⁡2x=1\operatorname{cosec}^2 x - \cot^2 x = 1Step 2Trigonometric identities (Basics)
Derivatives of cosec⁡\operatorname{cosec}⁠, cot⁡\cot⁠, log⁡\logSteps 2, 3Chapter 5, Sections 5.3.1 and 5.4 (Basics)
Exact values at π6\frac{\pi}{6}⁠, π4\frac{\pi}{4}Step 4Trigonometric values (Basics)
Half-angle formulasStep 6Trigonometric identities (Basics)
Definite integral as areaStep 6Section 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 →