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

Exercise 7.2 · Q24: ∫2cos⁡x−3sin⁡x6cos⁡x+4sin⁡x dx\int\frac{2\cos x-3\sin x}{6\cos x+4\sin x}\,dx

Exercise 7.2Integration by substitution · Section 7.3.1
The question

Integrate the function

2cos⁡x−3sin⁡x6cos⁡x+4sin⁡x.\frac{2\cos x - 3\sin x}{6\cos x + 4\sin x}.
Exam answer

Let I=∫2cos⁡x−3sin⁡x6cos⁡x+4sin⁡x dxI = \displaystyle\int\frac{2\cos x - 3\sin x}{6\cos x + 4\sin x}\,dx⁠.

I=12∫2cos⁡x−3sin⁡x3cos⁡x+2sin⁡x dxI = \frac12\int\frac{2\cos x - 3\sin x}{3\cos x + 2\sin x}\,dx

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

∴ I=12∫dtt=12log⁡∣t∣+C\therefore\ I = \frac12\int\frac{dt}{t} = \frac12\log|t| + C

∴ I=12log⁡∣2sin⁡x+3cos⁡x∣\therefore\ I = \dfrac12\log\left|2\sin x + 3\cos x\right| +C+ C⁠.

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

The one idea this problem is built on

The denominator is 2(3cos⁡x+2sin⁡x)2(3\cos x + 2\sin x)⁠, and the derivative of 3cos⁡x+2sin⁡x3\cos x + 2\sin x is −3sin⁡x+2cos⁡x-3\sin x + 2\cos x⁠, which is exactly the numerator. So put t=3cos⁡x+2sin⁡xt = 3\cos x + 2\sin x⁠: the integral becomes 12∫dtt=12log⁡∣t∣+C\frac12\int\frac{dt}{t} = \frac12\log|t| + C⁠.

Given, to find, and the plan
Given
f(x)=2cos⁡x−3sin⁡x6cos⁡x+4sin⁡xf(x) = \dfrac{2\cos x - 3\sin x}{6\cos x + 4\sin x}⁠, defined where 6cos⁡x+4sin⁡x≠06\cos x + 4\sin x \ne 0⁠.
To find
∫2cos⁡x−3sin⁡x6cos⁡x+4sin⁡x dx\displaystyle\int \frac{2\cos x - 3\sin x}{6\cos x + 4\sin x}\,dx⁠.
Plan
(1) Factor 2 out of the denominator. (2) Differentiate what is left and compare with the numerator. (3) Substitute t=3cos⁡x+2sin⁡xt = 3\cos x + 2\sin x⁠. (4) Integrate 1t\frac1t and return to xx⁠. (5) Differentiate back, state the domain, and compare with another choice of tt⁠.

Basics you need

1Derivatives of sin⁡\sin and cos⁡\cos

ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x and ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠. Basics: integration undoes differentiation

2Numerator equal to the derivative of the denominator

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

3Substitution

If t=g(x)t = g(x)⁠, then dt=g′(x) dxdt = g'(x)\,dx⁠. Basics: substitution

4Logarithm of a product

log⁡(ab)=log⁡a+log⁡b\log(ab) = \log a + \log b for a,b>0a, b > 0⁠, so a constant factor inside a logarithm becomes an added constant. Basics: logarithms

