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

Example 33: ∫π/6π/3dx1+tan⁡x\int_{\pi/6}^{\pi/3}\frac{dx}{1+\sqrt{\tan x}}

ExamplesProperties of definite integrals (P3) · Section 7.10
The question

Evaluate

∫π/6π/3dx1+tan⁡x\int_{\pi/6}^{\pi/3} \frac{dx}{1+\sqrt{\tan x}}
Exam answer

Let I=∫π/6π/3dx1+tan⁡xI = \displaystyle\int_{\pi/6}^{\pi/3}\frac{dx}{1 + \sqrt{\tan x}}⁠.

Writing tan⁡x=sin⁡xcos⁡x\sqrt{\tan x} = \frac{\sqrt{\sin x}}{\sqrt{\cos x}}⁠,

I=∫π/6π/3cos⁡x dxcos⁡x+sin⁡x  …(i)I = \int_{\pi/6}^{\pi/3}\frac{\sqrt{\cos x}\,dx}{\sqrt{\cos x} + \sqrt{\sin x}}\;\ldots(\text{i})

Using ∫abf(x) dx=∫abf(a+b−x) dx\displaystyle\int_a^b f(x)\,dx = \int_a^b f(a + b - x)\,dx⁠, where here π6+π3=π2\frac{\pi}{6} + \frac{\pi}{3} = \frac{\pi}{2}⁠, and cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2} - x\right) = \sin x⁠, sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2} - x\right) = \cos x⁠,

I=∫π/6π/3sin⁡x dxsin⁡x+cos⁡x  …(ii)I = \int_{\pi/6}^{\pi/3}\frac{\sqrt{\sin x}\,dx}{\sqrt{\sin x} + \sqrt{\cos x}}\;\ldots(\text{ii})

Adding (i) and (ii),

2I=∫π/6π/3cos⁡x+sin⁡xcos⁡x+sin⁡x dx=∫π/6π/31 dx=[x]π/6π/3=π3−π6=π6\begin{aligned} 2I &= \int_{\pi/6}^{\pi/3}\frac{\sqrt{\cos x} + \sqrt{\sin x}}{\sqrt{\cos x} + \sqrt{\sin x}}\,dx \\ &= \int_{\pi/6}^{\pi/3}1\,dx = \Big[x\Big]_{\pi/6}^{\pi/3} \\ &= \frac{\pi}{3} - \frac{\pi}{6} = \frac{\pi}{6} \end{aligned}

∴ I=π12\therefore\ I = \dfrac{\pi}{12}⁠.

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

The one idea this problem is built on

The limits π/6\pi/6 and π/3\pi/3 add up to π/2\pi/2⁠. Property P3 lets us replace xx by π2−x\frac{\pi}{2} - x without changing the integral, and that swap turns sin⁡x\sin x into cos⁡x\cos x and cos⁡x\cos x into sin⁡x\sin x⁠. Written as cos⁡xcos⁡x+sin⁡x\frac{\sqrt{\cos x}}{\sqrt{\cos x}+\sqrt{\sin x}}⁠, the integrand and its swapped partner add up to exactly 1. So twice the integral is the integral of 1, which is just the length of the interval. We never need an antiderivative of 11+tan⁡x\frac{1}{1+\sqrt{\tan x}} (which would be very hard to find).

Given, to find, and the plan
Given
I=∫π/6π/3dx1+tan⁡xI = \displaystyle\int_{\pi/6}^{\pi/3} \frac{dx}{1+\sqrt{\tan x}}⁠.
To find
The exact value of II⁠.
Plan
(1) Check the integrand is continuous on [π/6,π/3][\pi/6, \pi/3]⁠. (2) Rewrite it with cos⁡x\sqrt{\cos x} and sin⁡x\sqrt{\sin x}⁠. (3) Apply P3 with a+b=π/2a + b = \pi/2⁠. (4) Add the two forms of II⁠: the integrands add to 1. (5) Solve for II⁠.

Basics you need

1Property P3 (Section 7.10)

∫abf(x) dx=∫abf(a+b−x) dx\displaystyle\int_a^b f(x)\,dx = \int_a^b f(a+b-x)\,dx⁠. Reading the interval backwards (from bb to aa⁠) does not change the area under the curve. Lesson: properties of definite integrals

