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

Example 15: ∫(3sin⁡ϕ−2)cos⁡ϕ5−cos⁡2ϕ−4sin⁡ϕ dϕ\int\frac{(3\sin\phi-2)\cos\phi}{5-\cos^2\phi-4\sin\phi}\,d\phi

ExamplesPartial fractions with substitution · Section 7.5
The question

Find

∫(3sin⁡ϕ−2)cos⁡ϕ5−cos⁡2ϕ−4sin⁡ϕ dϕ\int \frac{(3\sin\phi - 2)\cos\phi}{5 - \cos^2\phi - 4\sin\phi}\,d\phi
Exam answer

Let I=∫(3sin⁡ϕ−2)cos⁡ϕ5−cos⁡2ϕ−4sin⁡ϕ dϕI = \displaystyle\int \frac{(3\sin\phi - 2)\cos\phi}{5 - \cos^2\phi - 4\sin\phi}\,d\phi⁠.

5−cos⁡2ϕ−4sin⁡ϕ=5−(1−sin⁡2ϕ)−4sin⁡ϕ=sin⁡2ϕ−4sin⁡ϕ+4=(sin⁡ϕ−2)2\begin{aligned} &5 - \cos^2\phi - 4\sin\phi \\ &= 5 - (1 - \sin^2\phi) - 4\sin\phi \\ &= \sin^2\phi - 4\sin\phi + 4 \\ &= (\sin\phi - 2)^2 \end{aligned}

Put sin⁡ϕ=t\sin\phi = t⁠. Then cos⁡ϕ dϕ=dt\cos\phi\,d\phi = dt⁠.

∴ I=∫3t−2(t−2)2 dt\therefore\ I = \int\frac{3t - 2}{(t - 2)^2}\,dt

Let

3t−2(t−2)2=At−2+B(t−2)2\frac{3t - 2}{(t - 2)^2} = \frac{A}{t - 2} + \frac{B}{(t - 2)^2} ⇒ 3t−2=A(t−2)+B\Rightarrow\ 3t - 2 = A(t - 2) + B

Comparing coefficients: A=3A = 3 and −2A+B=−2-2A + B = -2⁠, so B=4B = 4⁠.

∴ I=3∫dtt−2+4∫dt(t−2)2=3log⁡∣t−2∣−4t−2+C\begin{aligned} \therefore\ I &= 3\int\frac{dt}{t - 2} + 4\int\frac{dt}{(t - 2)^2} \\ &= 3\log|t - 2| - \frac{4}{t - 2} + C \end{aligned}

Putting t=sin⁡ϕt = \sin\phi⁠, where ∣sin⁡ϕ−2∣=2−sin⁡ϕ|\sin\phi - 2| = 2 - \sin\phi (as sin⁡ϕ≤1\sin\phi \le 1⁠) and −4t−2=42−t-\frac{4}{t - 2} = \frac{4}{2 - t}⁠:

∴ I=3log⁡(2−sin⁡ϕ)\therefore\ I = 3\log(2 - \sin\phi) +42−sin⁡ϕ+C+ \dfrac{4}{2 - \sin\phi} + C⁠.

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

The one idea this problem is built on

Apart from one factor cos⁡ϕ\cos\phi⁠, everything can be written in terms of sin⁡ϕ\sin\phi (use cos⁡2ϕ=1−sin⁡2ϕ\cos^2\phi = 1 - \sin^2\phi⁠). And cos⁡ϕ dϕ\cos\phi\,d\phi is exactly the differential of sin⁡ϕ\sin\phi⁠. So the substitution y=sin⁡ϕy = \sin\phi turns the whole integral into one of a rational function of yy, which partial fractions can handle. This time the substitution is a real change of the integration variable, unlike the shorthand in Example 14.

Given, to find, and the plan
Given
The integrand (3sin⁡ϕ−2)cos⁡ϕ5−cos⁡2ϕ−4sin⁡ϕ\frac{(3\sin\phi - 2)\cos\phi}{5 - \cos^2\phi - 4\sin\phi}⁠, a function of the angle ϕ\phi⁠.
To find
Its indefinite integral with respect to ϕ\phi⁠, and where it is valid.
Plan
(1) Write the bottom in terms of sin⁡ϕ\sin\phi and show it is never zero. (2) Substitute y=sin⁡ϕy = \sin\phi⁠. (3) Split 3y−2(y−2)2\frac{3y-2}{(y-2)^2} by Table 7.2, row 2. (4) Integrate in yy⁠. (5) Return to ϕ\phi⁠, removing the absolute value. (6) Differentiate back.

Basics you need

1Integration by substitution

