SOLVER7 Study. Nothing Else.
Exercise 7.2 Q33

Integrate the functions in Exercises 1 to 37: \(\dfrac{1}{1-tan\ x}\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a fraction that looks complicated, but you can rewrite it using simpler pieces. Here, the tricky part on top can be split into two friendly chunks. One chunk is just a plain number you can integrate easily. The other chunk looks like a fraction whose top is the derivative of its bottom, which always gives a logarithm. By mixing those two pieces together cleverly, the whole integral becomes manageable and gives a clean answer.

Answer: \[ \int \frac{1}{1-\tan x}\,dx = \frac{x}{2} - \frac{1}{2}\ln|\cos x - \sin x| + C. \]

📖 Integrating 1/(1 - tan x)

Detailed Explanation

When an integrand contains \( \tan x \), it is often useful to convert everything into \( \sin x \) and \( \cos x \). Here \( \dfrac{1}{1-\tan x} \) becomes \( \dfrac{\cos x}{\cos x - \sin x} \). The key idea is that the derivative of the denominator \( \cos x - \sin x \) is \( -\sin x - \cos x \). So we try to write the numerator \( \cos x \) as a combination of the denominator and its derivative. This lets us split the integral into an easy part and a logarithmic part, using the standard result \( \int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C \).

Formula Used

\( \tan x = \dfrac{\sin x}{\cos x} \), and \( \displaystyle\int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C \).

Solution

  1. Step 1: Convert \( \tan x \) into sine and cosine. \[ \frac{1}{1-\tan x} = \frac{1}{1-\dfrac{\sin x}{\cos x}} = \frac{\cos x}{\cos x - \sin x} \] So the integral becomes \[ I = \int \frac{\cos x}{\cos x - \sin x}\,dx. \]
  2. Step 2: Write the numerator as a combination of the denominator and its derivative. Let \[ \cos x = A(\cos x - \sin x) + B\frac{d}{dx}(\cos x - \sin x). \] Since \( \dfrac{d}{dx}(\cos x - \sin x) = -\sin x - \cos x \), we write \[ \cos x = A(\cos x - \sin x) + B(-\sin x - \cos x). \]
  3. Step 3: Compare coefficients of \( \cos x \) and \( \sin x \) on both sides. Coefficient of \( \cos x \): \( 1 = A - B \). Coefficient of \( \sin x \): \( 0 = -A - B \). From the second equation \( A = -B \). Substituting into the first: \( 1 = -B - B = -2B \), so \( B = -\tfrac{1}{2} \) and \( A = \tfrac{1}{2} \).
  4. Step 4: Substitute these values so the numerator splits into two parts. \[ I = \int \frac{\tfrac{1}{2}(\cos x - \sin x) - \tfrac{1}{2}(-\sin x - \cos x)}{\cos x - \sin x}\,dx \] This separates into \[ I = \frac{1}{2}\int 1\,dx - \frac{1}{2}\int \frac{-\sin x - \cos x}{\cos x - \sin x}\,dx. \]
  5. Step 5: Evaluate each part. The first integral is simply \( \tfrac{1}{2}x \). In the second integral, the numerator \( -\sin x - \cos x \) is exactly the derivative of the denominator \( \cos x - \sin x \). Using \( \int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| \), we get \[ \frac{1}{2}\int \frac{-\sin x - \cos x}{\cos x - \sin x}\,dx = \frac{1}{2}\ln|\cos x - \sin x|. \]
  6. Step 6: Combine both results. \[ I = \frac{1}{2}x - \frac{1}{2}\ln|\cos x - \sin x| + C. \]

Final Answer

\[ \int \frac{1}{1-\tan x}\,dx = \frac{x}{2} - \frac{1}{2}\ln|\cos x - \sin x| + C. \]

Common Mistake

A common mistake is to forget to check the sign of the derivative of the denominator. Since \( \dfrac{d}{dx}(\cos x - \sin x) = -\sin x - \cos x \) (not \( \sin x + \cos x \)), the sign in front of the logarithm must be handled carefully, otherwise the answer's sign comes out wrong.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Rewrite the integrand by replacing \( \tan x \) with \( \dfrac{\sin x}{\cos x} \): \[ \frac{1}{1 - \tan x} = \frac{1}{1 - \dfrac{\sin x}{\cos x}} = \frac{\cos x}{\cos x - \sin x} \] So the integral becomes \[ I = \int \frac{\cos x}{\cos x - \sin x}\,dx. \] Reason: Converting to sine and cosine removes the \( \tan x \) and gives a rational trigonometric form that is easier to manipulate.
  2. Step 2: Compute the derivative of the denominator. Let \( D = \cos x - \sin x \). Then \[ \frac{d}{dx}(\cos x - \sin x) = -\sin x - \cos x. \] Reason: Knowing the derivative of the denominator is essential for the next step, where we try to express the numerator \( \cos x \) using \( D \) and \( D' \).
  3. Step 3: Express the numerator \( \cos x \) as \[ \cos x = A(\cos x - \sin x) + B(-\sin x - \cos x) \] for constants \( A \) and \( B \) to be determined. Reason: This is the standard technique of writing the numerator as a combination of the denominator and its own derivative, so the integral can be split into two manageable parts.
  4. Step 4: Compare coefficients on both sides. Matching coefficients of \( \cos x \): \[ 1 = A - B. \] Matching coefficients of \( \sin x \): \[ 0 = -A - B. \] From the second equation, \( A = -B \). Substituting into the first equation gives \( 1 = -B - B = -2B \), so \[ B = -\frac{1}{2}, \quad A = \frac{1}{2}. \] Reason: Equating coefficients turns the problem into a simple algebraic system, pinning down the exact values of \( A \) and \( B \).
  5. Step 5: Substitute \( A = \dfrac{1}{2} \) and \( B = -\dfrac{1}{2} \) back to split the integral: \[ I = \int \frac{\frac{1}{2}(\cos x - \sin x) + \left(-\frac{1}{2}\right)(-\sin x - \cos x)}{\cos x - \sin x}\,dx \] which simplifies to \[ I = \int \frac{1}{2}\,dx + \int \frac{-\frac{1}{2}(-\sin x - \cos x)}{\cos x - \sin x}\,dx. \] Reason: Splitting the fraction turns one hard integral into two easy ones — a constant integral and a logarithmic integral of the form \( \int \dfrac{f'(x)}{f(x)}\,dx \).
  6. Step 6: Evaluate each part separately. The first part: \[ \int \frac{1}{2}\,dx = \frac{x}{2}. \] For the second part, notice that \( -\sin x - \cos x \) is exactly the derivative of \( \cos x - \sin x \), so: \[ \int \frac{-\frac{1}{2}(-\sin x - \cos x)}{\cos x - \sin x}\,dx = -\frac{1}{2}\int \frac{-\sin x - \cos x}{\cos x - \sin x}\,dx = -\frac{1}{2}\ln|\cos x - \sin x| + C. \] Reason: The standard result \( \int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C \) applies directly to the second integral once the numerator is recognised as the derivative of the denominator.
  7. Step 7: Combine both parts to write the final result: \[ I = \frac{x}{2} - \frac{1}{2}\ln|\cos x - \sin x| + C. \] Reason: Adding the two evaluated pieces gives the complete antiderivative, with \( C \) as the arbitrary constant of integration.

Final Answer

\[ \int \frac{1}{1-\tan x}\,dx = \frac{x}{2} - \frac{1}{2}\ln|\cos x - \sin x| + C. \]

Common Mistake

One common mistake: forgetting to account for the sign when identifying the numerator as the derivative of the denominator — the derivative of \( \cos x - \sin x \) is \( -\sin x - \cos x \), not \( \sin x + \cos x \), so neglecting this sign leads to an incorrect coefficient and a wrong final answer.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Rewrite in terms of sin and cos: \[ I = \int \frac{1}{1-\tan x}\,dx = \int \frac{\cos x}{\cos x - \sin x}\,dx \]
  2. Step 2: Express numerator as combination of denominator and its derivative: Write \( \cos x = A(\cos x - \sin x) + B(-\sin x - \cos x) \). Comparing coefficients: \( \cos x \): \( 1 = A - B \); \( \sin x \): \( 0 = -A - B \). Solving: \( A = \tfrac{1}{2},\ B = -\tfrac{1}{2} \).
  3. Step 3: Split and integrate: \[ I = \frac{1}{2}\int \frac{\cos x - \sin x}{\cos x - \sin x}\,dx + \left(-\frac{1}{2}\right)\int \frac{-\sin x - \cos x}{\cos x - \sin x}\,dx = \frac{x}{2} - \frac{1}{2}\ln|\cos x - \sin x| + C \]

Answer: \[ \int \frac{1}{1-\tan x}\,dx = \frac{x}{2} - \frac{1}{2}\ln|\cos x - \sin x| + C. \]

➕ More Examples

More Examples

Example 1

Question: Integrate: \( \dfrac{1}{1 + \cot x} \)

Solution: We need to evaluate \( I = \int \frac{1}{1 + \cot x} \, dx \). Step 1: Write \( \cot x = \frac{\cos x}{\sin x} \), so \[ I = \int \frac{1}{1 + \dfrac{\cos x}{\sin x}} \, dx = \int \frac{\sin x}{\sin x + \cos x} \, dx \] Step 2: Let \( I = \int \frac{\sin x}{\sin x + \cos x} \, dx \). Write the numerator \( \sin x \) as a linear combination of \( (\sin x + \cos x) \) and its derivative \( (\cos x - \sin x) \): \[ \sin x = A(\sin x + \cos x) + B(\cos x - \sin x) \] Step 3: Expand and compare coefficients: Coefficient of \( \sin x \): \( A - B = 1 \) Coefficient of \( \cos x \): \( A + B = 0 \) Adding: \( 2A = 1 \), so \( A = \frac{1}{2} \) and \( B = -\frac{1}{2} \). Step 4: Substitute back: \[ I = \int \frac{\frac{1}{2}(\sin x + \cos x) + \left(-\frac{1}{2}\right)(\cos x - \sin x)}{\sin x + \cos x} \, dx \] \[ I = \frac{1}{2} \int 1 \, dx - \frac{1}{2} \int \frac{\cos x - \sin x}{\sin x + \cos x} \, dx \] Step 5: For the second integral, note that \( \frac{d}{dx}(\sin x + \cos x) = \cos x - \sin x \), so \[ \int \frac{\cos x - \sin x}{\sin x + \cos x} \, dx = \ln|\sin x + \cos x| + C \] Step 6: Therefore, \[ I = \frac{x}{2} - \frac{1}{2} \ln|\sin x + \cos x| + C \]

Answer: \( \dfrac{x}{2} - \dfrac{1}{2} \ln|\sin x + \cos x| + C \)

Example 2

Question: Integrate: \( \dfrac{\cos x}{\cos x - \sin x} \)

Solution: We need to evaluate \( I = \int \frac{\cos x}{\cos x - \sin x} \, dx \). Step 1: Write the numerator \( \cos x \) as a linear combination of \( (\cos x - \sin x) \) and its derivative \( (-\sin x - \cos x) \): \[ \cos x = A(\cos x - \sin x) + B(-\sin x - \cos x) \] Step 2: Expand and compare coefficients: Coefficient of \( \cos x \): \( A - B = 1 \) Coefficient of \( \sin x \): \( -A - B = 0 \), so \( A + B = 0 \), giving \( B = -A \). Substituting into the first equation: \( A - (-A) = 1 \Rightarrow 2A = 1 \Rightarrow A = \frac{1}{2} \) and \( B = -\frac{1}{2} \). Step 3: Substitute back: \[ I = \int \frac{\frac{1}{2}(\cos x - \sin x) + \left(-\frac{1}{2}\right)(-\sin x - \cos x)}{\cos x - \sin x} \, dx \] \[ I = \frac{1}{2} \int 1 \, dx - \frac{1}{2} \int \frac{-\sin x - \cos x}{\cos x - \sin x} \, dx \] Step 4: Notice that \( \frac{d}{dx}(\cos x - \sin x) = -\sin x - \cos x \), so \[ \int \frac{-\sin x - \cos x}{\cos x - \sin x} \, dx = \ln|\cos x - \sin x| + C \] Step 5: Therefore, \[ I = \frac{x}{2} - \frac{1}{2} \ln|\cos x - \sin x| + C \]

Answer: \( \dfrac{x}{2} - \dfrac{1}{2} \ln|\cos x - \sin x| + C \)

🎯 Try a Similar Question

Try a Similar Question

Question: Integrate the function \( \dfrac{1}{1 + \cot x} \) with respect to \( x \).

Solution

  1. Step 1: Rewrite in terms of sin and cos: We have \( \cot x = \dfrac{\cos x}{\sin x} \), so: \[ \frac{1}{1 + \cot x} = \frac{1}{1 + \dfrac{\cos x}{\sin x}} = \frac{\sin x}{\sin x + \cos x} \] So the integral becomes \( I = \displaystyle\int \frac{\sin x}{\sin x + \cos x} \, dx \).
  2. Step 2: Express the numerator as a combination of denominator and its derivative: Let the denominator be \( D = \sin x + \cos x \). Its derivative is \( D' = \cos x - \sin x \). We write: \[ \sin x = A(\sin x + \cos x) + B(\cos x - \sin x) \] Expanding the right side: \[ (A - B)\sin x + (A + B)\cos x \] Matching coefficients, we get the system: \( A - B = 1 \) and \( A + B = 0 \). Adding both equations: \( 2A = 1 \), so \( A = \dfrac{1}{2} \). Subtracting: \( 2B = -1 \), so \( B = -\dfrac{1}{2} \).
  3. Step 3: Split the integral: Substituting back: \[ I = \int \frac{\dfrac{1}{2}(\sin x + \cos x) - \dfrac{1}{2}(\cos x - \sin x)}{\sin x + \cos x} \, dx \] \[ I = \frac{1}{2}\int 1 \, dx - \frac{1}{2}\int \frac{\cos x - \sin x}{\sin x + \cos x} \, dx \]
  4. Step 4: Evaluate each part: The first integral is straightforward: \( \dfrac{1}{2} \int 1 \, dx = \dfrac{x}{2} \). For the second integral, note that the numerator \( \cos x - \sin x \) is exactly the derivative of the denominator \( \sin x + \cos x \). Using the standard result \( \displaystyle\int \frac{f'(x)}{f(x)} \, dx = \ln|f(x)| + C \): \[ \int \frac{\cos x - \sin x}{\sin x + \cos x} \, dx = \ln|\sin x + \cos x| + C \]
  5. Step 5: Combine the results: Putting it all together: \[ I = \frac{x}{2} - \frac{1}{2}\ln|\sin x + \cos x| + C \]

Answer: \[ \int \frac{1}{1 + \cot x} \, dx = \frac{x}{2} - \frac{1}{2}\ln|\sin x + \cos x| + 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)