2Complementary angles

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

3Square root of a quotient

For p≥0p \ge 0 and q>0q > 0⁠, p/q=p/q\sqrt{p/q} = \sqrt{p}/\sqrt{q}⁠. We use it with p=sin⁡xp = \sin x⁠, q=cos⁡xq = \cos x⁠, both positive on our interval.

4Second fundamental theorem (Theorem 2, Section 7.8.3)

If ff is continuous on [a,b][a, b] and F′=fF' = f⁠, then ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)⁠. Here it is only needed for ∫1 dx\int 1\,dx⁠. Lesson: definite integrals

Solution

  1. The integrand is continuous on [π/6,π/3][\pi/6, \pi/3]

    For π6≤x≤π3\frac{\pi}{6} \le x \le \frac{\pi}{3} the angle is in the first quadrant, so sin⁡x>0\sin x > 0⁠, cos⁡x>0\cos x > 0 and tan⁡x>0\tan x > 0⁠. In fact tan⁡x\tan x runs from tan⁡π6=13\tan\frac{\pi}{6} = \frac{1}{\sqrt3} up to tan⁡π3=3\tan\frac{\pi}{3} = \sqrt3⁠. So tan⁡x\sqrt{\tan x} is defined and continuous, and the denominator 1+tan⁡x1 + \sqrt{\tan x} is at least 1, never 0. The integrand is therefore continuous on the whole closed interval.

    A definite integral of a continuous function on a closed interval is an ordinary finite number (Remark (iv) after Theorem 2, Section 7.8.3), and all the properties P0 to P7 apply to it. Checking this first means nothing later can go wrong at an endpoint.
    tan⁡x\tan x is increasing on (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, so its smallest and largest values on [π/6,π/3][\pi/6, \pi/3] are at the two ends.
  2. Rewrite the integrand with sin⁡x\sqrt{\sin x} and cos⁡x\sqrt{\cos x}

    Since sin⁡x>0\sin x > 0 and cos⁡x>0\cos x > 0 here, tan⁡x=sin⁡xcos⁡x\sqrt{\tan x} = \frac{\sqrt{\sin x}}{\sqrt{\cos x}}⁠. Then multiply the top and bottom by cos⁡x\sqrt{\cos x}⁠:

    11+tan⁡x=11+sin⁡xcos⁡x=cos⁡xcos⁡x+sin⁡x.\frac{1}{1+\sqrt{\tan x}} = \frac{1}{1+\dfrac{\sqrt{\sin x}}{\sqrt{\cos x}}} = \frac{\sqrt{\cos x}}{\sqrt{\cos x}+\sqrt{\sin x}} .

    So

    I=∫π/6π/3cos⁡xcos⁡x+sin⁡x dx(1)I = \int_{\pi/6}^{\pi/3} \frac{\sqrt{\cos x}}{\sqrt{\cos x}+\sqrt{\sin x}}\,dx \qquad (1)
    This form treats sin⁡\sin and cos⁡\cos on an equal footing: the denominator is symmetric in them. That is exactly what makes the swap sin⁡↔cos⁡\sin \leftrightarrow \cos in the next step useful. Splitting the square root of the quotient is allowed only because sin⁡x\sin x and cos⁡x\cos x are positive on our interval (Step 1).
    Multiplying the numerator and the denominator of a fraction by the same non-zero quantity (cos⁡x>0\sqrt{\cos x} > 0⁠) does not change its value. Basics: working with fractions
  3. Apply P3 with a=π/6a = \pi/6⁠, b=π/3b = \pi/3

    Here a+b=π6+π3=π2a + b = \frac{\pi}{6} + \frac{\pi}{3} = \frac{\pi}{2}⁠, so P3 says we may replace xx by π2−x\frac{\pi}{2} - x in the integrand of (1):

    I=∫π/6π/3cos⁡(π2−x)cos⁡(π2−x)+sin⁡(π2−x) dx.I = \int_{\pi/6}^{\pi/3} \frac{\sqrt{\cos\left(\frac{\pi}{2}-x\right)}}{\sqrt{\cos\left(\frac{\pi}{2}-x\right)}+\sqrt{\sin\left(\frac{\pi}{2}-x\right)}}\,dx .

    Using cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2}-x\right) = \sin x and sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2}-x\right) = \cos x⁠:

    I=∫π/6π/3sin⁡xsin⁡x+cos⁡x dx(2)I = \int_{\pi/6}^{\pi/3} \frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}}\,dx \qquad (2)
    P3 holds for any integrand continuous on [a,b][a, b] (Step 1). As xx runs over [π/6,π/3][\pi/6, \pi/3]⁠, the new point π2−x\frac{\pi}{2} - x runs over the same interval backwards, from π/3\pi/3 down to π/6\pi/6⁠. So it adds up the same values of the integrand in the opposite order, and the total cannot change. The point of choosing a+b=π/2a + b = \pi/2 is that this reflection is the complementary-angle swap.
    Proof of P3 (Section 7.10): put t=a+b−xt = a + b - x⁠, so dt=−dxdt = -dx⁠; x=ax = a gives t=bt = b and x=bx = b gives t=at = a⁠; then use P1 to swap the limits back and P0 to rename tt as xx⁠. Basics: symmetry and mirror images
  4. Add (1) and (2)

    Both integrals have the same limits, so they can be combined into one integral (the sum property of Section 7.2.1 holds for definite integrals too):

    2I=∫π/6π/3cos⁡x+sin⁡xcos⁡x+sin⁡x dx=∫π/6π/31 dx.\begin{aligned}2I &= \int_{\pi/6}^{\pi/3} \frac{\sqrt{\cos x}+\sqrt{\sin x}}{\sqrt{\cos x}+\sqrt{\sin x}}\,dx\\ &= \int_{\pi/6}^{\pi/3} 1\,dx .\end{aligned}
    The two integrands have the same denominator, and their numerators add up to that denominator. So the sum is exactly 1 at every point of the interval. This is the whole trick: neither integral is easy on its own, but their sum is trivial.
    For continuous ff and gg⁠: ∫ab[f(x)+g(x)] dx=∫abf(x) dx+∫abg(x) dx.\int_a^b [f(x) + g(x)]\,dx = \int_a^b f(x)\,dx + \int_a^b g(x)\,dx .
  5. Evaluate and solve for II

    2I=[x]π/6π/3=π3−π6=π6.2I = \Big[x\Big]_{\pi/6}^{\pi/3} = \frac{\pi}{3} - \frac{\pi}{6} = \frac{\pi}{6} .

    Dividing by 2,

    I=π12≈0.261799.I = \frac{\pi}{12} \approx 0.261799 .
    An antiderivative of 1 is xx⁠, so Theorem 2 gives upper limit minus lower limit, which is the length of the interval. Halving is legitimate because II is a finite number (Step 1).
    π3−π6=2π−π6=π6\frac{\pi}{3} - \frac{\pi}{6} = \frac{2\pi - \pi}{6} = \frac{\pi}{6}⁠.
  6. See it in a picture

    Write f(x)=11+tan⁡xf(x) = \frac{1}{1+\sqrt{\tan x}}⁠. Steps 3 and 4 say f(x)+f(π2−x)=1f(x) + f\left(\frac{\pi}{2}-x\right) = 1⁠. So at every xx⁠, the gap from the curve up to the line y=1y = 1 is 1−f(x)=f(π2−x)1 - f(x) = f\left(\frac{\pi}{2} - x\right)⁠: the region above the curve (inside the rectangle) is the region under the curve turned half a turn about the centre point (π4,12)\left(\frac{\pi}{4}, \frac12\right)⁠.

    x y 0.5 1 π/6 π/4 π/3 blue: area I under y = f(x), where f(x) = 1/(1 + √tan x) gold: the rest of the rectangle, up to y = 1 (same shape) dashed: y = f(π/2 − x) = 1 − f(x); dot: centre (π/4, 1/2)
    The rectangle has width π6\frac{\pi}{6} and height 1. The blue region (area II⁠) and the gold region are congruent, so each is half the rectangle: I=12⋅π6=π12I = \frac12\cdot\frac{\pi}{6} = \frac{\pi}{12}⁠. The horizontal axis shows only the interval of integration and a little either side.
    The algebra and the picture say the same thing. The curve passes through the centre (π4,12)\left(\frac{\pi}{4}, \frac12\right) because tan⁡π4=1\tan\frac{\pi}{4} = 1 gives f(π4)=12f\left(\frac{\pi}{4}\right) = \frac{1}{2}⁠, and it is symmetric about that point. Any curve with this point symmetry cuts the rectangle into two equal halves.
