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

Exercise 7.2 · Q28: ∫cos⁡x1+sin⁡x dx\int\frac{\cos x}{\sqrt{1+\sin x}}\,dx

Exercise 7.2Integration by substitution · Section 7.3.1
The question

Integrate the function (Exercise 7.2, "Integrate the functions in Exercises 1 to 37"):

cos⁡x1+sin⁡x\frac{\cos x}{\sqrt{1 + \sin x}}
Exam answer

Let I=∫cos⁡x1+sin⁡x dxI = \displaystyle\int\frac{\cos x}{\sqrt{1 + \sin x}}\,dx⁠.

Put 1+sin⁡x=t1 + \sin x = t⁠. Then cos⁡x dx=dt\cos x\,dx = dt⁠.

I=∫t−1/2 dt=t1/21/2+C=2t+C\begin{aligned} I &= \int t^{-1/2}\,dt = \frac{t^{1/2}}{1/2} + C \\ &= 2\sqrt t + C \end{aligned}

∴ I=21+sin⁡x+C\therefore\ I = 2\sqrt{1 + \sin x} + C⁠.

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

The one idea this problem is built on

The expression under the root, 1+sin⁡x1 + \sin x⁠, has derivative cos⁡x\cos x⁠, and cos⁡x\cos x is the numerator. So with t=1+sin⁡xt = 1 + \sin x the numerator times dxdx is exactly dtdt⁠, and the integral becomes ∫t−1/2 dt\int t^{-1/2}\,dt⁠, a single power of tt⁠.

Given, to find, and the plan
Given
The integrand f(x)=cos⁡x1+sin⁡xf(x) = \dfrac{\cos x}{\sqrt{1 + \sin x}}⁠.
To find
∫f(x) dx\int f(x)\,dx⁠, and where the answer is valid.
Plan
(1) Find where the integrand is defined. (2) Substitute t=1+sin⁡xt = 1 + \sin x⁠, dt=cos⁡x dxdt = \cos x\,dx⁠. (3) Integrate t−1/2t^{-1/2} by the power rule. (4) Return to xx⁠. (5) Differentiate back to check.

Basics you need

1Integration undoes differentiation

∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C exactly when F′(x)=f(x)F'(x) = f(x)⁠; this is how we check the answer. Basics: integration undoes differentiation

2Substitution

If t=g(x)t = g(x)⁠, then dt=g′(x) dxdt = g'(x)\,dx and ∫h(g(x)) g′(x) dx=∫h(t) dt\int h(g(x))\,g'(x)\,dx = \int h(t)\,dt⁠. Basics: substitution (the chain rule backwards)

3Roots as powers

1t=t−1/2\frac{1}{\sqrt t} = t^{-1/2} for t>0t > 0⁠, and ∫tn dt=tn+1n+1+C\int t^n\,dt = \frac{t^{n+1}}{n+1} + C for n≠−1n \ne -1⁠. Basics: powers and the power rule

4Range of sin⁡x\sin x

−1≤sin⁡x≤1-1 \le \sin x \le 1⁠, and sin⁡x=−1\sin x = -1 exactly when x=−π2+2nπx = -\frac{\pi}{2} + 2n\pi⁠. Basics: trigonometric facts

Solution

  1. Where is the integrand defined?

    The root is in the denominator, so we need 1+sin⁡x>01 + \sin x > 0 (not just ≥0\ge 0⁠: a zero denominator is not allowed). Since sin⁡x≥−1\sin x \ge -1 always, 1+sin⁡x≥01 + \sin x \ge 0 always, and it is zero only when sin⁡x=−1\sin x = -1⁠:

    1+sin⁡x=0  ⟺  x=−π2+2nπ.1 + \sin x = 0 \iff x = -\tfrac{\pi}{2} + 2n\pi.

    So the integrand is defined for every real xx except these points, that is, on each open interval (−π2+2nπ, 3π2+2nπ)\left(-\frac{\pi}{2} + 2n\pi,\ \frac{3\pi}{2} + 2n\pi\right)⁠.

    The answer can only be claimed where the integrand exists (Note, Section 7.2). Here only isolated points are lost, one in every 2π2\pi⁠.
    sin⁡x\sin x reaches its least value −1-1 at x=−π2x = -\frac{\pi}{2}⁠, and repeats every 2π2\pi⁠. Basics: trigonometric facts
  2. Substitute t=1+sin⁡xt = 1 + \sin x

    Put

    t=1+sin⁡x.t = 1 + \sin x.

    Differentiate with respect to xx⁠: the derivative of the constant 1 is 0 and of sin⁡x\sin x is cos⁡x\cos x⁠, so

    dtdx=cos⁡x,that is,dt=cos⁡x dx.\frac{dt}{dx} = \cos x, \quad\text{that is,}\quad dt = \cos x\,dx.

    On the domain of Step 1, t>0t > 0 (indeed 0<t≤20 < t \le 2⁠).

    The function under the root, 1+sin⁡x1 + \sin x⁠, has its derivative cos⁡x\cos x sitting in the numerator. That is the signal for this substitution (Section 7.3.1). Including the "1" in tt is what makes the root become simply t\sqrt t⁠.
    ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x (standard formula (ii), Section 7.2, read as a derivative). Lesson: integration by substitution
  3. Rewrite the integral in tt

    ∫cos⁡x1+sin⁡x dx=∫11+sin⁡x⋅cos⁡x dx=∫1t dt=∫t−1/2 dt.\begin{aligned} &\int \frac{\cos x}{\sqrt{1 + \sin x}}\,dx \\ &= \int \frac{1}{\sqrt{1 + \sin x}}\cdot\cos x\,dx \\ &= \int \frac{1}{\sqrt t}\,dt = \int t^{-1/2}\,dt. \end{aligned}
    We separate the integrand into "a function of 1+sin⁡x1 + \sin x" times "cos⁡x dx\cos x\,dx", then replace each piece. No xx is left, so the substitution is complete. Writing 1t\frac{1}{\sqrt t} as t−1/2t^{-1/2} puts it in power-rule form.
    1t=1t1/2=t−1/2\frac{1}{\sqrt t} = \frac{1}{t^{1/2}} = t^{-1/2}⁠. Basics: powers
  4. Integrate by the power rule

    With n=−12n = -\frac12⁠, n+1=12n + 1 = \frac12⁠:

    ∫t−1/2 dt=t1/21/2+C=2t+C.\int t^{-1/2}\,dt = \frac{t^{1/2}}{1/2} + C = 2\sqrt t + C.
    The power rule needs n≠−1n \ne -1⁠; here n=−12n = -\frac12⁠, so it applies. Dividing by 12\frac12 doubles.
    Standard formula (i), Section 7.2.
  5. Return to xx

    ∫cos⁡x1+sin⁡x dx=21+sin⁡x+C,\int \frac{\cos x}{\sqrt{1 + \sin x}}\,dx = 2\sqrt{1 + \sin x} + C,

    valid wherever sin⁡x≠−1\sin x \ne -1 (on each interval of Step 1).

    Replacing tt by 1+sin⁡x1 + \sin x gives the answer in the original variable, as the question requires.
  6. Check: differentiate the answer back

    Let F(x)=2(1+sin⁡x)1/2F(x) = 2(1 + \sin x)^{1/2}⁠. Chain rule, outer 2u1/22u^{1/2}⁠, inner u=1+sin⁡xu = 1 + \sin x⁠:

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

    This is the integrand. ✓

    An antiderivative is checked by differentiating it (Property (I), Section 7.2.1). The derivative of u1/2u^{1/2} needs u>0u > 0⁠, which is exactly the domain from Step 1.
    Chain rule, Theorem 4, Section 5.3.1. Basics: integration undoes differentiation
