SOLVER7 Study. Nothing Else.
Chapter 7 Examples Q6(iii)

Find the following integrals: \(\int \dfrac{1}{1+tan\ x}dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy fraction and want to tidy it up. We swap the tangent for sine over cosine, turning a tricky problem into something friendlier. The new fraction has a bottom part, and we notice its close cousin hiding at the top. We cleverly split the top into two equal halves — one matching the bottom exactly, one matching how the bottom changes. Each half becomes an easy integral on its own, giving us a simple piece plus a logarithm piece.

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

📖 Integral of 1/(1 + tan x)

Detailed Explanation

The integrand \( \dfrac{1}{1+\tan x} \) is awkward because it mixes 1 with a tangent. A standard strategy in Class 12 integration is to convert tangent into \( \dfrac{\sin x}{\cos x} \). This turns the expression into \( \dfrac{\cos x}{\cos x + \sin x} \). Now the denominator is \( \cos x + \sin x \), whose derivative is \( \cos x - \sin x \). So we cleverly split the numerator \( \cos x \) into a part matching the denominator plus a part matching its derivative. This lets us break the integral into one easy piece and one logarithmic piece.

Formula Used

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

Solution

  1. Step 1: Rewrite \( \tan x \) using sine and cosine. Since \( 1 + \tan x = 1 + \dfrac{\sin x}{\cos x} = \dfrac{\cos x + \sin x}{\cos x} \), the integrand becomes \[ \frac{1}{1+\tan x} = \frac{\cos x}{\cos x + \sin x}. \]
  2. Step 2: So we must find \[ I = \int \frac{\cos x}{\cos x + \sin x}\, dx. \] The denominator is \( \cos x + \sin x \), and its derivative is \( \cos x - \sin x \). We will split the numerator to make use of both the denominator and its derivative.
  3. Step 3: Write the numerator \( \cos x \) as a combination \[ \cos x = A(\cos x + \sin x) + B(\cos x - \sin x). \] Comparing coefficients of \( \cos x \) gives \( A + B = 1 \), and comparing coefficients of \( \sin x \) gives \( A - B = 0 \). Solving, \( A = B = \dfrac{1}{2} \).
  4. Step 4: Substitute this split back into the integral: \[ I = \int \frac{\tfrac{1}{2}(\cos x + \sin x) + \tfrac{1}{2}(\cos x - \sin x)}{\cos x + \sin x}\, dx. \] Separate into two integrals: \[ I = \frac{1}{2}\int 1\, dx + \frac{1}{2}\int \frac{\cos x - \sin x}{\cos x + \sin x}\, dx. \]
  5. Step 5: The first integral is simply \( \dfrac{1}{2}x \). For the second, notice the numerator \( \cos x - \sin x \) is exactly the derivative of the denominator \( \cos x + \sin x \). By the rule \( \int \dfrac{f'(x)}{f(x)}\, dx = \ln|f(x)| \), we get \[ \frac{1}{2}\int \frac{\cos x - \sin x}{\cos x + \sin x}\, dx = \frac{1}{2}\ln|\cos x + \sin x|. \]
  6. Step 6: Combine both parts and add the constant of integration: \[ 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|\sin x + \cos x| + C. \]

Common Mistake

A common mistake is trying to integrate \( \dfrac{1}{1+\tan x} \) directly as if it were \( \ln|1+\tan x| \). That is wrong because the derivative of the denominator is not the numerator. You must first convert \( \tan x \) into \( \dfrac{\sin x}{\cos x} \) and then split the numerator.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Replace \( \tan x \) by \( \dfrac{\sin x}{\cos x} \) in the denominator. Then \( 1 + \tan x = \dfrac{\cos x + \sin x}{\cos x} \), so the integrand simplifies as \[ \frac{1}{1 + \tan x} = \frac{\cos x}{\cos x + \sin x}. \] — Reason: Expressing everything in terms of sin and cos removes the tangent and gives a cleaner rational-trigonometric form to work with.
  2. Step 2: Let \[ I = \int \frac{\cos x}{\cos x + \sin x}\, dx. \] Notice that the denominator is \( \cos x + \sin x \) and its derivative with respect to \( x \) is \( -\sin x + \cos x \), i.e., \( \cos x - \sin x \). — Reason: Recognising the derivative of the denominator is the key observation that allows us to split the numerator strategically.
  3. Step 3: Write the numerator \( \cos x \) as a linear combination of the denominator and its derivative: \[ \cos x = A(\cos x + \sin x) + B(\cos x - \sin x). \] Expanding the right side gives \( (A + B)\cos x + (A - B)\sin x \). Matching coefficients: coefficient of \( \cos x \) gives \( A + B = 1 \), and coefficient of \( \sin x \) gives \( A - B = 0 \). Solving these two equations: \( A = \dfrac{1}{2} \) and \( B = \dfrac{1}{2} \). — Reason: This algebraic split lets us rewrite the single complicated integral as a sum of two standard, manageable integrals.
  4. Step 4: Substitute the split back into the integral: \[ I = \int \frac{\frac{1}{2}(\cos x + \sin x) + \frac{1}{2}(\cos x - \sin x)}{\cos x + \sin x}\, dx. \] Separate this into two integrals: \[ I = \frac{1}{2}\int 1\, dx + \frac{1}{2}\int \frac{\cos x - \sin x}{\cos x + \sin x}\, dx. \] — Reason: Splitting the fraction term by term reduces the problem to one trivial integral and one logarithmic integral.
  5. Step 5: Evaluate the first part: \[ \frac{1}{2}\int 1\, dx = \frac{x}{2}. \] — Reason: The integral of a constant is immediate and requires no further manipulation.
  6. Step 6: Evaluate the second part using the formula \( \int \dfrac{f'(x)}{f(x)}\, dx = \ln|f(x)| + C \). Here \( f(x) = \cos x + \sin x \) and \( f'(x) = \cos x - \sin x \), so \[ \frac{1}{2}\int \frac{\cos x - \sin x}{\cos x + \sin x}\, dx = \frac{1}{2}\ln|\cos x + \sin x|. \] — Reason: The numerator of the second integral is exactly the derivative of the denominator, making it a direct application of the log-derivative formula.
  7. Step 7: Combine both results and add the constant of integration \( C \): \[ I = \frac{x}{2} + \frac{1}{2}\ln|\sin x + \cos x| + C. \] — Reason: Summing the two evaluated parts gives the complete antiderivative.

Final Answer

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

Common Mistake

One common mistake: Students often forget to account for the negative sign when differentiating the denominator \( \cos x + \sin x \), incorrectly writing its derivative as \( \sin x + \cos x \) instead of \( \cos x - \sin x \), which leads to wrong values of \( A \) and \( B \) and an incorrect final answer.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Rewrite: \[ \frac{1}{1+\tan x} = \frac{\cos x}{\cos x + \sin x} \]
  2. Step 2: Express numerator as \( \cos x = A(\cos x + \sin x) + B(\cos x - \sin x) \), giving \( A + B = 1 \) and \( A - B = 0 \), so \( A = B = \dfrac{1}{2} \).
  3. Step 3: Split the integral: \[ I = \frac{1}{2}\int 1\, dx + \frac{1}{2}\int \frac{\cos x - \sin x}{\cos x + \sin x}\, dx = \frac{x}{2} + \frac{1}{2}\ln|\sin x + \cos x| + C \]

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

➕ More Examples

More Examples

Example 1

Question: Evaluate \( \int \frac{1}{1 + \cot x} \, dx \).

Solution: We start by rewriting \( \cot x \) in terms of \( \sin x \) and \( \cos x \). We have \[ \frac{1}{1 + \cot x} = \frac{1}{1 + \frac{\cos x}{\sin x}} = \frac{\sin x}{\sin x + \cos x}. \] So the integral becomes \[ I = \int \frac{\sin x}{\sin x + \cos x} \, dx. \] We write the numerator \( \sin x \) as a linear combination of the denominator \( (\sin x + \cos x) \) and its derivative \( (\cos x - \sin x) \). Let \[ \sin x = A(\sin x + \cos x) + B(\cos x - \sin x). \] Expanding the right side: \[ \sin x = (A - B)\sin x + (A + B)\cos x. \] Comparing coefficients of \( \sin x \): \[ A - B = 1. \] Comparing coefficients of \( \cos x \): \[ A + B = 0. \] Adding both equations: \[ 2A = 1 \Rightarrow A = \frac{1}{2}. \] Subtracting: \[ 2B = -1 \Rightarrow B = -\frac{1}{2}. \] Therefore \[ I = \int \frac{\frac{1}{2}(\sin x + \cos x) + \left(-\frac{1}{2}\right)(\cos x - \sin x)}{\sin x + \cos x} \, dx. \] Splitting: \[ I = \frac{1}{2}\int 1 \, dx - \frac{1}{2}\int \frac{\cos x - \sin x}{\sin x + \cos x} \, dx. \] For the second integral, notice that the numerator \( \cos x - \sin x \) is exactly the derivative of the denominator \( \sin x + \cos x \). So \[ \int \frac{\cos x - \sin x}{\sin x + \cos x} \, dx = \ln |\sin x + \cos x| + C. \] Hence \[ I = \frac{1}{2}x - \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 \]

Example 2

Question: Evaluate \( \int \frac{\cos x}{\cos x + \sin x} \, dx \).

Solution: Let \[ I = \int \frac{\cos x}{\cos x + \sin x} \, dx. \] We write the numerator \( \cos x \) as a linear combination of the denominator \( (\cos x + \sin x) \) and its derivative \( (-\sin x + \cos x) \). Let \[ \cos x = A(\cos x + \sin x) + B(-\sin x + \cos x). \] Expanding: \[ \cos x = (A + B)\cos x + (A - B)\sin x. \] Comparing coefficients of \( \cos x \): \[ A + B = 1. \] Comparing coefficients of \( \sin x \): \[ A - B = 0. \] Adding: \[ 2A = 1 \Rightarrow A = \frac{1}{2}. \] Subtracting: \[ 2B = 1 \Rightarrow B = \frac{1}{2}. \] So \[ I = \int \frac{\frac{1}{2}(\cos x + \sin x) + \frac{1}{2}(-\sin x + \cos x)}{\cos x + \sin x} \, dx. \] Splitting into two integrals: \[ I = \frac{1}{2}\int 1 \, dx + \frac{1}{2}\int \frac{-\sin x + \cos x}{\cos x + \sin x} \, dx. \] The numerator \( -\sin x + \cos x \) is the derivative of \( \cos x + \sin x \). Therefore \[ \int \frac{-\sin x + \cos x}{\cos x + \sin x} \, dx = \ln |\cos x + \sin x| + C. \] Hence \[ I = \frac{1}{2}x + \frac{1}{2}\ln |\cos x + \sin x| + C. \]

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

🎯 Try a Similar Question

Try a Similar Question

Question: Find the integral: \[ \int \frac{1}{1 + \cot x} \, dx \]

Solution

  1. Step 1: Rewrite in terms of sin and cos: Recall that \( \cot x = \dfrac{\cos x}{\sin x} \). Substituting, the integral becomes: \[ \int \frac{1}{1 + \dfrac{\cos x}{\sin x}} \, dx = \int \frac{\sin x}{\sin x + \cos x} \, dx \]
  2. Step 2: Use the splitting trick: Write the numerator \( \sin x \) as a combination of \( (\sin x + \cos x) \) and \( (\sin x - \cos x) \). We observe: \[ \sin x = \frac{1}{2}(\sin x + \cos x) + \frac{1}{2}(\sin x - \cos x) \] So the integral becomes: \[ \int \frac{\frac{1}{2}(\sin x + \cos x) + \frac{1}{2}(\sin x - \cos x)}{\sin x + \cos x} \, dx \]
  3. Step 3: Split into two integrals: Separating the fraction gives: \[ \frac{1}{2} \int 1 \, dx + \frac{1}{2} \int \frac{\sin x - \cos x}{\sin x + \cos x} \, dx \] The first integral is simply \( \dfrac{x}{2} \).
  4. Step 4: Evaluate the second integral: For the second integral, notice that the derivative of \( \sin x + \cos x \) is \( \cos x - \sin x \), which equals \( -(\sin x - \cos x) \). So: \[ \int \frac{\sin x - \cos x}{\sin x + \cos x} \, dx = -\int \frac{\cos x - \sin x}{\sin x + \cos x} \, dx = -\ln|\sin x + \cos x| + C_1 \]
  5. Step 5: Combine the results: Putting both parts together: \[ \int \frac{1}{1 + \cot x} \, dx = \frac{x}{2} + \frac{1}{2}\left(-\ln|\sin x + \cos x|\right) + C \] which simplifies to: \[ \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 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) 65(B) 2026 / Section B Q23