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

Miscellaneous · Q27: ∫π/6π/3sin⁡x+cos⁡xsin⁡2x dx\int_{\pi/6}^{\pi/3}\frac{\sin x+\cos x}{\sqrt{\sin 2x}}\,dx

Miscellaneous ExerciseDefinite integrals by substitution · Miscellaneous Exercise
The question

Evaluate the definite integral

∫π/6π/3sin⁡x+cos⁡xsin⁡2x dx\int_{\pi/6}^{\pi/3} \frac{\sin x + \cos x}{\sqrt{\sin 2x}}\,dx
Exam answer

Let I=∫π/6π/3sin⁡x+cos⁡xsin⁡2x dxI = \displaystyle\int_{\pi/6}^{\pi/3}\frac{\sin x + \cos x}{\sqrt{\sin 2x}}\,dx⁠.

Put sin⁡x−cos⁡x=t\sin x - \cos x = t⁠. Then (cos⁡x+sin⁡x) dx=dt(\cos x + \sin x)\,dx = dt⁠.

t2=sin⁡2x+cos⁡2x−2sin⁡xcos⁡x=1−sin⁡2x\begin{aligned} t^2 &= \sin^2 x + \cos^2 x \\ &\quad - 2\sin x\cos x \\ &= 1 - \sin 2x \end{aligned}

So sin⁡2x=1−t2\sin 2x = 1 - t^2⁠.

When x=π6x = \frac{\pi}{6}⁠, t=1−32t = \frac{1 - \sqrt3}{2}⁠; when x=π3x = \frac{\pi}{3}⁠, t=3−12t = \frac{\sqrt3 - 1}{2}⁠.

Using ∫dt1−t2=sin⁡−1t+C\displaystyle\int\frac{dt}{\sqrt{1 - t^2}} = \sin^{-1}t + C⁠,

I=∫(1−3)/2(3−1)/2dt1−t2=[sin⁡−1t](1−3)/2(3−1)/2=sin⁡−13−12−sin⁡−11−32\begin{aligned} I &= \int_{(1 - \sqrt3)/2}^{(\sqrt3 - 1)/2}\frac{dt}{\sqrt{1 - t^2}} \\ &= \Big[\sin^{-1}t\Big]_{(1 - \sqrt3)/2}^{(\sqrt3 - 1)/2} \\ &= \sin^{-1}\frac{\sqrt3 - 1}{2} \\ &\quad - \sin^{-1}\frac{1 - \sqrt3}{2} \end{aligned}

Using sin⁡−1(−y)=−sin⁡−1y\sin^{-1}(-y) = -\sin^{-1}y⁠,

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

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

The one idea this problem is built on

The numerator sin⁡x+cos⁡x\sin x + \cos x is exactly the derivative of sin⁡x−cos⁡x\sin x - \cos x⁠. And squaring sin⁡x−cos⁡x\sin x - \cos x produces 1−sin⁡2x1 - \sin 2x⁠. So the single substitution t=sin⁡x−cos⁡xt = \sin x - \cos x does two jobs at once: the numerator with dxdx becomes dtdt⁠, and sin⁡2x\sin 2x becomes 1−t21 - t^2⁠. The integral turns into the standard ∫dt1−t2=sin⁡−1t\int \frac{dt}{\sqrt{1-t^2}} = \sin^{-1} t⁠.

Given, to find, and the plan
Given
I=∫π/6π/3sin⁡x+cos⁡xsin⁡2x dxI = \displaystyle\int_{\pi/6}^{\pi/3} \frac{\sin x + \cos x}{\sqrt{\sin 2x}}\,dx⁠.
To find
The exact value of II⁠, and a decimal.
Plan
(1) Check the integrand is continuous on [π6,π3][\frac{\pi}{6}, \frac{\pi}{3}]⁠. (2) Choose the substitution and explain why it fits. (3) Express sin⁡2x\sin 2x in terms of tt⁠. (4) Change the limits. (5) Integrate with standard formula (viii). (6) Check the antiderivative by differentiating. (7) Give the value and a decimal.

Basics you need

1Double angle and Pythagoras

sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 and sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠. Together they give (sin⁡x−cos⁡x)2=1−sin⁡2x(\sin x - \cos x)^2 = 1 - \sin 2x⁠. Basics: trigonometric identities

2Substitution in a definite integral (Section 7.9)

Put t=g(x)t = g(x)⁠, write dt=g′(x) dxdt = g'(x)\,dx⁠, and replace the limits by g(a)g(a) and g(b)g(b)⁠. Then there is no need to go back to xx⁠. Basics: substitution (the chain rule backwards)

3Standard formula (viii), Section 7.2

