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

Exercise 7.10 · Q10: ∫0π/2(2log⁡sin⁡x−log⁡sin⁡2x) dx\int_0^{\pi/2}(2\log\sin x-\log\sin 2x)\,dx

Exercise 7.10Properties of definite integrals (P4, P6) · Section 7.10
The question

By using the properties of definite integrals, evaluate the integrals in Exercises 1 to 19.

10. ∫0π2(2log⁡sin⁡x−log⁡sin⁡2x) dx\displaystyle\int_0^{\frac{\pi}{2}}(2\log\sin x - \log\sin 2x)\,dx

Exam answer Let I=∫0π2(2log⁡sin⁡x−log⁡sin⁡2x)dx\begin{aligned} \text{Let } I &= \int_0^{\frac{\pi}{2}}\bigg(2\log\sin x \\ &\qquad - \log\sin 2x\bigg)dx \end{aligned}

Since sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠,

log⁡sin⁡2x=log⁡2+log⁡sin⁡x+log⁡cos⁡x\begin{aligned} \log\sin 2x &= \log 2 + \log\sin x \\ &\quad + \log\cos x \end{aligned} ∴ I=∫0π2log⁡sin⁡x dx−∫0π2log⁡cos⁡x dx−π2log⁡2\begin{aligned} \therefore\ I &= \int_0^{\frac{\pi}{2}}\log\sin x\,dx \\ &\quad - \int_0^{\frac{\pi}{2}}\log\cos x\,dx - \frac{\pi}{2}\log 2 \end{aligned}

Using ∫0af(x) dx=∫0af(a−x) dx\displaystyle\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx⁠,

∫0π2log⁡sin⁡x dx=∫0π2log⁡sin⁡(π2−x)dx=∫0π2log⁡cos⁡x dx\begin{aligned} &\int_0^{\frac{\pi}{2}}\log\sin x\,dx \\ &= \int_0^{\frac{\pi}{2}}\log\sin\left(\frac{\pi}{2} - x\right)dx \\ &= \int_0^{\frac{\pi}{2}}\log\cos x\,dx \end{aligned}

So the first two integrals cancel.

∴ I=−π2log⁡2\therefore\ I = -\dfrac{\pi}{2}\log 2⁠.

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

The one idea this problem is built on

Use sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x to break log⁡sin⁡2x\log\sin 2x into log⁡2+log⁡sin⁡x+log⁡cos⁡x\log 2 + \log\sin x + \log\cos x⁠. The integrand becomes log⁡sin⁡x−log⁡cos⁡x−log⁡2\log\sin x - \log\cos x - \log 2⁠. Property P4 on [0,π2]\left[0, \frac{\pi}{2}\right] swaps sin⁡\sin and cos⁡\cos⁠, so log⁡sin⁡x\log\sin x and log⁡cos⁡x\log\cos x have the same integral and cancel. Only the constant −log⁡2-\log 2 survives.

Given, to find, and the plan
Given
II⁠, the integral of 2log⁡sin⁡x−log⁡sin⁡2x2\log\sin x - \log\sin 2x over [0,π2]\left[0, \frac{\pi}{2}\right]⁠, with log⁡\log the natural logarithm.
To find
The exact value of II⁠, and its decimal value.
Plan
Note where the integrand is defined (the endpoints are a problem); simplify it with the double-angle formula; show the pieces have finite integrals; use P4 to cancel log⁡sin⁡x\log\sin x against log⁡cos⁡x\log\cos x⁠; integrate the constant. Confirm by a second route through Example 34 and P6.

Basics you need

1Laws of logarithms

For p,q>0p, q > 0⁠: log⁡(pq)=log⁡p+log⁡q\log(pq) = \log p + \log q⁠. Only positive numbers have logarithms. Basics: logarithms

2Double angle

sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠, and sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2} - x\right) = \cos x⁠. Basics: trigonometric identities

3Properties P4 and P6 (Section 7.10)

P4: ∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx⁠. P6: ∫02af(x) dx=2∫0af(x) dx\int_0^{2a} f(x)\,dx = 2\int_0^a f(x)\,dx if f(2a−x)=f(x)f(2a - x) = f(x)⁠. Lesson: properties of definite integrals

4Example 34

∫0π/2log⁡sin⁡x dx=−π2log⁡2\int_0^{\pi/2}\log\sin x\,dx = -\frac{\pi}{2}\log 2⁠, and this integral is finite even though log⁡sin⁡x→−∞\log\sin x \to -\infty as x→0+x \to 0^+⁠. Example 34