If y=g(ϕ)y = g(\phi) then dy=g′(ϕ) dϕdy = g'(\phi)\,d\phi⁠, and ∫f(g(ϕ)) g′(ϕ) dϕ=∫f(y) dy\int f(g(\phi))\,g'(\phi)\,d\phi = \int f(y)\,dy (Section 7.3.1). Here y=sin⁡ϕy = \sin\phi⁠, dy=cos⁡ϕ dϕdy = \cos\phi\,d\phi⁠. Basics: substitution

2The Pythagorean identity

sin⁡2ϕ+cos⁡2ϕ=1\sin^2\phi + \cos^2\phi = 1⁠, so cos⁡2ϕ=1−sin⁡2ϕ\cos^2\phi = 1 - \sin^2\phi⁠. Basics: trigonometric identities

3Partial fractions, repeated linear factor

Table 7.2, row 2: py+q(y−a)2=Ay−a+B(y−a)2\frac{py+q}{(y-a)^2} = \frac{A}{y-a} + \frac{B}{(y-a)^2}⁠. Basics: splitting fractions

4Logarithm and power integrals

∫dyy−a=log⁡∣y−a∣+C\int\frac{dy}{y-a} = \log|y-a| + C (formula (xii)) and ∫(y−a)−2dy=−1y−a+C\int (y-a)^{-2}dy = -\frac{1}{y-a} + C (formula (i)). Basics: logarithms and 1/x