∫dt1−t2=sin⁡−1t+C\displaystyle\int\frac{dt}{\sqrt{1-t^2}} = \sin^{-1} t + C for −1<t<1-1 < t < 1⁠, because ddtsin⁡−1t=11−t2\frac{d}{dt}\sin^{-1} t = \frac{1}{\sqrt{1-t^2}}⁠. Basics: integration undoes differentiation

4sin⁡−1\sin^{-1} is an odd function

sin⁡−1(−k)=−sin⁡−1k\sin^{-1}(-k) = -\sin^{-1} k for −1≤k≤1-1 \le k \le 1⁠, because sin⁡(−θ)=−sin⁡θ\sin(-\theta) = -\sin\theta and −θ-\theta stays in the principal range [−π2,π2][-\frac{\pi}{2}, \frac{\pi}{2}]⁠. Basics: symmetry and mirror images

Solution

  1. The integrand is continuous on [π6,π3][\frac{\pi}{6}, \frac{\pi}{3}]

    For π6≤x≤π3\frac{\pi}{6} \le x \le \frac{\pi}{3} we have π3≤2x≤2π3\frac{\pi}{3} \le 2x \le \frac{2\pi}{3}⁠, so

    32≤sin⁡2x≤1.\frac{\sqrt3}{2} \le \sin 2x \le 1 .

    So sin⁡2x\sin 2x is positive, its square root is defined and at least 3/2≈0.9306\sqrt{\sqrt3/2} \approx 0.9306⁠, and the denominator is never zero. The numerator is continuous, so the whole integrand is continuous on the closed interval.

    Theorem 2 of Section 7.8.3 (the second fundamental theorem) needs a function continuous on [a,b][a, b]⁠; Remark (iv) after it warns that the integrand must be well defined there. A square root of sin⁡2x\sin 2x would fail wherever sin⁡2x<0\sin 2x < 0⁠, and the fraction would blow up where sin⁡2x=0\sin 2x = 0⁠. Neither happens here.
    On [π3,2π3][\frac{\pi}{3}, \frac{2\pi}{3}] the sine is smallest at the ends, where it equals 32\frac{\sqrt3}{2}⁠. Lesson: definite integrals and the fundamental theorem
  2. Choose the substitution t=sin⁡x−cos⁡xt = \sin x - \cos x

    Differentiate the candidate:

    ddx(sin⁡x−cos⁡x)=cos⁡x+sin⁡x.\frac{d}{dx}(\sin x - \cos x) = \cos x + \sin x .

    So with t=sin⁡x−cos⁡xt = \sin x - \cos x⁠,

    dt=(sin⁡x+cos⁡x) dx,dt = (\sin x + \cos x)\,dx ,

    which is exactly the numerator times dxdx⁠.

    Substitution works when the integrand contains a function together with its derivative. The derivative of sin⁡x−cos⁡x\sin x - \cos x is sin⁡x+cos⁡x\sin x + \cos x⁠, the numerator. The other natural guess, t=sin⁡x+cos⁡xt = \sin x + \cos x⁠, has derivative cos⁡x−sin⁡x\cos x - \sin x⁠, which is not in the integrand, so it would not simplify anything.
    ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠, ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠. Basics: substitution
  3. Write sin⁡2x\sin 2x in terms of tt

    Square tt and use the two identities:

    t2=sin⁡2x−2sin⁡xcos⁡x+cos⁡2x=1−sin⁡2x.\begin{aligned} t^2 &= \sin^2 x - 2\sin x\cos x + \cos^2 x \\ &= 1 - \sin 2x . \end{aligned}

    Hence sin⁡2x=1−t2\sin 2x = 1 - t^2 and sin⁡2x=1−t2\sqrt{\sin 2x} = \sqrt{1 - t^2}⁠.

    This is the second job of the same substitution. The cross term −2sin⁡xcos⁡x-2\sin x\cos x in the square is −sin⁡2x-\sin 2x⁠, and the squares add up to 1. Because sin⁡2x>0\sin 2x > 0 on our interval (Step 1), 1−t2>01 - t^2 > 0 as well, so the square root is the ordinary positive root.
    (p−q)2=p2−2pq+q2(p - q)^2 = p^2 - 2pq + q^2⁠; sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1⁠; 2sin⁡xcos⁡x=sin⁡2x2\sin x\cos x = \sin 2x⁠. Basics: trigonometric identities
  4. Change the limits

    At x=π6x = \frac{\pi}{6}⁠: t=12−32=−3−12t = \frac12 - \frac{\sqrt3}{2} = -\frac{\sqrt3 - 1}{2}⁠.

    At x=π3x = \frac{\pi}{3}⁠: t=32−12=3−12t = \frac{\sqrt3}{2} - \frac12 = \frac{\sqrt3 - 1}{2}⁠.

    Write k=3−12≈0.366025k = \frac{\sqrt3 - 1}{2} \approx 0.366025⁠. Then

    I=∫−kkdt1−t2.I = \int_{-k}^{k} \frac{dt}{\sqrt{1 - t^2}} .
    The substitution is valid on the whole interval: t=sin⁡x−cos⁡xt = \sin x - \cos x is differentiable, and dtdx=sin⁡x+cos⁡x>0\frac{dt}{dx} = \sin x + \cos x > 0 there (both terms are positive in the first quadrant), so tt increases steadily from −k-k to kk without turning back. Every tt in [−k,k][-k, k] has ∣t∣≤0.37<1|t| \le 0.37 < 1⁠, so 11−t2\frac{1}{\sqrt{1-t^2}} is continuous on the new interval too.
    sin⁡π6=cos⁡π3=12\sin\frac{\pi}{6} = \cos\frac{\pi}{3} = \frac12⁠, cos⁡π6=sin⁡π3=32\cos\frac{\pi}{6} = \sin\frac{\pi}{3} = \frac{\sqrt3}{2}⁠. Lesson: integration by substitution
  5. Integrate with standard formula (viii)

    I=[sin⁡−1t]−kk=sin⁡−1k−sin⁡−1(−k)=2sin⁡−1k.\begin{aligned} I &= \Big[\sin^{-1} t\Big]_{-k}^{k} \\ &= \sin^{-1} k - \sin^{-1}(-k) \\ &= 2\sin^{-1} k . \end{aligned}

    So

    I=2sin⁡−1(3−12).I = 2\sin^{-1}\left(\frac{\sqrt3 - 1}{2}\right).
    The last line uses that sin⁡−1\sin^{-1} is odd (Basic 4). Another way to see the factor 2: 11−t2\frac{1}{\sqrt{1-t^2}} is an even function of tt⁠, so P7 (i) of Section 7.10 gives ∫−kk=2∫0k\int_{-k}^{k} = 2\int_0^{k}⁠, which is again 2sin⁡−1k2\sin^{-1} k⁠. The value 3−12\frac{\sqrt3 - 1}{2} is not the sine of any standard angle, so the answer stays in this form.
    Theorem 2, Section 7.8.3: ∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a) for an antiderivative FF⁠. P7 (i): ∫−aaf=2∫0af\int_{-a}^{a} f = 2\int_0^a f for even ff⁠. Lesson: properties of definite integrals
  6. Check: differentiate the antiderivative in xx

    Going back to xx⁠, the antiderivative is F(x)=sin⁡−1(sin⁡x−cos⁡x)F(x) = \sin^{-1}(\sin x - \cos x)⁠. By the chain rule (outer sin⁡−1\sin^{-1}⁠, inner sin⁡x−cos⁡x\sin x - \cos x⁠):

    F′(x)=cos⁡x+sin⁡x1−(sin⁡x−cos⁡x)2=sin⁡x+cos⁡xsin⁡2x.\begin{aligned} F'(x) &= \frac{\cos x + \sin x}{\sqrt{1 - (\sin x - \cos x)^2}} \\ &= \frac{\sin x + \cos x}{\sqrt{\sin 2x}} . \end{aligned}

    This is the integrand ✓, valid wherever sin⁡2x>0\sin 2x > 0⁠, which includes all of [π6,π3][\frac{\pi}{6}, \frac{\pi}{3}]⁠. Then F(π3)−F(π6)=sin⁡−1k−sin⁡−1(−k)F(\frac{\pi}{3}) - F(\frac{\pi}{6}) = \sin^{-1}k - \sin^{-1}(-k)⁠, the same as Step 5.

    Differentiating back is the surest test that no factor was lost in the substitution. The second line is Step 3 read backwards: 1−(sin⁡x−cos⁡x)2=sin⁡2x1 - (\sin x - \cos x)^2 = \sin 2x⁠.
    ddusin⁡−1u=11−u2\frac{d}{du}\sin^{-1} u = \frac{1}{\sqrt{1-u^2}} for ∣u∣<1|u| < 1⁠. Basics: integration undoes differentiation
  7. The decimal value

    k=3−12≈0.3660254k = \frac{\sqrt3 - 1}{2} \approx 0.3660254⁠, sin⁡−1k≈0.3747344\sin^{-1} k \approx 0.3747344⁠, so

    I=2sin⁡−1(3−12)≈0.749469.I = 2\sin^{-1}\left(\frac{\sqrt3 - 1}{2}\right) \approx 0.749469 .

    It is positive, as it must be: the integrand is positive on the whole interval.

    A rough size check: the integrand stays between about 1.41 and 1.47 on the interval (at the ends it is (1+3)/23/2≈1.468\frac{(1+\sqrt3)/2}{\sqrt{\sqrt3/2}} \approx 1.468⁠; at the middle point π4\frac{\pi}{4} it is 2≈1.414\sqrt2 \approx 1.414⁠, its smallest value), and the interval has length π6≈0.5236\frac{\pi}{6} \approx 0.5236⁠. So the integral must lie between 1.414×0.5236≈0.7401.414 \times 0.5236 \approx 0.740 and 1.468×0.5236≈0.7691.468 \times 0.5236 \approx 0.769⁠. It does.