Result

∫π/6π/3dx1+tan⁡x=π12≈0.261799\int_{\pi/6}^{\pi/3} \frac{dx}{1+\sqrt{\tan x}} = \frac{\pi}{12} \approx 0.261799

Check it with numbers

At the ends: f(π6)=11+3−1/4f\left(\frac{\pi}{6}\right) = \frac{1}{1 + 3^{-1/4}}⁠, about 0.5682350.568235⁠, and f(π3)=11+31/4f\left(\frac{\pi}{3}\right) = \frac{1}{1 + 3^{1/4}}⁠, about 0.4317650.431765⁠; these add to 1, as Step 4 predicts for xx and π2−x\frac{\pi}{2} - x⁠. At x=0.6x = 0.6⁠: f(0.6)≈0.547308f(0.6) \approx 0.547308 and f(π2−0.6)≈0.452692f\left(\frac{\pi}{2}-0.6\right) \approx 0.452692⁠, sum 1 again.

A numerical integration (adaptive quadrature) of ff over [π/6,π/3][\pi/6, \pi/3] gives 0.26179938780.2617993878 to ten decimal places, and π/12≈0.2617993878\pi/12 \approx 0.2617993878⁠, agreeing to every digit shown.

Common mistakes
  1. Replacing xx by π3−x\frac{\pi}{3} - x or π6−x\frac{\pi}{6} - x⁠. P3 uses a+b−xa + b - x⁠, the sum of both limits. Only π2−x\frac{\pi}{2} - x maps the interval onto itself here.
  2. Changing the limits after using P3. P3 keeps the same limits aa and bb⁠; only the integrand changes.
  3. Writing tan⁡x=sin⁡x/cos⁡x\sqrt{\tan x} = \sqrt{\sin x}/\sqrt{\cos x} without a reason. It needs sin⁡x≥0\sin x \ge 0 and cos⁡x>0\cos x > 0⁠, true here because the interval lies in the first quadrant.
  4. Forgetting to halve. Adding the two forms gives 2I2I⁠, not II⁠: the answer is π12\frac{\pi}{12}⁠, not π6\frac{\pi}{6}⁠.
