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

Exercise 7.10 · Q2: ∫0π/2sin⁡xsin⁡x+cos⁡x dx\int_0^{\pi/2}\frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}}\,dx

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

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

2. ∫0π2sin⁡xsin⁡x+cos⁡x dx\displaystyle\int_0^{\frac{\pi}{2}}\frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx

Exam answer

Let

I=∫0π2sin⁡xsin⁡x+cos⁡x dx…(i)\begin{aligned} I &= \int_0^{\frac{\pi}{2}}\frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx \\ &\qquad\ldots(\text{i}) \end{aligned}

Using ∫0af(x) dx=∫0af(a−x) dx\displaystyle\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx with 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⁠,

I=∫0π2cos⁡xcos⁡x+sin⁡x dx…(ii)\begin{aligned} I &= \int_0^{\frac{\pi}{2}}\frac{\sqrt{\cos x}}{\sqrt{\cos x} + \sqrt{\sin x}}\,dx \\ &\qquad\ldots(\text{ii}) \end{aligned}

Adding (i) and (ii),

2I=∫0π2sin⁡x+cos⁡xsin⁡x+cos⁡x dx=∫0π21 dx=[x]0π2=π2\begin{aligned} 2I &= \int_0^{\frac{\pi}{2}}\frac{\sqrt{\sin x} + \sqrt{\cos x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx \\ &= \int_0^{\frac{\pi}{2}}1\,dx = \Big[x\Big]_0^{\frac{\pi}{2}} = \frac{\pi}{2} \end{aligned}

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

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

The one idea this problem is built on

Finding an antiderivative of this integrand would be long and hard (none of the standard formulas of this chapter fits it), so we do not look for one. Property P4 replaces xx by π2−x\frac{\pi}{2} - x⁠, which swaps sin⁡x\sin x and cos⁡x\cos x and so gives the same integral II with cos⁡x\sqrt{\cos x} on top. The two fractions have the same denominator and their numerators add up to it, so together they integrate the constant 1.

Given, to find, and the plan
Given
I=∫0π/2sin⁡xsin⁡x+cos⁡x dxI = \displaystyle\int_0^{\pi/2}\frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx⁠.
To find
The exact value of II⁠, and its decimal value.
Plan
Check that the square roots are defined and the denominator is never 0 on [0,π2]\left[0, \frac{\pi}{2}\right]⁠; apply P4 with a=π2a = \frac{\pi}{2}⁠; add the two forms; solve for II⁠.

Basics you need

1Property P4 (Section 7.10)

∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx⁠: running through [0,a][0, a] backwards does not change the integral. 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⁠. Basics: trigonometric identities

3Square roots

u\sqrt{u} is defined (as a real number) only for u≥0u \ge 0⁠, and it is continuous there.

4Adding integrals over the same interval

∫abf dx+∫abg dx=∫ab(f+g) dx\int_a^b f\,dx + \int_a^b g\,dx = \int_a^b (f + g)\,dx⁠. Basics: symmetry and mirror images

Solution

  1. The integrand is defined and continuous on [0,π2]\left[0, \frac{\pi}{2}\right]

    For 0≤x≤π20 \le x \le \frac{\pi}{2}⁠, both sin⁡x≥0\sin x \ge 0 and cos⁡x≥0\cos x \ge 0⁠, so both square roots are defined and continuous. The denominator is never 0: sin⁡x\sin x and cos⁡x\cos x are never 0 together (since sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1⁠), so at least one root is positive. In fact, for 0≤s≤10 \le s \le 1 we have s≥s2\sqrt{s} \ge s^2⁠, so

    sin⁡x+cos⁡x ≥ sin⁡2x+cos⁡2x=1.\sqrt{\sin x} + \sqrt{\cos x} \ \ge\ \sin^2 x + \cos^2 x = 1 .

    So the integrand is continuous on the closed interval, with values between 0 and 1. Label

    I=∫0π2sin⁡xsin⁡x+cos⁡x dx(1)I = \int_0^{\frac{\pi}{2}}\frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx \qquad (1)
    The properties of Section 7.10 are used for continuous integrands, and the method below adds II to itself and divides by 2, which needs II to be a finite number. Outside [0,π2]\left[0, \frac{\pi}{2}\right] one of sin⁡x\sin x⁠, cos⁡x\cos x can be negative and the integrand would not even be defined, so the interval matters.
    For 0≤s≤10 \le s \le 1⁠: s2≤s≤ss^2 \le s \le \sqrt{s} (squaring a number between 0 and 1 makes it smaller, taking its square root makes it larger).
  2. Apply P4 with a=π2a = \frac{\pi}{2}

    With f(x)f(x) the integrand, compute f(π2−x)f\left(\frac{\pi}{2} - x\right) by replacing every xx⁠. The two pieces become

    sin⁡(π2−x)=cos⁡x,cos⁡(π2−x)=sin⁡x,\begin{aligned}\sqrt{\sin\left(\tfrac{\pi}{2} - x\right)} &= \sqrt{\cos x}, \\ \sqrt{\cos\left(\tfrac{\pi}{2} - x\right)} &= \sqrt{\sin x},\end{aligned}

    so

    f(π2−x)=cos⁡xcos⁡x+sin⁡x.f\left(\tfrac{\pi}{2} - x\right) = \frac{\sqrt{\cos x}}{\sqrt{\cos x} + \sqrt{\sin x}} .

    So, by P4,

    I=∫0π2cos⁡xcos⁡x+sin⁡x dx(2)I = \int_0^{\frac{\pi}{2}}\frac{\sqrt{\cos x}}{\sqrt{\cos x} + \sqrt{\sin x}}\,dx \qquad (2)
    P4 holds for every function continuous on [0,a][0, a]⁠; its only "condition" is that, which Step 1 checked. Its use lies in what f(a−x)f(a - x) becomes: here the numerator changes from sin⁡x\sqrt{\sin x} to cos⁡x\sqrt{\cos x} while the denominator stays the same (only its two terms change places).
    P4, Section 7.10; 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 x⁠. Lesson: properties of definite integrals
  3. Add (1) and (2)

    2I=∫0π2sin⁡x+cos⁡xsin⁡x+cos⁡x dx=∫0π21 dx=[x]0π2=π2.\begin{aligned}2I &= \int_0^{\frac{\pi}{2}}\frac{\sqrt{\sin x} + \sqrt{\cos x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx \\ &= \int_0^{\frac{\pi}{2}}1\,dx = \big[x\big]_0^{\frac{\pi}{2}} = \frac{\pi}{2}.\end{aligned}
    Same interval, same denominator: the numerators add to the denominator, and the fraction is 1 (allowed because the denominator is never 0, Step 1). The integral of 1 over an interval is its length.
    ∫dx=x+C\int dx = x + C (Section 7.2) and Theorem 2, Section 7.8.3. Lesson: the fundamental theorem
  4. Solve for II

    I=π4≈0.7853982.I = \frac{\pi}{4} \approx 0.7853982 .
    Dividing 2I=π22I = \frac{\pi}{2} by 2. A quick sense check: the integrand lies between 0 and 1 and equals 12\frac12 at the middle point x=π4x = \frac{\pi}{4}⁠, so an average height of 12\frac12 over a length π2\frac{\pi}{2} is believable.
    At x=π4x = \frac{\pi}{4}⁠, sin⁡x=cos⁡x\sin x = \cos x⁠, so the fraction is sin⁡x2sin⁡x=12\frac{\sqrt{\sin x}}{2\sqrt{\sin x}} = \frac12⁠.
  5. The picture

    x y π/4 π/2 1/2 1 (π/4, 1/2) y = √sin x / (√sin x + √cos x) dashed: mirror image area I
    The blue curve is the integrand; the region under it (area II⁠) is shaded. The dashed gold curve, cos⁡xsin⁡x+cos⁡x\frac{\sqrt{\cos x}}{\sqrt{\sin x} + \sqrt{\cos x}}⁠, is its mirror image in the line x=π4x = \frac{\pi}{4}⁠, so it has the same area II (this is P4). The two heights add to 1 at every xx⁠, so the two areas fill the dashed rectangle of area π2\frac{\pi}{2}⁠.
    The blue curve is symmetric under a half turn about (π4,12)\left(\frac{\pi}{4}, \frac12\right)⁠: the unshaded part of the rectangle is a copy of the shaded part. So the shaded part is exactly half the rectangle.
    Mirror images have equal areas. Basics: symmetry and mirror images
Result

∫0π2sin⁡xsin⁡x+cos⁡x dx=π4≈0.7853982\begin{aligned}&\int_0^{\frac{\pi}{2}}\frac{\sqrt{\sin x}}{\sqrt{\sin x} + \sqrt{\cos x}}\,dx \\ &= \frac{\pi}{4} \approx 0.7853982\end{aligned} (Textbook answer: π4\frac{\pi}{4}⁠. Ours is the same.)

Check it with numbers

A numerical integration over [0,π2]\left[0, \frac{\pi}{2}\right] gives 0.7853982, which is π4\frac{\pi}{4}⁠. At x=0.3x = 0.3 the integrand is about 0.3574008 and its P4 partner (form (2)) is about 0.6425992; they add to 1.

Common mistakes
  1. Replacing xx by π2−x\frac{\pi}{2} - x in the numerator only. P4 changes the whole function, denominator included.
  2. Thinking sin⁡x+cos⁡x\sqrt{\sin x} + \sqrt{\cos x} could be 0. On [0,π2]\left[0, \frac{\pi}{2}\right] it is at least 1 (Step 1).
  3. Trying sin⁡x+cos⁡x\sqrt{\sin x + \cos x} in the denominator. The denominator is a sum of two separate roots; a+b≠a+b\sqrt{a} + \sqrt{b} \ne \sqrt{a + b}⁠.
What to take away
  1. For any power p>0p > 0⁠, ∫0π/2sin⁡pxsin⁡px+cos⁡px dx=π4\int_0^{\pi/2}\frac{\sin^p x}{\sin^p x + \cos^p x}\,dx = \frac{\pi}{4} by exactly these steps (Questions 3 and 4 are the cases p=32p = \frac32 and p=5p = 5⁠).
  2. When an integrand on [0,π2]\left[0, \frac{\pi}{2}\right] is a fraction whose P4 partner has the same denominator, add the two forms.
  3. Always check the integrand is defined and continuous on the whole closed interval first.

Every fact used, and where it comes from

FactUsed inSource
sin⁡x,cos⁡x≥0\sin x, \cos x \ge 0 on [0,π2]\left[0, \frac{\pi}{2}\right]⁠; sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1Step 1Trigonometry (Basics)
s≥s2\sqrt{s} \ge s^2 for 0≤s≤10 \le s \le 1Step 1Algebra of numbers between 0 and 1
P4: ∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dxStep 2Section 7.10 (Lesson)
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 2Trigonometry (Basics)
∫abf+∫abg=∫ab(f+g)\int_a^b f + \int_a^b g = \int_a^b (f + g)Step 3Linearity of integrals
∫dx=x+C\int dx = x + C⁠; ∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a)Step 3Section 7.2; Theorem 2, Section 7.8.3 (Lesson)
Same methodSteps 2 to 4Example 32, Exercise 7.10 Q1
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 →