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

Miscellaneous · Q39 (MCQ): ∫cos⁡2x(sin⁡x+cos⁡x)2 dx\int\frac{\cos 2x}{(\sin x+\cos x)^2}\,dx

Miscellaneous ExerciseIntegration by substitution · Miscellaneous Exercise
The question

Choose the correct answer.

∫cos⁡2x(sin⁡x+cos⁡x)2 dx  is equal to\int\frac{\cos 2x}{(\sin x + \cos x)^2}\,dx \ \text{ is equal to}

(A) −1sin⁡x+cos⁡x+C\dfrac{-1}{\sin x + \cos x} + C    (B) log⁡∣sin⁡x+cos⁡x∣+C\log|\sin x + \cos x| + C
(C) log⁡∣sin⁡x−cos⁡x∣+C\log|\sin x - \cos x| + C    (D) 1(sin⁡x+cos⁡x)2\dfrac{1}{(\sin x + \cos x)^2}

Exam answer

Using cos⁡2x=cos⁡2x−sin⁡2x\cos 2x = \cos^2 x - \sin^2 x and cancelling sin⁡x+cos⁡x\sin x + \cos x⁠,

cos⁡2x(sin⁡x+cos⁡x)2=cos⁡x−sin⁡xsin⁡x+cos⁡x\begin{aligned} &\frac{\cos 2x}{(\sin x + \cos x)^2} \\ &= \frac{\cos x - \sin x}{\sin x + \cos x} \end{aligned}

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

∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C

Answer: (B) log⁡∣sin⁡x+cos⁡x∣+C\log|\sin x + \cos x| + C

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

The one idea this problem is built on

Factorise the numerator: cos⁡2x=cos⁡2x−sin⁡2x=(cos⁡x−sin⁡x)(cos⁡x+sin⁡x)\cos 2x = \cos^2 x - \sin^2 x = (\cos x - \sin x)(\cos x + \sin x)⁠. One factor cancels with the denominator, leaving cos⁡x−sin⁡xsin⁡x+cos⁡x\frac{\cos x - \sin x}{\sin x + \cos x}⁠. The numerator is now exactly the derivative of the denominator, so the integral is log⁡∣sin⁡x+cos⁡x∣+C\log|\sin x + \cos x| + C⁠, option (B).

Given, to find, and the plan
Given
The integrand f(x)=cos⁡2x(sin⁡x+cos⁡x)2f(x) = \dfrac{\cos 2x}{(\sin x + \cos x)^2} and four options.
To find
Which option is ∫f(x) dx\int f(x)\,dx⁠.
Plan
(1) Domain. (2) Factorise cos⁡2x\cos 2x and cancel. (3) Substitute t=sin⁡x+cos⁡xt = \sin x + \cos x⁠. (4) Differentiate back. (5) Test every option at a general point.

Basics you need

1Double angle and difference of squares

cos⁡2x=cos⁡2x−sin⁡2x\cos 2x = \cos^2 x - \sin^2 x⁠, and p2−q2=(p−q)(p+q)p^2 - q^2 = (p - q)(p + q)⁠. Basics: trigonometric identities