What to take away
  1. When the limits add up to π2\frac{\pi}{2} and the integrand mixes sin⁡\sin and cos⁡\cos symmetrically, try P3 (or P4 when the lower limit is 0): x→π2−xx \to \frac{\pi}{2} - x swaps sin⁡\sin and cos⁡\cos⁠.
  2. The pattern "II = one form, II = swapped form, add" works whenever f(x)+f(a+b−x)f(x) + f(a+b-x) is simple. If it equals a constant kk⁠, the integral is k2(b−a)\frac{k}{2}(b - a)⁠.
  3. The same method gives ∫0π/2sin⁡nxsin⁡nx+cos⁡nx dx=π4\int_0^{\pi/2} \frac{\sin^n x}{\sin^n x + \cos^n x}\,dx = \frac{\pi}{4} for every positive integer nn (compare Example 32).

Every fact used, and where it comes from

FactUsed inSource
Continuity needed for a definite integralStep 1Remark (iv) after Theorem 2, Section 7.8.3
p/q=p/q\sqrt{p/q} = \sqrt p/\sqrt q for p≥0p \ge 0⁠, q>0q > 0Step 2Algebra of square roots
P3: ∫abf(x) dx=∫abf(a+b−x) dx\int_a^b f(x)\,dx = \int_a^b f(a+b-x)\,dxStep 3Section 7.10, property P3 (Lesson: properties)
sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2}-x\right) = \cos x⁠, cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2}-x\right) = \sin xStep 3Class XI, Trigonometric Functions
Integral of a sum is the sum of the integralsStep 4Section 7.2.1 (Property III), applied to definite integrals
∫ab1 dx=b−a\int_a^b 1\,dx = b - aStep 5Theorem 2, Section 7.8.3
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 →