Result

∫π/6π/3sin⁡x+cos⁡xsin⁡2x dx=2sin⁡−1(3−12)≈0.749469\begin{aligned} &\int_{\pi/6}^{\pi/3} \frac{\sin x + \cos x}{\sqrt{\sin 2x}}\,dx \\ &= 2\sin^{-1}\left(\frac{\sqrt3 - 1}{2}\right) \\ &\approx 0.749469 \end{aligned} (Textbook answer: 2sin⁡−1(3−1)22\sin^{-1}\frac{(\sqrt3 - 1)}{2}⁠, the same.)

Check it with numbers

Numerical integration (adaptive quadrature) of the original integrand over [π6,π3][\frac{\pi}{6}, \frac{\pi}{3}] gives 0.7494688654, and 2sin⁡−1(0.3660254038)2\sin^{-1}(0.3660254038) ≈2×0.3747344327\approx 2 \times 0.3747344327 =0.7494688654= 0.7494688654⁠. They agree to all ten places.

Identity spot check at x=π6x = \frac{\pi}{6}⁠: t2=(1−3)24t^2 = \frac{(1-\sqrt3)^2}{4} =1−32≈0.1339746= 1 - \frac{\sqrt3}{2} \approx 0.1339746⁠, so 1−t2=32=sin⁡π31 - t^2 = \frac{\sqrt3}{2} = \sin\frac{\pi}{3} (about 0.8660254) ✓.