2∫g′(x)g(x) dx=log⁡∣g(x)∣+C\int\frac{g'(x)}{g(x)}\,dx = \log|g(x)| + C

Substitute t=g(x)t = g(x)⁠, dt=g′(x) dxdt = g'(x)\,dx⁠, then use ∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C (standard formula (xii), Section 7.2). Basics: logarithms and 1/x

3Testing an option

Differentiate it and compare with the integrand at a general point; a single special point can agree by coincidence. Lesson: integration as anti-differentiation

Solution

  1. Where is the integrand defined?

    We need sin⁡x+cos⁡x≠0\sin x + \cos x \ne 0⁠, that is tan⁡x≠−1\tan x \ne -1⁠, so

    x≠−π4+nπ,n an integer.x \ne -\frac{\pi}{4} + n\pi, \quad n \text{ an integer}.

    We work on any interval between consecutive such points, for example (−π4,3π4)\left(-\frac{\pi}{4}, \frac{3\pi}{4}\right)⁠.

    sin⁡x+cos⁡x=2sin⁡(x+π4)\sin x + \cos x = \sqrt2\sin\left(x + \frac{\pi}{4}\right)⁠, which is zero exactly when x+π4x + \frac{\pi}{4} is a multiple of π\pi⁠. At those points the integrand is undefined, and so is log⁡∣sin⁡x+cos⁡x∣\log|\sin x + \cos x|⁠.
  2. Factorise cos⁡2x\cos 2x and cancel

    cos⁡2x(sin⁡x+cos⁡x)2=(cos⁡x−sin⁡x)(cos⁡x+sin⁡x)(sin⁡x+cos⁡x)2=cos⁡x−sin⁡xsin⁡x+cos⁡x.\begin{aligned} &\frac{\cos 2x}{(\sin x + \cos x)^2} \\ &= \frac{(\cos x - \sin x)(\cos x + \sin x)}{(\sin x + \cos x)^2} \\ &= \frac{\cos x - \sin x}{\sin x + \cos x} . \end{aligned}
    cos⁡2x=cos⁡2x−sin⁡2x\cos 2x = \cos^2 x - \sin^2 x is a difference of squares. Of the three forms of cos⁡2x\cos 2x⁠, this is the one that shares a factor with the denominator. The cancellation is allowed because sin⁡x+cos⁡x≠0\sin x + \cos x \ne 0 on the domain (Step 1).
    cos⁡2x=cos⁡2x−sin⁡2x\cos 2x = \cos^2 x - \sin^2 x⁠. Basics: trigonometric identities
  3. Substitute t=sin⁡x+cos⁡xt = \sin x + \cos x

    Then dt=(cos⁡x−sin⁡x) dxdt = (\cos x - \sin x)\,dx⁠, exactly the numerator, and

    ∫cos⁡x−sin⁡xsin⁡x+cos⁡x dx=∫dtt=log⁡∣t∣+C.\begin{aligned} \int\frac{\cos x - \sin x}{\sin x + \cos x}\,dx &= \int\frac{dt}{t} \\ &= \log|t| + C . \end{aligned}

    So

    ∫cos⁡2x(sin⁡x+cos⁡x)2 dx=log⁡∣sin⁡x+cos⁡x∣+C.\begin{aligned} &\int\frac{\cos 2x}{(\sin x + \cos x)^2}\,dx \\ &= \log|\sin x + \cos x| + C . \end{aligned}
    The numerator is the derivative of the denominator, the pattern ∫g′g=log⁡∣g∣\int\frac{g'}{g} = \log|g|⁠. The absolute value is needed because sin⁡x+cos⁡x\sin x + \cos x is negative on some intervals of the domain, for example on (3π4,7π4)\left(\frac{3\pi}{4}, \frac{7\pi}{4}\right)⁠.
    Section 7.3.1; standard formula (xii), Section 7.2. Lesson: integration by substitution
  4. Check: differentiate the answer back

    ddxlog⁡∣sin⁡x+cos⁡x∣=cos⁡x−sin⁡xsin⁡x+cos⁡x=(cos⁡x−sin⁡x)(cos⁡x+sin⁡x)(sin⁡x+cos⁡x)2=cos⁡2x(sin⁡x+cos⁡x)2 ✓\begin{aligned} &\frac{d}{dx}\log|\sin x + \cos x| \\ &= \frac{\cos x - \sin x}{\sin x + \cos x} \\ &=\frac{(\cos x - \sin x)(\cos x + \sin x)}{(\sin x + \cos x)^2} \\ &= \frac{\cos 2x}{(\sin x + \cos x)^2} \ ✓ \end{aligned}
    ddxlog⁡∣u∣=u′u\frac{d}{dx}\log|u| = \frac{u'}{u}⁠. The second line reverses Step 2 by multiplying top and bottom by sin⁡x+cos⁡x\sin x + \cos x⁠.
  5. Examine every option

    Use the general point x=π6x = \frac{\pi}{6}⁠: s=sin⁡x+cos⁡x=1+32s = \sin x + \cos x = \frac{1 + \sqrt3}{2}⁠, cos⁡x−sin⁡x=3−12\cos x - \sin x = \frac{\sqrt3 - 1}{2}⁠, and s2=1+sin⁡2x=2+32s^2 = 1 + \sin 2x = \frac{2 + \sqrt3}{2}⁠. The integrand there is 3−13+1=2−3≈0.267949\frac{\sqrt3 - 1}{\sqrt3 + 1} = 2 - \sqrt3 \approx 0.267949⁠.

    • (A) ddx(−1s)=s′s2=cos⁡x−sin⁡x(sin⁡x+cos⁡x)2\frac{d}{dx}\left(\frac{-1}{s}\right) = \frac{s'}{s^2} = \frac{\cos x - \sin x}{(\sin x + \cos x)^2}⁠. At π6\frac{\pi}{6}⁠: 3−12+3\frac{\sqrt3 - 1}{2 + \sqrt3} =33−5= 3\sqrt3 - 5 ≈0.196152\approx 0.196152 ≠0.267949\ne 0.267949⁠. Wrong. (At x=0x = 0 both happen to equal 1, a coincidence: that is why a special point is not enough.)
    • (B) Derivative equals the integrand everywhere on the domain (Step 4); at π6\frac{\pi}{6} it is 2−32 - \sqrt3 ✓. Correct.
    • (C) ddxlog⁡∣sin⁡x−cos⁡x∣=cos⁡x+sin⁡xsin⁡x−cos⁡x\frac{d}{dx}\log|\sin x - \cos x| = \frac{\cos x + \sin x}{\sin x - \cos x}⁠. At π6\frac{\pi}{6}⁠: (1+3)/2(1−3)/2\frac{(1 + \sqrt3)/2}{(1 - \sqrt3)/2} =−(2+3)= -(2 + \sqrt3) ≈−3.732051\approx -3.732051⁠. Wrong.
    • (D) ddxs−2\frac{d}{dx}s^{-2} =−2s−3s′= -2s^{-3}s' =−2(cos⁡x−sin⁡x)(sin⁡x+cos⁡x)3= \frac{-2(\cos x - \sin x)}{(\sin x + \cos x)^3}⁠. At π6\frac{\pi}{6}⁠: ≈−0.287187\approx -0.287187⁠. Wrong. (It also lacks the constant CC⁠, so it could not be "the" indefinite integral anyway.)
    Option (D) is just the denominator's reciprocal, a reminder that integrating is not "dropping the numerator". Option (C) has the wrong sign inside: sin⁡x−cos⁡x\sin x - \cos x is not the expression whose derivative is the numerator.
Result

∫cos⁡2x(sin⁡x+cos⁡x)2 dx=log⁡∣sin⁡x+cos⁡x∣+C,\begin{aligned} &\int\frac{\cos 2x}{(\sin x + \cos x)^2}\,dx \\ &= \log|\sin x + \cos x| + C, \end{aligned} valid for x≠−π4+nπx \ne -\frac{\pi}{4} + n\pi⁠. The correct option is (B). (Textbook answer: B.)

Check it with numbers

Let F(x)=log⁡∣sin⁡x+cos⁡x∣F(x) = \log|\sin x + \cos x|⁠. With x=0.5x = 0.5⁠, h=0.001h = 0.001⁠: F(0.501)≈0.3055752F(0.501) \approx 0.3055752 and F(0.499)≈0.3049884F(0.499) \approx 0.3049884⁠, so the slope is about 0.00058680.002=0.2934\frac{0.0005868}{0.002} = 0.2934⁠; the integrand at 0.5 is cos⁡0.5−sin⁡0.5sin⁡0.5+cos⁡0.5\frac{\cos 0.5 - \sin 0.5}{\sin 0.5 + \cos 0.5} ≈0.2934080\approx 0.2934080 ✓.

Common mistakes
  1. Using cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x here: correct, but it hides the common factor. Choose the form that matches the denominator.
  2. Choosing (A) after testing only at x=0x = 0⁠, where it agrees by coincidence.
  3. Dropping the absolute value: sin⁡x+cos⁡x\sin x + \cos x can be negative.
What to take away
  1. cos⁡2x=(cos⁡x−sin⁡x)(cos⁡x+sin⁡x)\cos 2x = (\cos x - \sin x)(\cos x + \sin x) pairs naturally with sin⁡x±cos⁡x\sin x \pm \cos x in a denominator.
  2. When the numerator is the derivative of the denominator, the answer is log⁡∣denominator∣+C\log|\text{denominator}| + C⁠.

Every fact used, and where it comes from

FactUsed inSource
cos⁡2x=cos⁡2x−sin⁡2x\cos 2x = \cos^2 x - \sin^2 x⁠; sin⁡x+cos⁡x=2sin⁡(x+π4)\sin x + \cos x = \sqrt2\sin(x + \frac{\pi}{4})Steps 1, 2Trigonometric functions (Class XI)
Substitution; ∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 3Section 7.3.1; standard formula (xii), Section 7.2
F′=fF' = f tests an antiderivativeSteps 4, 5Property (I), Section 7.2.1
ddxlog⁡∣u∣=u′u\frac{d}{dx}\log|u| = \frac{u'}{u}⁠; chain ruleSteps 4, 5Chapter 5, Sections 5.3.1 and 5.4
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 →