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

Exercise 7.3 · Q12: ∫sin⁡2x1+cos⁡x dx\int\frac{\sin^2x}{1+\cos x}\,dx

Exercise 7.3Integration using trigonometric identities · Section 7.3.2
The question

Find the integral of the function

sin⁡2x1+cos⁡x.\frac{\sin^2 x}{1 + \cos x}.
Exam answer

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

Using sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x⁠,

I=∫(1−cos⁡x)(1+cos⁡x)1+cos⁡x dx=∫(1−cos⁡x) dx\begin{aligned} I &= \int\frac{(1 - \cos x)(1 + \cos x)}{1 + \cos x}\,dx \\ &= \int(1 - \cos x)\,dx \end{aligned}

∴ I=x−sin⁡x+C\therefore\ I = x - \sin x + C⁠.

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

The one idea this problem is built on

Turn the numerator into cosines: sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x⁠, a difference of two squares, (1−cos⁡x)(1+cos⁡x)(1 - \cos x)(1 + \cos x)⁠. The factor 1+cos⁡x1 + \cos x cancels with the denominator, leaving the easy integrand 1−cos⁡x1 - \cos x⁠.

Given, to find, and the plan
Given
sin⁡2x1+cos⁡x\dfrac{\sin^2 x}{1+\cos x}⁠, defined where cos⁡x≠−1\cos x \ne -1⁠, that is, x≠(2k+1)πx \ne (2k+1)\pi for integers kk⁠.
To find
∫sin⁡2x1+cos⁡x dx\displaystyle\int \frac{\sin^2 x}{1+\cos x}\,dx⁠.
Plan
(1) Rewrite sin⁡2x\sin^2 x and factorise. (2) Cancel 1+cos⁡x1 + \cos x⁠, noting where this is allowed. (3) Integrate. (4) Differentiate back to check and state where the answer is valid.

Basics you need

1The Pythagorean identity

sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1⁠, so sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x⁠. Basics: trigonometric identities for integrals

2Difference of two squares

a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b)⁠. Basics: splitting fractions

3Standard integrals

∫dx=x+C\int dx = x + C and ∫cos⁡x dx=sin⁡x+C\int\cos x\,dx = \sin x + C (standard formulae, Section 7.2). Lesson: integration as anti-differentiation

4Checking an integral

F(x)+CF(x) + C is right exactly when F′(x)F'(x) is the integrand (Property (I), Section 7.2.1). Basics: integration undoes differentiation