Solution

  1. Write the bottom in terms of sin⁡ϕ\sin\phi

    Using cos⁡2ϕ=1−sin⁡2ϕ\cos^2\phi = 1 - \sin^2\phi⁠:

    5−cos⁡2ϕ−4sin⁡ϕ=5−(1−sin⁡2ϕ)−4sin⁡ϕ=sin⁡2ϕ−4sin⁡ϕ+4=(sin⁡ϕ−2)2.\begin{aligned} 5 - \cos^2\phi - 4\sin\phi &= 5 - (1 - \sin^2\phi) - 4\sin\phi \\ &= \sin^2\phi - 4\sin\phi + 4 \\ &= (\sin\phi - 2)^2. \end{aligned}

    Since sin⁡ϕ≤1\sin\phi \le 1⁠, we have sin⁡ϕ−2≤−1\sin\phi - 2 \le -1⁠, so the bottom is at least 11⁠. It is never zero, and the integrand is defined for every real ϕ\phi⁠.

    We want the integrand in terms of sin⁡ϕ\sin\phi only (plus the single cos⁡ϕ\cos\phi that will become part of dydy⁠). Recognising the perfect square s2−4s+4=(s−2)2s^2 - 4s + 4 = (s-2)^2 also tells us at once where the integrand is defined.
    sin⁡2ϕ+cos⁡2ϕ=1\sin^2\phi + \cos^2\phi = 1⁠; and −1≤sin⁡ϕ≤1-1 \le \sin\phi \le 1 for every ϕ\phi⁠. Basics: trigonometric identities
  2. Substitute y=sin⁡ϕy = \sin\phi

    Let y=sin⁡ϕy = \sin\phi⁠. Then dy=cos⁡ϕ dϕdy = \cos\phi\,d\phi⁠, and

    ∫(3sin⁡ϕ−2)cos⁡ϕ5−cos⁡2ϕ−4sin⁡ϕ dϕ=∫(3y−2) dy5−(1−y2)−4y=∫3y−2y2−4y+4 dy=∫3y−2(y−2)2 dy.\begin{aligned} &\int \frac{(3\sin\phi - 2)\cos\phi}{5 - \cos^2\phi - 4\sin\phi}\,d\phi \\ &= \int \frac{(3y-2)\,dy}{5 - (1 - y^2) - 4y} \\ &= \int \frac{3y-2}{y^2 - 4y + 4}\,dy = \int \frac{3y-2}{(y-2)^2}\,dy. \end{aligned}

    Call this integral II⁠. The new variable yy takes values in [−1,1][-1, 1]⁠.

    The factor cos⁡ϕ dϕ\cos\phi\,d\phi in the question is replaced by dydy⁠; nothing involving ϕ\phi is left. That is the test of a good substitution. The range −1≤y≤1-1 \le y \le 1 will matter in Step 5, when we decide the sign of y−2y - 2⁠.
    Substitution rule (Section 7.3.1); ddϕsin⁡ϕ=cos⁡ϕ\frac{d}{d\phi}\sin\phi = \cos\phi⁠. Lesson: substitution
  3. Split 3y−2(y−2)2\frac{3y-2}{(y-2)^2} into partial fractions

    The fraction is proper (top degree 1, bottom degree 2) and the bottom is a repeated linear factor. By Table 7.2, row 2,

    3y−2(y−2)2=Ay−2+B(y−2)2,\frac{3y-2}{(y-2)^2} = \frac{A}{y-2} + \frac{B}{(y-2)^2}, 3y−2=A(y−2)+B.3y - 2 = A(y-2) + B.

    Comparing coefficients: of yy⁠, A=3A = 3⁠; constant terms, B−2A=−2B - 2A = -2⁠, so B=4B = 4⁠. (Check: y=2y = 2 gives 4=B4 = B⁠.) So

    3y−2(y−2)2=3y−2+4(y−2)2.\frac{3y-2}{(y-2)^2} = \frac{3}{y-2} + \frac{4}{(y-2)^2}.
    Another way to see it: 3y−2=3(y−2)+43y - 2 = 3(y - 2) + 4⁠, and dividing by (y−2)2(y-2)^2 gives the same two pieces. Either way, both powers of the repeated factor are needed.
    Equal polynomials have equal coefficients. Lesson: partial fractions
  4. Integrate in yy

    I=3∫dyy−2+4∫dy(y−2)2=3log⁡∣y−2∣+4(−1y−2)+C.\begin{aligned} I &= 3\int\frac{dy}{y-2} + 4\int\frac{dy}{(y-2)^2} \\ &= 3\log|y-2| + 4\left(-\frac{1}{y-2}\right) + C. \end{aligned}
    The first piece is a shifted 1y\frac1y⁠, so it gives a logarithm. The second is the power (y−2)−2(y-2)^{-2}⁠, which by the power rule integrates to (y−2)−1−1=−1y−2\frac{(y-2)^{-1}}{-1} = -\frac{1}{y-2}⁠.
    Formulae (xii) and (i) with the substitution t=y−2t = y - 2⁠, dt=dydt = dy⁠. Basics: powers of x
  5. Return to ϕ\phi and remove the absolute value

    Put y=sin⁡ϕy = \sin\phi back:

    I=3log⁡∣sin⁡ϕ−2∣+42−sin⁡ϕ+C,I = 3\log|\sin\phi - 2| + \frac{4}{2 - \sin\phi} + C,

    using −4sin⁡ϕ−2=42−sin⁡ϕ-\frac{4}{\sin\phi - 2} = \frac{4}{2 - \sin\phi}⁠. Since sin⁡ϕ≤1\sin\phi \le 1⁠, the number sin⁡ϕ−2\sin\phi - 2 is always negative, so ∣sin⁡ϕ−2∣=2−sin⁡ϕ|\sin\phi - 2| = 2 - \sin\phi⁠, which is always positive. Therefore

    I=3log⁡(2−sin⁡ϕ)+42−sin⁡ϕ+C.I = 3\log(2 - \sin\phi) + \frac{4}{2 - \sin\phi} + C.
    The answer to an integral in ϕ\phi must be written in ϕ\phi⁠. The absolute value can be removed only because we know the sign of what is inside: ∣u∣=−u|u| = -u when u<0u < 0⁠. This is the book's remark "since 2−sin⁡ϕ2 - \sin\phi is always positive".
    ∣u∣=−u|u| = -u for u<0u < 0⁠; −1≤sin⁡ϕ≤1-1 \le \sin\phi \le 1⁠. Basics: logarithms and 1/x
  6. Check: differentiate the answer

    By the chain rule, ddϕlog⁡(2−sin⁡ϕ)=−cos⁡ϕ2−sin⁡ϕ\frac{d}{d\phi}\log(2 - \sin\phi) = \frac{-\cos\phi}{2 - \sin\phi} and ddϕ(2−sin⁡ϕ)−1=cos⁡ϕ(2−sin⁡ϕ)2\frac{d}{d\phi}(2 - \sin\phi)^{-1} = \frac{\cos\phi}{(2 - \sin\phi)^2}⁠. So

    ddϕ[3log⁡(2−sin⁡ϕ)+42−sin⁡ϕ]=−3cos⁡ϕ2−sin⁡ϕ+4cos⁡ϕ(2−sin⁡ϕ)2=cos⁡ϕ [−3(2−sin⁡ϕ)+4](2−sin⁡ϕ)2=(3sin⁡ϕ−2)cos⁡ϕ(2−sin⁡ϕ)2.\begin{aligned} &\frac{d}{d\phi}\left[3\log(2 - \sin\phi) + \frac{4}{2 - \sin\phi}\right] \\ &= \frac{-3\cos\phi}{2 - \sin\phi} + \frac{4\cos\phi}{(2 - \sin\phi)^2} \\ &= \frac{\cos\phi\,[-3(2 - \sin\phi) + 4]}{(2 - \sin\phi)^2} \\ &= \frac{(3\sin\phi - 2)\cos\phi}{(2 - \sin\phi)^2}. \end{aligned}

    By Step 1, (2−sin⁡ϕ)2=(sin⁡ϕ−2)2(2 - \sin\phi)^2 = (\sin\phi - 2)^2⁠, and this equals 5−cos⁡2ϕ−4sin⁡ϕ5 - \cos^2\phi - 4\sin\phi⁠. So the derivative is exactly the integrand.

    Differentiating returns the original integrand for every ϕ\phi⁠, which confirms the substitution, the partial fractions and the sign handling all at once.
    Chain rule; ddϕsin⁡ϕ=cos⁡ϕ\frac{d}{d\phi}\sin\phi = \cos\phi⁠. Basics: integration undoes differentiation