Solution

  1. Take the common factor out of the denominator

    2cos⁡x−3sin⁡x6cos⁡x+4sin⁡x=12⋅2cos⁡x−3sin⁡x3cos⁡x+2sin⁡x.\frac{2\cos x - 3\sin x}{6\cos x + 4\sin x} = \frac12\cdot\frac{2\cos x - 3\sin x}{3\cos x + 2\sin x}.
    Both coefficients of the denominator, 6 and 4, are even. Removing the 2 leaves a denominator whose derivative we can compare directly with the numerator.
  2. Differentiate the new denominator

    ddx(3cos⁡x+2sin⁡x)=−3sin⁡x+2cos⁡x=2cos⁡x−3sin⁡x.\begin{aligned} \frac{d}{dx}\left(3\cos x + 2\sin x\right) &= -3\sin x + 2\cos x \\ &= 2\cos x - 3\sin x. \end{aligned}

    This is exactly the numerator.

    ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠, ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x (Chapter 5, Table 5.3). Basics: integration undoes differentiation
  3. Substitute t=3cos⁡x+2sin⁡xt = 3\cos x + 2\sin x

    Let t=3cos⁡x+2sin⁡xt = 3\cos x + 2\sin x⁠. By Step 2, dt=(2cos⁡x−3sin⁡x) dxdt = (2\cos x - 3\sin x)\,dx⁠. Hence

    ∫2cos⁡x−3sin⁡x6cos⁡x+4sin⁡x dx=12∫dtt.\int\frac{2\cos x - 3\sin x}{6\cos x + 4\sin x}\,dx = \frac12\int\frac{dt}{t}.
    The numerator times dxdx is precisely dtdt⁠, and the denominator (after Step 1) is tt⁠. No xx remains.
    Change of variable, Section 7.3.1; Property (IV), Section 7.2.1. Lesson: integration by substitution
  4. Integrate and return to xx

    12∫dtt=12log⁡∣t∣+C=12log⁡∣3cos⁡x+2sin⁡x∣+C.\begin{aligned} \frac12\int\frac{dt}{t} &= \frac12\log|t| + C \\ &= \frac12\log\left|3\cos x + 2\sin x\right| + C. \end{aligned}

    Written in the book's order, this is 12log⁡∣2sin⁡x+3cos⁡x∣+C\frac12\log\left|2\sin x + 3\cos x\right| + C⁠.

    The modulus stays: 3cos⁡x+2sin⁡x3\cos x + 2\sin x is negative for some xx (for instance x=πx = \pi gives −3-3⁠).
    Standard formula (xii), Section 7.2. Basics: logarithms and 1/x
  5. Check: differentiate the answer back

    With u=3cos⁡x+2sin⁡xu = 3\cos x + 2\sin x and ddxlog⁡∣u∣=u′u\frac{d}{dx}\log|u| = \frac{u'}{u}⁠:

    ddx[12log⁡∣u∣]=12⋅2cos⁡x−3sin⁡x3cos⁡x+2sin⁡x=2cos⁡x−3sin⁡x6cos⁡x+4sin⁡x.\begin{aligned} \frac{d}{dx}\left[\frac12\log|u|\right] &= \frac12\cdot\frac{2\cos x - 3\sin x}{3\cos x + 2\sin x} \\ &= \frac{2\cos x - 3\sin x}{6\cos x + 4\sin x}. \end{aligned}

    This is the integrand, so the answer is correct.

    Chain rule, Theorem 4, Section 5.3.1; Property (I), Section 7.2.1.
  6. Where the answer is valid

    We need 3cos⁡x+2sin⁡x≠03\cos x + 2\sin x \ne 0⁠. Where cos⁡x=0\cos x = 0⁠, the expression is 2sin⁡x=±2≠02\sin x = \pm 2 \ne 0⁠, so those points are fine. Elsewhere, dividing by cos⁡x\cos x⁠, the condition is

    tan⁡x≠−32.\tan x \ne -\frac32.

    So the excluded points are x=kπ−tan⁡−132x = k\pi - \tan^{-1}\frac32⁠, k∈Zk \in \Z⁠, and the answer holds on each open interval between them.

    These are exactly the zeros of the denominator 6cos⁡x+4sin⁡x=2(3cos⁡x+2sin⁡x)6\cos x + 4\sin x = 2(3\cos x + 2\sin x)⁠, where the integrand itself is undefined.
  7. A different substitution changes only the constant

    Suppose we skip Step 1 and put s=6cos⁡x+4sin⁡xs = 6\cos x + 4\sin x⁠. Then ds=2(2cos⁡x−3sin⁡x) dxds = 2(2\cos x - 3\sin x)\,dx⁠, and

    ∫f(x) dx=12∫dss=12log⁡∣6cos⁡x+4sin⁡x∣+C′.\begin{aligned} \int f(x)\,dx &= \frac12\int\frac{ds}{s} \\ &= \frac12\log\left|6\cos x + 4\sin x\right| + C'. \end{aligned}

    Since ∣6cos⁡x+4sin⁡x∣=2 ∣3cos⁡x+2sin⁡x∣|6\cos x + 4\sin x| = 2\,|3\cos x + 2\sin x|⁠,

    12log⁡∣6cos⁡x+4sin⁡x∣=12log⁡2+12log⁡∣3cos⁡x+2sin⁡x∣.\begin{aligned} &\frac12\log\left|6\cos x + 4\sin x\right| \\ &\quad= \frac12\log 2 + \frac12\log\left|3\cos x + 2\sin x\right|. \end{aligned}

    The two answers differ by the constant 12log⁡2\frac12\log 2⁠, which is absorbed into the arbitrary constant. Both are correct.

    Indefinite integrals are families F(x)+CF(x) + C⁠; two antiderivatives that differ by a constant describe the same family (Property (II), Section 7.2.1).
    log⁡(ab)=log⁡a+log⁡b\log(ab) = \log a + \log b for a,b>0a, b > 0 (Section 5.4).
Result ∫2cos⁡x−3sin⁡x6cos⁡x+4sin⁡x dx=12log⁡∣2sin⁡x+3cos⁡x∣+C,\begin{aligned} &\int\frac{2\cos x - 3\sin x}{6\cos x + 4\sin x}\,dx \\ &\quad= \frac12\log\left|2\sin x + 3\cos x\right| + C, \end{aligned}

valid wherever 2sin⁡x+3cos⁡x≠02\sin x + 3\cos x \ne 0⁠. (Textbook answer: 12log⁡∣2sin⁡x+3cos⁡x∣+C\frac12\log|2\sin x + 3\cos x| + C⁠.)

Check it with numbers

Let F(x)=12log⁡∣2sin⁡x+3cos⁡x∣F(x) = \frac12\log\left|2\sin x + 3\cos x\right| and look near x=0x = 0 with h=0.001h = 0.001⁠:

  • F(0.001)≈0.549639117F(0.001) \approx 0.549639117 and F(−0.001)≈0.548972450F(-0.001) \approx 0.548972450⁠.
  • Slope estimate: F(0.001)−F(−0.001)0.002\dfrac{F(0.001) - F(-0.001)}{0.002} ≈0.333333\approx 0.333333⁠.
  • Integrand at x=0x = 0⁠: 2⋅1−06⋅1+0=13≈0.333333\dfrac{2\cdot 1 - 0}{6\cdot 1 + 0} = \dfrac13 \approx 0.333333⁠.

They agree.

Common mistakes
  1. Forgetting the 12\frac12⁠. The derivative of the full denominator 6cos⁡x+4sin⁡x6\cos x + 4\sin x is twice the numerator.
  2. Sign errors in ddxcos⁡x\frac{d}{dx}\cos x⁠. It is −sin⁡x-\sin x⁠; with +sin⁡x+\sin x the numerator would not match.
  3. Thinking the book's answer and 12log⁡∣6cos⁡x+4sin⁡x∣\frac12\log|6\cos x + 4\sin x| disagree. They differ by a constant (Step 7).
  4. Dropping the modulus. The denominator takes negative values.
What to take away
  1. For acos⁡x+bsin⁡xccos⁡x+dsin⁡x\frac{a\cos x + b\sin x}{c\cos x + d\sin x}⁠, first check whether the numerator is a multiple of the derivative of the denominator.
  2. Different correct substitutions can give answers that look different; they always differ by a constant.

Every fact used, and where it comes from

FactUsed inSource
ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x⁠, ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin xSteps 2, 5, 7Table 5.3, Section 5.3; formulae (ii), (iii), Section 7.2
Change of variable (substitution)Steps 3, 7Section 7.3.1 (Lesson: integration by substitution)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CSteps 4, 7Standard formula (xii), Section 7.2
Chain ruleStep 5Theorem 4, Section 5.3.1
Antiderivatives differing by a constant are the same familyStep 7Property (II), Section 7.2.1
log⁡(ab)=log⁡a+log⁡b\log(ab) = \log a + \log bStep 7Section 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 →