Common mistakes
  1. Substituting t=sin⁡x+cos⁡xt = \sin x + \cos x⁠. Then dt=(cos⁡x−sin⁡x) dxdt = (\cos x - \sin x)\,dx⁠, which does not match the numerator; and sin⁡2x\sin 2x becomes t2−1t^2 - 1⁠, giving a different shape.
  2. Forgetting to change the limits, and evaluating sin⁡−1t\sin^{-1} t at π6\frac{\pi}{6} and π3\frac{\pi}{3}⁠.
  3. Writing sin⁡−1(−k)=sin⁡−1k\sin^{-1}(-k) = \sin^{-1} k and getting 0. The inverse sine is odd, so the two ends add rather than cancel.
  4. Expanding (sin⁡x−cos⁡x)2(\sin x - \cos x)^2 as sin⁡2x−cos⁡2x\sin^2 x - \cos^2 x⁠. The cross term −2sin⁡xcos⁡x-2\sin x\cos x is the whole point.
What to take away
  1. When sin⁡x±cos⁡x\sin x \pm \cos x sits next to sin⁡2x\sin 2x⁠, try t=sin⁡x∓cos⁡xt = \sin x \mp \cos x (the opposite sign): its derivative is the numerator, and t2=1∓sin⁡2xt^2 = 1 \mp \sin 2x⁠.
  2. Q29 of this exercise uses exactly the same substitution with a different denominator.
  3. Over a symmetric interval [−k,k][-k, k]⁠, an odd antiderivative doubles: F(k)−F(−k)=2F(k)F(k) - F(-k) = 2F(k)⁠.

Every fact used, and where it comes from

FactUsed inSource
A definite integral needs ff continuous on [a,b][a, b]Step 1Theorem 2 and Remark (iv), Section 7.8.3
sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1⁠, sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos xStep 3Trigonometric functions (Class XI)
Substitution with changed limitsSteps 2, 4Section 7.9 (Lesson: substitution)
∫dt1−t2=sin⁡−1t+C\int\frac{dt}{\sqrt{1-t^2}} = \sin^{-1}t + CStep 5Standard formula (viii), Section 7.2
sin⁡−1(−k)=−sin⁡−1k\sin^{-1}(-k) = -\sin^{-1}k⁠; P7 (i)Step 5Principal range of sin⁡−1\sin^{-1} (Chapter 2); Section 7.10, P7 (i)
Chain rule for the checkStep 6Chapter 5, Sections 5.3.1 and 5.3.3
All decimalsStep 7, 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 →