Result ∫(3sin⁡ϕ−2)cos⁡ϕ5−cos⁡2ϕ−4sin⁡ϕ dϕ=3log⁡(2−sin⁡ϕ)+42−sin⁡ϕ+C,\begin{aligned} &\int \frac{(3\sin\phi - 2)\cos\phi}{5 - \cos^2\phi - 4\sin\phi}\,d\phi \\ &= 3\log(2 - \sin\phi) + \frac{4}{2 - \sin\phi} + C, \end{aligned}

valid for every real ϕ\phi (the bottom is never zero and 2−sin⁡ϕ≥12 - \sin\phi \ge 1⁠). This is the book's answer.

Check it with numbers

At a point. At ϕ=π6\phi = \frac{\pi}{6} (sin⁡ϕ=0.5\sin\phi = 0.5⁠, cos⁡ϕ=0.8660254…\cos\phi = 0.8660254\ldots⁠) the integrand is

(1.5−2)(0.8660254)5−0.75−2=−0.1924500…,\frac{(1.5 - 2)(0.8660254)}{5 - 0.75 - 2} = -0.1924500\ldots,

and the derivative found in Step 6 gives (−0.5)(0.8660254)1.52\frac{(-0.5)(0.8660254)}{1.5^2}⁠, the same −0.1924500…-0.1924500\ldots

Over an interval. On [0,π2]\left[0, \frac\pi2\right] our answer gives

F(π2)−F(0)=(0+4)−(3log⁡2+2)=2−3log⁡2≈−0.0794415417\begin{aligned} F\left(\tfrac\pi2\right) - F(0) &= (0 + 4) - (3\log 2 + 2) \\ &= 2 - 3\log 2 \approx -0.0794415417 \end{aligned}

Numerical integration over [0,π2]\left[0, \frac\pi2\right] gives −0.0794415417-0.0794415417 to ten decimal places, the same.

Common mistakes
  1. Forgetting that cos⁡ϕ dϕ\cos\phi\,d\phi becomes dydy⁠. The cos⁡ϕ\cos\phi on top is used up by the substitution; it does not stay in the integrand.
  2. Expanding 5−(1−y2)5 - (1 - y^2) wrongly. It is 4+y24 + y^2⁠, so the bottom is y2−4y+4y^2 - 4y + 4⁠.
  3. Writing log⁡(sin⁡ϕ−2)\log(\sin\phi - 2)⁠. sin⁡ϕ−2\sin\phi - 2 is always negative; the correct form is log⁡∣sin⁡ϕ−2∣=log⁡(2−sin⁡ϕ)\log|\sin\phi - 2| = \log(2 - \sin\phi)⁠.
  4. Sign of the second term. −4sin⁡ϕ−2=+42−sin⁡ϕ-\frac{4}{\sin\phi - 2} = +\frac{4}{2 - \sin\phi}⁠.
What to take away
  1. If the integrand is a function of sin⁡ϕ\sin\phi times cos⁡ϕ\cos\phi⁠, substitute y=sin⁡ϕy = \sin\phi⁠.
  2. A substitution can turn a trigonometric integral into a rational one; then partial fractions finish it.
  3. Knowing the range of the new variable (−1≤y≤1-1 \le y \le 1⁠) lets you remove absolute values safely.

Every fact used, and where it comes from

FactUsed inSource
sin⁡2ϕ+cos⁡2ϕ=1\sin^2\phi + \cos^2\phi = 1⁠; −1≤sin⁡ϕ≤1-1 \le \sin\phi \le 1Steps 1, 5Trigonometric functions (Class XI)
Substitution y=sin⁡ϕy = \sin\phi⁠, dy=cos⁡ϕ dϕdy = \cos\phi\,d\phiStep 2Section 7.3.1 (Lesson: substitution)
py+q(y−a)2=Ay−a+B(y−a)2\frac{py+q}{(y-a)^2} = \frac{A}{y-a} + \frac{B}{(y-a)^2}Step 3Table 7.2, row 2, Section 7.5 (Lesson: partial fractions)
Power rule; ∫1y dy=log⁡∣y∣+C\int\frac1y\,dy = \log|y| + CStep 4Standard formulae (i) and (xii), Section 7.2
∣u∣=−u|u| = -u for u<0u < 0Step 5Definition of absolute value
Chain ruleStep 6Chapter 5, Section 5.3.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 →