Solution

  1. Where the integrand is defined

    For 0<x<π20 < x < \frac{\pi}{2}⁠: sin⁡x>0\sin x > 0 and 0<2x<π0 < 2x < \pi⁠, so sin⁡2x>0\sin 2x > 0⁠. Both logarithms are defined and the integrand is continuous on the open interval. At the ends, sin⁡0=0\sin 0 = 0 and sin⁡(2⋅π2)=sin⁡π=0\sin\left(2\cdot\frac{\pi}{2}\right) = \sin\pi = 0⁠, whose logarithms do not exist.

    So, strictly, this is an improper integral at both ends: it means the limit of the integral over [ε,π2−δ][\varepsilon, \frac{\pi}{2} - \delta] as ε,δ→0+\varepsilon, \delta \to 0^+⁠. The book does not raise the point, but we need the integral to be a finite number before calculating with it. Step 3 settles this.
    sin⁡θ>0\sin\theta > 0 for 0<θ<π0 < \theta < \pi⁠. Basics: trigonometric identities
  2. Simplify the integrand

    For 0<x<π20 < x < \frac{\pi}{2}⁠, all of 2, sin⁡x\sin x⁠, cos⁡x\cos x are positive, so

    log⁡sin⁡2x=log⁡(2sin⁡xcos⁡x)=log⁡2+log⁡sin⁡x+log⁡cos⁡x.\begin{aligned}\log\sin 2x &= \log(2\sin x\cos x) \\ &= \log 2 + \log\sin x + \log\cos x .\end{aligned}

    Hence

    2log⁡sin⁡x−log⁡sin⁡2x=log⁡sin⁡x−log⁡cos⁡x−log⁡2.\begin{aligned}&2\log\sin x - \log\sin 2x \\ &= \log\sin x - \log\cos x - \log 2 .\end{aligned}
    The product law of logarithms needs every factor positive, which holds on the open interval. One of the two copies of log⁡sin⁡x\log\sin x is cancelled by the log⁡sin⁡x\log\sin x inside log⁡sin⁡2x\log\sin 2x⁠.
    log⁡(pq)=log⁡p+log⁡q\log(pq) = \log p + \log q for p,q>0p, q > 0⁠, used twice; sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠. Basics: logarithms
  3. Each piece has a finite integral

    Our worked solution of Example 34 (its Step 1; the book's own solution does not discuss this point) shows that log⁡sin⁡x≤0\log\sin x \le 0 on (0,π2]\left(0, \frac{\pi}{2}\right] and that ∫0π/2log⁡sin⁡x dx\int_0^{\pi/2}\log\sin x\,dx is finite. The same holds for log⁡cos⁡x\log\cos x (Step 4 shows its integral is the same number). So we may split:

    I=∫0π2log⁡sin⁡x dx−∫0π2log⁡cos⁡x dx−∫0π2log⁡2 dx.\begin{aligned}I &= \int_0^{\frac{\pi}{2}}\log\sin x\,dx - \int_0^{\frac{\pi}{2}}\log\cos x\,dx \\ &\quad - \int_0^{\frac{\pi}{2}}\log 2\,dx .\end{aligned}
    Splitting an integral into a difference of integrals is only safe when each part is a finite number; "∞−∞\infty - \infty" would mean nothing. That step squeezes log⁡sin⁡x\log\sin x between log⁡2xπ\log\frac{2x}{\pi} (whose integral over [0,π2]\left[0, \frac{\pi}{2}\right] is −π2-\frac{\pi}{2}⁠) and 0.
    Linearity: ∫(f−g−h)=∫f−∫g−∫h\int(f - g - h) = \int f - \int g - \int h when all three are finite. Example 34
  4. P4: the log⁡sin⁡\log\sin and log⁡cos⁡\log\cos integrals are equal

    Take f(x)=log⁡sin⁡xf(x) = \log\sin x and a=π2a = \frac{\pi}{2}⁠. Then

    f(π2−x)=log⁡sin⁡(π2−x)=log⁡cos⁡x,f\left(\tfrac{\pi}{2} - x\right) = \log\sin\left(\tfrac{\pi}{2} - x\right) = \log\cos x ,

    so P4 gives

    ∫0π2log⁡sin⁡x dx=∫0π2log⁡cos⁡x dx.\int_0^{\frac{\pi}{2}}\log\sin x\,dx = \int_0^{\frac{\pi}{2}}\log\cos x\,dx .

    The first two integrals in Step 3 cancel.

    P4 is proved by the substitution t=π2−xt = \frac{\pi}{2} - x⁠. Here we apply it on [ε,π2]\left[\varepsilon, \frac{\pi}{2}\right]⁠, where log⁡sin⁡x\log\sin x is continuous: it gives ∫επ/2log⁡sin⁡x dx=∫0π/2−εlog⁡cos⁡x dx\int_\varepsilon^{\pi/2}\log\sin x\,dx = \int_0^{\pi/2 - \varepsilon}\log\cos x\,dx⁠. Letting ε→0+\varepsilon \to 0^+ gives the equality of the two finite integrals. In pictures, log⁡cos⁡x\log\cos x is the mirror image of log⁡sin⁡x\log\sin x in x=π4x = \frac{\pi}{4}⁠.
    P4, Section 7.10; sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2} - x\right) = \cos x⁠. Lesson: properties of definite integrals
  5. Integrate the constant

    I=0−log⁡2⋅π2=−π2log⁡2≈−1.0887930.I = 0 - \log 2\cdot\frac{\pi}{2} = -\frac{\pi}{2}\log 2 \approx -1.0887930 .

    The book writes this as π2log⁡12\frac{\pi}{2}\log\frac12⁠. They are equal, because log⁡12=log⁡1−log⁡2=−log⁡2\log\frac12 = \log 1 - \log 2 = -\log 2⁠.

    The constant log⁡2\log 2 integrates to log⁡2\log 2 times the interval length π2\frac{\pi}{2}⁠. The answer is negative because the integrand, log⁡tan⁡x2\log\frac{\tan x}{2}⁠, is below the axis on most of the interval (it is negative wherever tan⁡x<2\tan x < 2⁠).
    ∫abk dx=k(b−a)\int_a^b k\,dx = k(b - a)⁠; log⁡pq=log⁡p−log⁡q\log\frac{p}{q} = \log p - \log q⁠, log⁡1=0\log 1 = 0⁠. Basics: logarithms
  6. The picture: the cancellation in Step 4

    The two cancelling terms combine into log⁡sin⁡x−log⁡cos⁡x=log⁡tan⁡x\log\sin x - \log\cos x = \log\tan x⁠. Replacing xx by π2−x\frac{\pi}{2} - x gives log⁡cot⁡x=−log⁡tan⁡x\log\cot x = -\log\tan x⁠, so the graph of log⁡tan⁡x\log\tan x is unchanged by a half turn about (π4,0)\left(\frac{\pi}{4}, 0\right)⁠, the way an odd function behaves about the origin.

    x y π/4 π/2 2 −2 centre (π/4, 0) +A −A y = log tan x
    y=log⁡tan⁡xy = \log\tan x on (0,π2)\left(0, \frac{\pi}{2}\right) (drawn between y=−3y = -3 and y=3y = 3⁠; it tends to −∞-\infty at 0 and to +∞+\infty at π2\frac{\pi}{2}⁠). The rose region below the axis on (0,π4)\left(0, \frac{\pi}{4}\right) is a half-turn copy of the green region above the axis on (π4,π2)\left(\frac{\pi}{4}, \frac{\pi}{2}\right)⁠: they count as −A-A and +A+A and cancel. The actual integrand is this curve lowered by log⁡2\log 2⁠, so I=0−π2log⁡2I = 0 - \frac{\pi}{2}\log 2⁠.
    This is the same cancellation as P7(ii) for odd functions, centred at x=π4x = \frac{\pi}{4} instead of 0. The equation K=−KK = -K⁠, with K=∫0π/2log⁡tan⁡x dxK = \int_0^{\pi/2}\log\tan x\,dx⁠, forces K=0K = 0⁠.
    tan⁡(π2−x)=cot⁡x=1tan⁡x\tan\left(\frac{\pi}{2} - x\right) = \cot x = \frac{1}{\tan x}⁠, and log⁡1u=−log⁡u\log\frac1u = -\log u⁠. Basics: symmetry and mirror images
  7. A second route: Example 34 and P6

    Let J=∫0π/2log⁡sin⁡x dx=−π2log⁡2J = \int_0^{\pi/2}\log\sin x\,dx = -\frac{\pi}{2}\log 2 (Example 34). For log⁡sin⁡2x\log\sin 2x⁠, put t=2xt = 2x⁠, dx=12 dtdx = \frac12\,dt⁠, limits 00 to π\pi⁠:

    ∫0π2log⁡sin⁡2x dx=12∫0πlog⁡sin⁡t dt=12⋅2J=J,\begin{aligned}\int_0^{\frac{\pi}{2}}\log\sin 2x\,dx &= \frac12\int_0^{\pi}\log\sin t\,dt \\ &= \frac12\cdot 2J = J ,\end{aligned}

    by P6 with 2a=π2a = \pi⁠, since log⁡sin⁡(π−t)=log⁡sin⁡t\log\sin(\pi - t) = \log\sin t⁠. So

    I=2J−J=J=−π2log⁡2.I = 2J - J = J = -\frac{\pi}{2}\log 2 .
    Two independent routes agree. The P6 condition f(2a−t)=f(t)f(2a - t) = f(t) holds because sin⁡(π−t)=sin⁡t\sin(\pi - t) = \sin t⁠: the graph of log⁡sin⁡t\log\sin t on [0,π][0, \pi] is symmetric about t=π2t = \frac{\pi}{2}⁠.
    Substitution in a definite integral (Section 7.9); P6, Section 7.10; Example 34.