Solution

  1. Rewrite the numerator and factorise

    sin⁡2x=1−cos⁡2x=(1−cos⁡x)(1+cos⁡x).\sin^2 x = 1 - \cos^2 x = (1 - \cos x)(1 + \cos x).
    The denominator is 1+cos⁡x1 + \cos x⁠, so we want the numerator in terms of cos⁡x\cos x too. The Pythagorean identity does that, and the result is a difference of two squares (12−cos⁡2x1^2 - \cos^2 x⁠) with 1+cos⁡x1 + \cos x as one of its factors.
    sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x⁠; a2−b2=(a−b)(a+b)a^2 - b^2 = (a-b)(a+b) with a=1a = 1⁠, b=cos⁡xb = \cos x⁠. Basics: trigonometric identities
  2. Cancel the common factor

    Wherever 1+cos⁡x≠01 + \cos x \ne 0⁠, that is, wherever the integrand is defined:

    sin⁡2x1+cos⁡x=(1−cos⁡x)(1+cos⁡x)1+cos⁡x=1−cos⁡x.\frac{\sin^2 x}{1 + \cos x} = \frac{(1 - \cos x)(1 + \cos x)}{1 + \cos x} = 1 - \cos x.
    We may only cancel a factor that is not zero. Here that is automatic: the points where 1+cos⁡x=01 + \cos x = 0 (the odd multiples of π\pi⁠) are exactly the points excluded from the integrand's domain. So on its domain the integrand equals 1−cos⁡x1 - \cos x⁠.
  3. Integrate

    ∫sin⁡2x1+cos⁡x dx=∫(1−cos⁡x) dx=x−sin⁡x+C.\begin{aligned} \int \frac{\sin^2 x}{1 + \cos x}\,dx &= \int (1 - \cos x)\,dx \\ &= x - \sin x + C. \end{aligned}
    Both terms are standard: ∫1 dx=x\int 1\,dx = x and ∫cos⁡x dx=sin⁡x\int\cos x\,dx = \sin x⁠.
    Standard formulae, Section 7.2; Properties (III), (IV), Section 7.2.1. Lesson: integration as anti-differentiation
  4. Check: differentiate the answer back, and say where it is valid

    With F(x)=x−sin⁡xF(x) = x - \sin x⁠:

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

    for every xx with cos⁡x≠−1\cos x \ne -1⁠. So the answer is valid on each interval ((2k−1)π, (2k+1)π)\big((2k-1)\pi,\ (2k+1)\pi\big)⁠.

    x−sin⁡xx - \sin x itself is defined for all xx⁠, but the integrand is not defined at the odd multiples of π\pi⁠, so the statement "F′=F' = integrand" only makes sense away from those points. (Near them the integrand tends to 1−(−1)=21 - (-1) = 2⁠, so these are only "holes"; but the question's function is still undefined there.)
    ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠; Property (I), Section 7.2.1. Basics: integration undoes differentiation
Result ∫sin⁡2x1+cos⁡x dx=x−sin⁡x+C,\int \frac{\sin^2 x}{1 + \cos x}\,dx = x - \sin x + C,

valid wherever cos⁡x≠−1\cos x \ne -1⁠, i.e. x≠(2k+1)πx \ne (2k+1)\pi⁠. (Textbook answer: x−sin⁡x+Cx - \sin x + C⁠.)

Check it with numbers

The simplification at x=1x = 1⁠: sin⁡211+cos⁡1\dfrac{\sin^2 1}{1 + \cos 1} ≈0.70807341.5403023\approx \dfrac{0.7080734}{1.5403023} ≈0.4596977\approx 0.4596977⁠, and 1−cos⁡1≈0.45969771 - \cos 1 \approx 0.4596977⁠.

The derivative at x=1x = 1⁠, h=0.001h = 0.001⁠: F(1.001)≈0.1589891337F(1.001) \approx 0.1589891337⁠, F(0.999)≈0.1580697381F(0.999) \approx 0.1580697381⁠, slope ≈0.4596978\approx 0.4596978⁠, matching the integrand 0.45969770.4596977 to six significant figures.

Common mistakes
  1. Splitting the fraction as sin⁡2x1+sin⁡2xcos⁡x\frac{\sin^2 x}{1} + \frac{\sin^2 x}{\cos x}⁠. A sum in the denominator cannot be split.
  2. Taking the long road. Half-angles (1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2} and sin⁡2x=4sin⁡2x2cos⁡2x2\sin^2 x = 4\sin^2\frac{x}{2}\cos^2\frac{x}{2}⁠) also work (it gives 2sin⁡2x2=1−cos⁡x2\sin^2\frac{x}{2} = 1 - \cos x⁠), but it is a longer road to the same place.
  3. Cancelling without a word. Say that 1+cos⁡x≠01 + \cos x \ne 0 on the domain; that is what makes the cancellation legal.
What to take away
  1. Before reaching for half-angles, look for a factor to cancel: sin⁡2x=(1−cos⁡x)(1+cos⁡x)\sin^2 x = (1 - \cos x)(1 + \cos x)⁠.
  2. Cancellation is legal where the cancelled factor is nonzero; state the domain.
  3. Similarly sin⁡2x1−cos⁡x=1+cos⁡x\frac{\sin^2 x}{1 - \cos x} = 1 + \cos x wherever cos⁡x≠1\cos x \ne 1⁠.

Every fact used, and where it comes from

FactUsed inSource
sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1Step 1Pythagorean identity (Class XI trigonometry)
a2−b2=(a−b)(a+b)a^2 - b^2 = (a - b)(a + b)Steps 1, 4Algebra
∫dx=x+C\int dx = x + C⁠; ∫cos⁡x dx=sin⁡x+C\int\cos x\,dx = \sin x + CStep 3Standard formulae, Section 7.2
Sum and constant-multiple rulesStep 3Properties (III), (IV), Section 7.2.1
Differentiation undoes integrationStep 4Property (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 →