SOLVER7 Study. Nothing Else.
Exercise 7.5 Q17

Integrate the rational functions in Exercises 1 to 21. \(\dfrac{cos\ x}{(1-sin\ x)(2-sin\ x)}\) \([\) Hint : Put \(sin\ x\ = t]\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy room and you want to tidy it up by sorting things into small boxes. This integral looks scary, but we notice that cosine and sine are best friends — one is the derivative of the other. So we swap sine for a simpler letter. Suddenly the scary fraction becomes a neat fraction with two small boxes at the bottom. We split it into two tiny, easy fractions. Each one gives a logarithm when integrated. Finally we swap our letter back to sine and the answer is clean.

Answer: \[ \int \frac{\cos x}{(1 - \sin x)(2 - \sin x)} \, dx = \ln\left| \frac{2 - \sin x}{1 - \sin x} \right| + C \]

📖 Integrating cos x / [(1 - sin x)(2 - sin x)]

Detailed Explanation

The key idea here is substitution followed by partial fractions. Notice that the numerator \( \cos x \) is exactly the derivative of \( \sin x \). Whenever the derivative of an inner expression appears in the numerator, a substitution simplifies the integral. So we put \( \sin x = t \), which gives \( \cos x \, dx = dt \). This transforms the trigonometric integral into a rational function in \( t \). The denominator is a product of two linear factors, so we split the fraction into simpler parts using partial fractions, integrate each part (which gives logarithms), and finally substitute back \( t = \sin x \).

Formula Used

Substitution: \( \sin x = t \Rightarrow \cos x \, dx = dt \). Partial fractions: \[ \frac{1}{(1-t)(2-t)} = \frac{A}{1-t} + \frac{B}{2-t} \] Standard integral: \[ \int \frac{1}{a - t} \, dt = -\ln|a - t| + C \]

Solution

  1. Step 1: Use the given hint and substitute. Let \( \sin x = t \). Differentiating both sides gives \( \cos x \, dx = dt \). This replaces the entire trigonometric integral by an integral in \( t \).
  2. Step 2: Rewrite the integral in terms of \( t \). The numerator \( \cos x \, dx \) becomes \( dt \), so \[ \int \frac{\cos x}{(1 - \sin x)(2 - \sin x)} \, dx = \int \frac{1}{(1 - t)(2 - t)} \, dt \]
  3. Step 3: Set up partial fractions. Write \[ \frac{1}{(1 - t)(2 - t)} = \frac{A}{1 - t} + \frac{B}{2 - t} \] Multiplying both sides by \( (1 - t)(2 - t) \) gives \[ 1 = A(2 - t) + B(1 - t) \]
  4. Step 4: Find the constants A and B. Put \( t = 1 \): \( 1 = A(2 - 1) + B(0) \), so \( A = 1 \). Put \( t = 2 \): \( 1 = A(0) + B(1 - 2) \), so \( 1 = -B \), giving \( B = -1 \).
  5. Step 5: Rewrite the integral using the constants. \[ \int \frac{1}{(1 - t)(2 - t)} \, dt = \int \left( \frac{1}{1 - t} - \frac{1}{2 - t} \right) dt \]
  6. Step 6: Integrate each term. Using \( \int \frac{1}{a - t} \, dt = -\ln|a - t| \), we get \[ -\ln|1 - t| + \ln|2 - t| + C \] which can be written as \[ \ln\left| \frac{2 - t}{1 - t} \right| + C \]
  7. Step 7: Substitute back \( t = \sin x \) to return to the original variable. \[ \ln\left| \frac{2 - \sin x}{1 - \sin x} \right| + C \]

Final Answer

\[ \int \frac{\cos x}{(1 - \sin x)(2 - \sin x)} \, dx = \ln\left| \frac{2 - \sin x}{1 - \sin x} \right| + C \]

Common Mistake

A frequent error is forgetting the negative sign when integrating \( \frac{1}{1 - t} \) or \( \frac{1}{2 - t} \). Since the variable \( t \) has a negative coefficient, \( \int \frac{1}{a - t} \, dt = -\ln|a - t| \), not \( +\ln|a - t| \). Missing this sign flips the fraction inside the logarithm.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Recognise and apply the substitution: Observe that \( \cos x \) in the numerator is exactly the derivative of \( \sin x \) in the denominator. So substitute \( t = \sin x \), which gives \( dt = \cos x \, dx \). — Reason: This substitution eliminates the trigonometric functions entirely, turning the integral into a purely algebraic one.
  2. Step 2: Rewrite the integral in terms of t: Replacing \( \sin x \) with \( t \) and \( \cos x \, dx \) with \( dt \), the integral becomes \[ \int \frac{\cos x}{(1 - \sin x)(2 - \sin x)} \, dx = \int \frac{1}{(1-t)(2-t)} \, dt \] — Reason: Every part of the original integral is now expressed in the single variable \( t \), making it ready for partial fractions.
  3. Step 3: Set up the partial fraction decomposition: Write the integrand as a sum of simpler fractions: \[ \frac{1}{(1-t)(2-t)} = \frac{A}{1-t} + \frac{B}{2-t} \] Multiply both sides by \( (1-t)(2-t) \) to clear denominators: \[ 1 = A(2-t) + B(1-t) \] — Reason: A product of distinct linear factors in the denominator can always be split this way, and each resulting piece has a known integral form.
  4. Step 4: Solve for constants A and B: Put \( t = 1 \) in \( 1 = A(2-t) + B(1-t) \): \[ 1 = A(1) + B(0) \Rightarrow A = 1 \] Put \( t = 2 \) in the same equation: \[ 1 = A(0) + B(-1) \Rightarrow B = -1 \] — Reason: Choosing values of \( t \) that make one factor vanish isolates each constant directly, avoiding the need to expand and compare coefficients.
  5. Step 5: Rewrite the integrand using A and B: Substituting \( A = 1 \) and \( B = -1 \), the partial fraction form is \[ \frac{1}{(1-t)(2-t)} = \frac{1}{1-t} - \frac{1}{2-t} \] So the integral becomes \[ \int \frac{1}{(1-t)(2-t)} \, dt = \int \frac{1}{1-t} \, dt - \int \frac{1}{2-t} \, dt \] — Reason: Breaking the single complicated fraction into two simpler ones lets us integrate each term individually using the standard logarithm formula.
  6. Step 6: Integrate each term: Using \( \int \frac{1}{a-t} \, dt = -\ln|a-t| + C \) for each term: \[ \int \frac{1}{1-t} \, dt = -\ln|1-t| + C_1 \] \[ \int \frac{1}{2-t} \, dt = -\ln|2-t| + C_2 \] Combining: \[ \int \frac{1}{(1-t)(2-t)} \, dt = -\ln|1-t| + \ln|2-t| + C = \ln\left|\frac{2-t}{1-t}\right| + C \] — Reason: The difference of two logarithms condenses neatly into the logarithm of a ratio using the law \( \ln a - \ln b = \ln\frac{a}{b} \).
  7. Step 7: Substitute back to restore the original variable: Replace \( t \) with \( \sin x \) throughout: \[ \ln\left|\frac{2-t}{1-t}\right| + C \;\longrightarrow\; \ln\left|\frac{2 - \sin x}{1 - \sin x}\right| + C \] — Reason: The final answer must be expressed in the original variable \( x \), not in the substitution variable \( t \).

Final Answer

\[ \int \frac{\cos x}{(1 - \sin x)(2 - \sin x)} \, dx = \ln\left| \frac{2 - \sin x}{1 - \sin x} \right| + C \]

Common Mistake

One common mistake: forgetting the negative sign when integrating \( \frac{1}{a - t} \). Because the variable \( t \) appears with a negative sign inside the denominator, the integral is \( -\ln|a - t| \), not \( +\ln|a - t| \). Skipping this sign flip leads to an incorrect answer with the logarithm fraction inverted.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Substitute: Let \( \sin x = t \), so \( \cos x \, dx = dt \). The integral becomes \[ \int \frac{1}{(1-t)(2-t)} \, dt \]
  2. Step 2: Partial Fractions: Write \( \frac{1}{(1-t)(2-t)} = \frac{A}{1-t} + \frac{B}{2-t} \), giving \( 1 = A(2-t) + B(1-t) \). At \( t = 1 \): \( A = 1 \); at \( t = 2 \): \( B = -1 \).
  3. Step 3: Integrate and Back-substitute: \[ \int \frac{1}{1-t} \, dt - \int \frac{1}{2-t} \, dt = -\ln|1-t| + \ln|2-t| + C \] Replace \( t = \sin x \): \[ \ln|2 - \sin x| - \ln|1 - \sin x| + C \]

Answer: \[ \int \frac{\cos x}{(1 - \sin x)(2 - \sin x)} \, dx = \ln\left| \frac{2 - \sin x}{1 - \sin x} \right| + C \]

➕ More Examples

More Examples

Example 1

Question: Integrate \(\displaystyle\int \frac{\cos x}{(2 - \sin x)(3 - \sin x)}\, dx\).

Solution: Step 1 — Substitution. Let \(t = \sin x\), so \(dt = \cos x\, dx\). The integral becomes \[\int \frac{dt}{(2 - t)(3 - t)}.\] Step 2 — Partial Fractions. Write \[\frac{1}{(2 - t)(3 - t)} = \frac{A}{2 - t} + \frac{B}{3 - t}.\] Multiplying both sides by \((2 - t)(3 - t)\) gives \[1 = A(3 - t) + B(2 - t).\] Setting \(t = 2\): \(1 = A(1)\), so \(A = 1\). Setting \(t = 3\): \(1 = B(-1)\), so \(B = -1\). Therefore \[\frac{1}{(2 - t)(3 - t)} = \frac{1}{2 - t} - \frac{1}{3 - t}.\] Step 3 — Integration. \[\int \left(\frac{1}{2 - t} - \frac{1}{3 - t}\right) dt = -\ln|2 - t| + \ln|3 - t| + C.\] Step 4 — Back-substitute \(t = \sin x\): \[= \ln|3 - \sin x| - \ln|2 - \sin x| + C = \ln\left|\frac{3 - \sin x}{2 - \sin x}\right| + C.\]

Answer: \(\ln\left|\dfrac{3 - \sin x}{2 - \sin x}\right| + C\)

Example 2

Question: Integrate \(\displaystyle\int \frac{\sin x}{(\cos x - 1)(\cos x - 4)}\, dx\).

Solution: Step 1 — Substitution. Let \(t = \cos x\), so \(dt = -\sin x\, dx\), which means \(\sin x\, dx = -dt\). The integral becomes \[\int \frac{-dt}{(t - 1)(t - 4)} = -\int \frac{dt}{(t - 1)(t - 4)}.\] Step 2 — Partial Fractions. Write \[\frac{1}{(t - 1)(t - 4)} = \frac{A}{t - 1} + \frac{B}{t - 4}.\] Multiplying both sides by \((t - 1)(t - 4)\) gives \[1 = A(t - 4) + B(t - 1).\] Setting \(t = 1\): \(1 = A(-3)\), so \(A = -\dfrac{1}{3}\). Setting \(t = 4\): \(1 = B(3)\), so \(B = \dfrac{1}{3}\). Therefore \[\frac{1}{(t - 1)(t - 4)} = \frac{-1/3}{t - 1} + \frac{1/3}{t - 4}.\] Step 3 — Integration. \[-\int \left(\frac{-1/3}{t - 1} + \frac{1/3}{t - 4}\right) dt = \frac{1}{3}\int \frac{dt}{t - 1} - \frac{1}{3}\int \frac{dt}{t - 4}\] \[= \frac{1}{3}\ln|t - 1| - \frac{1}{3}\ln|t - 4| + C.\] Step 4 — Back-substitute \(t = \cos x\): \[= \frac{1}{3}\ln|\cos x - 1| - \frac{1}{3}\ln|\cos x - 4| + C = \frac{1}{3}\ln\left|\frac{\cos x - 1}{\cos x - 4}\right| + C.\]

Answer: \(\dfrac{1}{3}\ln\left|\dfrac{\cos x - 1}{\cos x - 4}\right| + C\)

🎯 Try a Similar Question

Try a Similar Question

Question: Integrate the rational function: \[ \int \frac{\cos x}{(3 - \sin x)(4 - \sin x)} \, dx \] (Hint: Put \( \sin x = t \))

Solution

  1. Step 1: Apply the substitution: Let \( t = \sin x \). Then differentiating both sides, \( dt = \cos x \, dx \). Substituting into the integral, we get: \[ \int \frac{\cos x}{(3 - \sin x)(4 - \sin x)} \, dx = \int \frac{dt}{(3 - t)(4 - t)} \]
  2. Step 2: Decompose using Partial Fractions: Write \[ \frac{1}{(3 - t)(4 - t)} = \frac{A}{3 - t} + \frac{B}{4 - t} \] Multiplying both sides by \( (3 - t)(4 - t) \): \[ 1 = A(4 - t) + B(3 - t) \]
  3. Step 3: Find constants A and B: Setting \( t = 4 \): \[ 1 = A(0) + B(3 - 4) = -B \] so \( B = -1 \). Setting \( t = 3 \): \[ 1 = A(4 - 3) + B(0) = A \] so \( A = 1 \). Therefore: \[ \frac{1}{(3 - t)(4 - t)} = \frac{1}{3 - t} + \frac{-1}{4 - t} \]
  4. Step 4: Integrate each term: Now integrate: \[ \int \frac{dt}{(3 - t)(4 - t)} = \int \frac{1}{3 - t} \, dt - \int \frac{1}{4 - t} \, dt \] Using the standard result \( \int \frac{1}{a - t} \, dt = -\ln|a - t| + C \): \[ = -\ln|3 - t| + \ln|4 - t| + C \] This simplifies to: \[ = \ln\left|\frac{4 - t}{3 - t}\right| + C \]
  5. Step 5: Back-substitute: Replace \( t \) with \( \sin x \): \[ \int \frac{\cos x}{(3 - \sin x)(4 - \sin x)} \, dx = \ln\left|\frac{4 - \sin x}{3 - \sin x}\right| + C \]

Answer: \[ \int \frac{\cos x}{(3 - \sin x)(4 - \sin x)} \, dx = \ln\left|\frac{4 - \sin x}{3 - \sin x}\right| + C \]

Everything you get with Solver7

More questions in Integrals

Chapter 7 Examples Q1(i) 65/2/2 2023 / Section A Q1 Chapter 7 Examples Q1(ii) 65/2/1 2022 / Section A Q2(a) Chapter 7 Examples Q1(iii) 65/2/1 2022 / Section A Q2(b) Chapter 7 Examples Q2(i) Chapter 7 Examples Q2(ii) 65/1/1 2023 / Section A Q5 Chapter 7 Examples Q2(iii) 65/1/1 2023 / Section A Q6 65/1/1 2024 / Section A Q6 65/2/1 2024 / Section A Q6 65/3/1 2023 / Section A Q6 65/3/1 2024 / Section A Q6 Chapter 7 Examples Q3(i) 65/3/1 2023 / Section A Q7 Chapter 7 Examples Q3(ii) 65(B) 2026 / Section A Q8 65/1/1 2026 / Section A Q8 65/4/1 2022 / Section A Q6 65/4/1 2023 / Section A Q8 65/4/2 2024 / Section A Q8 Chapter 7 Examples Q3(iii) 65(B) 2026 / Section A Q9 65/1/1 2026 / Section A Q9 65/2/1 2022 / Section B Q8(a) 65/2/2 2023 / Section A Q9 65/4/1 2022 / Section B Q7 65/4/1 2023 / Section A Q9 65/4/1 2026 / Section A Q9 Chapter 7 Examples Q4 65/2/1 2022 / Section B Q8(b) 65/3/1 2026 / Section A Q10 65/4/1 2022 / Section B Q8(a) 65/4/1 2026 / Section A Q10 65/5/1 2026 / Section A Q10 Chapter 7 Examples Q5(i) 65/3/1 2026 / Section A Q11 65/4/1 2022 / Section B Q8(b) 65/5/1 2026 / Section A Q11 Chapter 7 Examples Q5(ii) 65/2/3 2026 / Section A Q12 Chapter 7 Examples Q5(iii) Chapter 7 Examples Q5(iv) Chapter 7 Examples Q6(i) 65/2/1 2022 / Section C Q12 Chapter 7 Examples Q6(ii) Chapter 7 Examples Q6(iii) Chapter 7 Examples Q7(i) 65/4/1 2022 / Section C Q13 Chapter 7 Examples Q7(ii) Chapter 7 Examples Q7(iii) Chapter 7 Examples Q8(i) Chapter 7 Examples Q8(ii) Chapter 7 Examples Q9(i) Chapter 7 Examples Q9(ii) 65/1/1 2024 / Section B Q23(a) 65/3/1 2024 / Section B Q23(a) Chapter 7 Examples Q9(iii)