Result

∫0π2(2log⁡sin⁡x−log⁡sin⁡2x) dx=−π2log⁡2≈−1.0887930\begin{aligned}&\int_0^{\frac{\pi}{2}}(2\log\sin x - \log\sin 2x)\,dx \\ &= -\frac{\pi}{2}\log 2 \approx -1.0887930\end{aligned} (an improper but convergent integral). (Textbook answer: π2log⁡12\frac{\pi}{2}\log\frac12⁠, which is the same number since log⁡12=−log⁡2\log\frac12 = -\log 2⁠.)

Check it with numbers

Adaptive numerical integration, which copes with the logarithmic endpoints, gives −1.0887930-1.0887930 for the original integrand, and −π2log⁡2≈−1.0887930-\frac{\pi}{2}\log 2 \approx -1.0887930⁠. It gives 0.00000000.0000000 for ∫0π/2log⁡tan⁡x dx\int_0^{\pi/2}\log\tan x\,dx (Step 6) and −1.0887930-1.0887930 for each of ∫0π/2log⁡sin⁡x dx\int_0^{\pi/2}\log\sin x\,dx and ∫0π/2log⁡cos⁡x dx\int_0^{\pi/2}\log\cos x\,dx (Step 4). At x=0.5x = 0.5 the integrand is 2log⁡sin⁡0.5−log⁡sin⁡12\log\sin 0.5 - \log\sin 1⁠, about −1.2977296-1.2977296⁠, and log⁡tan⁡0.52≈−1.2977296\log\frac{\tan 0.5}{2} \approx -1.2977296 as Step 2 says.