Result

∫cos⁡x1+sin⁡x dx=21+sin⁡x+C,\int \frac{\cos x}{\sqrt{1 + \sin x}}\,dx = 2\sqrt{1 + \sin x} + C, valid wherever sin⁡x≠−1\sin x \ne -1⁠. (Textbook answer: 21+sin⁡x+C2\sqrt{1 + \sin x} + C⁠.)

Check it with numbers

Take x=0.5x = 0.5 and h=0.001h = 0.001⁠. The slope of the answer:

  • F(0.501)≈2.4333539663F(0.501) \approx 2.4333539663 and F(0.499)≈2.4319109494F(0.499) \approx 2.4319109494⁠,
  • slope ≈2.4333539663−2.43191094940.002\approx \frac{2.4333539663 - 2.4319109494}{0.002} ≈0.72151\approx 0.72151⁠,
  • integrand: cos⁡0.51+sin⁡0.5=0.72151\frac{\cos 0.5}{\sqrt{1 + \sin 0.5}} = 0.72151⁠. ✓
Common mistakes
  1. Stopping at t=sin⁡xt = \sin x⁠. That substitution is legitimate, but it leaves ∫dt1+t\int\frac{dt}{\sqrt{1+t}}⁠, which needs a second step; taking t=1+sin⁡xt = 1 + \sin x at once is cleaner.
  2. Getting the power wrong. The root is in the denominator, so the power is −12-\frac12⁠, and the answer has t\sqrt t⁠, not 1t\frac{1}{\sqrt t}⁠.
  3. Writing 12t\frac12\sqrt t⁠. Dividing by 12\frac12 doubles: the factor is 2.
  4. Forgetting the excluded points. Where sin⁡x=−1\sin x = -1 the integrand has a zero denominator.
What to take away
  1. When a root or bracket contains g(x)g(x) and g′(x)g'(x) appears outside, put t=g(x)t = g(x)⁠, the whole contents including constants.
  2. ∫g′(x)g(x) dx=2g(x)+C\int \frac{g'(x)}{\sqrt{g(x)}}\,dx = 2\sqrt{g(x)} + C wherever g(x)>0g(x) > 0⁠.
  3. Always differentiate back; it confirms both the substitution and the power rule.

Every fact used, and where it comes from

FactUsed inSource
−1≤sin⁡x≤1-1 \le \sin x \le 1⁠; sin⁡x=−1\sin x = -1 at x=−π2+2nπx = -\frac{\pi}{2} + 2n\piStep 1Trigonometric functions (Class XI, Chapter 3)
Keep the interval of definition in mindStep 1Note after the standard formulae, Section 7.2
Substitution: t=g(x)t = g(x)⁠, dt=g′(x) dxdt = g'(x)\,dxSteps 2, 3Section 7.3.1 (Lesson: substitution)
ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos xSteps 2, 6Standard formula (ii), Section 7.2
∫tn dt=tn+1n+1+C\int t^n\,dt = \frac{t^{n+1}}{n+1} + C⁠, n≠−1n \ne -1Step 4Standard formula (i), Section 7.2
Chain rule; F′=fF' = f checks the answerStep 6Theorem 4, Section 5.3.1; Property (I), Section 7.2.1
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 →