Common mistakes
  1. Writing log⁡sin⁡2x=2log⁡sin⁡x\log\sin 2x = 2\log\sin x⁠. sin⁡2x\sin 2x is not (sin⁡x)2(\sin x)^2⁠; it is 2sin⁡xcos⁡x2\sin x\cos x⁠.
  2. Splitting the integral before knowing each part is finite. Each part here does converge (Step 3), but that has to be checked.
  3. Thinking the answer differs from the book's. π2log⁡12\frac{\pi}{2}\log\frac12 and −π2log⁡2-\frac{\pi}{2}\log 2 are the same number.
What to take away
  1. ∫0π/2log⁡sin⁡x dx=∫0π/2log⁡cos⁡x dx\int_0^{\pi/2}\log\sin x\,dx = \int_0^{\pi/2}\log\cos x\,dx by P4; so ∫0π/2log⁡tan⁡x dx=0\int_0^{\pi/2}\log\tan x\,dx = 0⁠.
  2. Simplify a logarithmic integrand with the log laws (after checking positivity) before integrating.
  3. When an integrand blows up at an endpoint, check that the integral is finite before doing algebra with it.

Every fact used, and where it comes from

FactUsed inSource
sin⁡θ>0\sin\theta > 0 for 0<θ<π0 < \theta < \piStep 1Trigonometry (Basics)
sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos xSteps 2 and 7Double-angle formula (Basics)
log⁡(pq)=log⁡p+log⁡q\log(pq) = \log p + \log q⁠, p,q>0p, q > 0Step 2Logarithms (Basics)
∫0π/2log⁡sin⁡x dx=−π2log⁡2\int_0^{\pi/2}\log\sin x\,dx = -\frac{\pi}{2}\log 2⁠, finiteSteps 3 and 7Example 34, Section 7.10
P4: ∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dxStep 4Section 7.10 (Lesson)
∫abk dx=k(b−a)\int_a^b k\,dx = k(b - a)Step 5Theorem 2, Section 7.8.3 (Lesson)
tan⁡(π2−x)=cot⁡x\tan\left(\frac{\pi}{2} - x\right) = \cot xStep 6Trigonometry (Basics)
Substitution in a definite integralStep 7Section 7.9 (Lesson)
P6, with sin⁡(π−t)=sin⁡t\sin(\pi - t) = \sin tStep 7Section 7.10
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 →