SOLVER7 Study. Nothing Else.
Miscellaneous Exercise Chapter 7 Q21

Integrate the functions in Exercises 1 to 23 \(\dfrac{x^2+x+1}{(x+1)^2\ (x+2)}\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a big, messy fraction that is hard to work with all at once. Breaking it into smaller, friendlier pieces makes everything easier — just like splitting a large bill into smaller payments. Here, the bottom of the fraction has repeated and distinct parts, so we split the whole thing into simple fractions. Each small piece is easy to integrate using basic rules. Putting all the results together gives the final neat answer.

Answer: \[ \int \frac{x^2+x+1}{(x+1)^2(x+2)} \, dx = 3\log|x+2| - 2\log|x+1| - \frac{1}{x+1} + C \]

📖 Integration Using Partial Fractions with a Repeated Factor

Detailed Explanation

When we integrate a rational function \( \dfrac{P(x)}{Q(x)} \) where the degree of the numerator is less than the degree of the denominator, and the denominator factorises into linear factors, we use partial fractions. Here the denominator \( (x+1)^2(x+2) \) has a repeated linear factor \( (x+1) \) and a distinct linear factor \( (x+2) \). For a repeated factor \( (x+1)^2 \) we must include TWO fractions: one with denominator \( (x+1) \) and one with denominator \( (x+1)^2 \). Once we split the expression, each simple piece can be integrated using standard results.

Formula Used

For a repeated linear factor, decompose as \[ \frac{x^2+x+1}{(x+1)^2(x+2)} = \frac{A}{x+1} + \frac{B}{(x+1)^2} + \frac{C}{x+2} \] Standard results used: \[ \int \frac{1}{x+a} \, dx = \log|x+a| + C, \qquad \int \frac{1}{(x+a)^2} \, dx = -\frac{1}{x+a} + C \]

Solution

  1. Step 1: Set up the partial fraction form. Since \( (x+1) \) is repeated and \( (x+2) \) is a distinct factor, write \[ \frac{x^2+x+1}{(x+1)^2(x+2)} = \frac{A}{x+1} + \frac{B}{(x+1)^2} + \frac{C}{x+2}. \]
  2. Step 2: Multiply both sides by \( (x+1)^2(x+2) \) to clear denominators: \[ x^2 + x + 1 = A(x+1)(x+2) + B(x+2) + C(x+1)^2. \]
  3. Step 3: Find \( B \) by substituting \( x = -1 \) (this kills the \( A \) and \( C \) terms): \[ (-1)^2 + (-1) + 1 = B(-1+2). \] So \[ 1 = B(1) \Rightarrow B = 1. \]
  4. Step 4: Find \( C \) by substituting \( x = -2 \): \[ (-2)^2 + (-2) + 1 = C(-2+1)^2. \] So \[ 3 = C(1) \Rightarrow C = 3. \]
  5. Step 5: Find \( A \) by comparing coefficients of \( x^2 \). On the left the coefficient is \( 1 \). On the right, the \( x^2 \) terms come from \( A(x+1)(x+2) \) and \( C(x+1)^2 \), giving \( A + C \). Therefore \[ A + C = 1 \Rightarrow A + 3 = 1 \Rightarrow A = -2. \]
  6. Step 6: Write the integrand in its split form: \[ \frac{x^2+x+1}{(x+1)^2(x+2)} = \frac{-2}{x+1} + \frac{1}{(x+1)^2} + \frac{3}{x+2}. \]
  7. Step 7: Integrate each term separately: \[ \int \frac{-2}{x+1} \, dx = -2\log|x+1|, \] \[ \int \frac{1}{(x+1)^2} \, dx = -\frac{1}{x+1}, \] \[ \int \frac{3}{x+2} \, dx = 3\log|x+2|. \]
  8. Step 8: Combine all the integrated pieces and add the constant of integration \( C \): \[ -2\log|x+1| - \frac{1}{x+1} + 3\log|x+2| + C. \]

Final Answer

\[ \int \frac{x^2+x+1}{(x+1)^2(x+2)} \, dx = 3\log|x+2| - 2\log|x+1| - \frac{1}{x+1} + C \]

Common Mistake

A very common error is forgetting the extra fraction for the repeated factor. Students often write only \( \dfrac{A}{x+1} + \dfrac{C}{x+2} \), missing the term \( \dfrac{B}{(x+1)^2} \). For a factor raised to power 2, you must include BOTH \( \dfrac{A}{x+1} \) and \( \dfrac{B}{(x+1)^2} \), otherwise the decomposition is incorrect.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Write the partial fraction decomposition. Since \( (x+1) \) appears as a squared (repeated) factor and \( (x+2) \) is a distinct linear factor, we need three separate terms: \[ \frac{x^2+x+1}{(x+1)^2(x+2)} = \frac{A}{x+1} + \frac{B}{(x+1)^2} + \frac{C}{x+2} \] — Reason: A repeated factor \( (x+1)^2 \) requires one term for \( (x+1) \) and one for \( (x+1)^2 \); omitting either would make the decomposition incomplete.
  2. Step 2: Multiply both sides by \( (x+1)^2(x+2) \) to eliminate all denominators: \[ x^2 + x + 1 = A(x+1)(x+2) + B(x+2) + C(x+1)^2 \] — Reason: Clearing denominators converts the equation into a polynomial identity, which is much easier to work with when finding the unknown constants.
  3. Step 3: Substitute \( x = -1 \) into the polynomial identity to find \( B \). When \( x = -1 \), the terms containing \( A \) and \( C \) both vanish because they carry the factor \( (x+1) \). The left side gives \( (-1)^2 + (-1) + 1 = 1 \), and the right side gives \( B(-1+2) = B \). So \( B = 1 \). — Reason: Choosing \( x = -1 \) isolates \( B \) immediately, avoiding the need to solve a system of equations.
  4. Step 4: Substitute \( x = -2 \) to find \( C \). The terms carrying \( A \) and \( B \) vanish because they contain the factor \( (x+2) \). The left side gives \( (-2)^2 + (-2) + 1 = 3 \), and the right side gives \( C(-2+1)^2 = C \). So \( C = 3 \). — Reason: Substituting \( x = -2 \) zeroes out \( A \) and \( B \), isolating \( C \) in a single step.
  5. Step 5: Compare coefficients of \( x^2 \) on both sides to find \( A \). Expanding the right side: \( A(x+1)(x+2) \) contributes \( Ax^2 \), and \( C(x+1)^2 \) contributes \( Cx^2 \). So the coefficient of \( x^2 \) on the right is \( A + C \). On the left it is \( 1 \). Therefore \( A + C = 1 \), and since \( C = 3 \), we get \( A = 1 - 3 = -2 \). — Reason: After finding \( B \) and \( C \) by substitution, comparing coefficients is the quickest way to determine the remaining constant \( A \).
  6. Step 6: Rewrite the integrand using the values \( A = -2 \), \( B = 1 \), \( C = 3 \): \[ \frac{x^2+x+1}{(x+1)^2(x+2)} = \frac{-2}{x+1} + \frac{1}{(x+1)^2} + \frac{3}{x+2} \] — Reason: Substituting back the known constants gives us three simple fractions, each of which matches a standard integral form directly.
  7. Step 7: Integrate term by term using the standard results: \[ \int \frac{-2}{x+1} \\, dx = -2\log|x+1| \] \[ \int \frac{1}{(x+1)^2} \\, dx = -\frac{1}{x+1} \] \[ \int \frac{3}{x+2} \\, dx = 3\log|x+2| \] Adding these together and appending the constant of integration gives the final result. — Reason: Each partial fraction is now a standard form; applying the known results term by term completes the integration.

Final Answer

\[ \int \frac{x^2+x+1}{(x+1)^2(x+2)} \, dx = 3\log|x+2| - 2\log|x+1| - \frac{1}{x+1} + C \]

Common Mistake

One common mistake: Writing only one term \( \frac{A}{(x+1)^2} \) for the repeated factor instead of two separate terms \( \frac{A}{x+1} + \frac{B}{(x+1)^2} \) — this makes the decomposition incomplete and leads to incorrect values of the constants.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Clear denominators and find constants: Multiply through: \[ x^2+x+1 = A(x+1)(x+2) + B(x+2) + C(x+1)^2 \] Substitute \( x = -1 \): \( 1 = B(1) \Rightarrow B = 1 \). Substitute \( x = -2 \): \( 3 = C(1) \Rightarrow C = 3 \). Compare \( x^2 \) coefficients: \( 1 = A + C \Rightarrow A = -2 \).
  2. Step 2: Write partial fraction decomposition: \[ \frac{x^2+x+1}{(x+1)^2(x+2)} = \frac{-2}{x+1} + \frac{1}{(x+1)^2} + \frac{3}{x+2} \]
  3. Step 3: Integrate term by term: \[ \int \frac{x^2+x+1}{(x+1)^2(x+2)} \, dx = -2\log|x+1| - \frac{1}{x+1} + 3\log|x+2| + C \]

Answer: \[ \int \frac{x^2+x+1}{(x+1)^2(x+2)} \, dx = 3\log|x+2| - 2\log|x+1| - \frac{1}{x+1} + C \]

➕ More Examples

More Examples

Example 1

Question: Evaluate: \[ \int \frac{2x^2 + 3x + 1}{(x+2)^2(x-1)} \, dx \]

Solution: We use partial fractions. Write: \[ \frac{2x^2 + 3x + 1}{(x+2)^2(x-1)} = \frac{A}{x+2} + \frac{B}{(x+2)^2} + \frac{C}{x-1} \] Multiplying both sides by \( (x+2)^2(x-1) \): \[ 2x^2 + 3x + 1 = A(x+2)(x-1) + B(x-1) + C(x+2)^2 \] Substituting \( x = 1 \): \[ 2(1) + 3(1) + 1 = C(3)^2 \Rightarrow 6 = 9C \Rightarrow C = \frac{2}{3} \] Substituting \( x = -2 \): \[ 2(4) + 3(-2) + 1 = B(-3) \Rightarrow 8 - 6 + 1 = -3B \Rightarrow 3 = -3B \Rightarrow B = -1 \] Expanding the right-hand side and comparing coefficients of \( x^2 \): \[ 2 = A + C \Rightarrow A = 2 - \frac{2}{3} = \frac{4}{3} \] Verification using the constant term: RHS constant \( = A(2)(-1) + B(-1) + C(4) = -2A - B + 4C = -\frac{8}{3} + 1 + \frac{8}{3} = 1 \). LHS constant \( = 1 \). Confirmed. So: \[ \int \frac{2x^2 + 3x + 1}{(x+2)^2(x-1)} \, dx = \int \frac{4/3}{x+2} \, dx + \int \frac{-1}{(x+2)^2} \, dx + \int \frac{2/3}{x-1} \, dx \] Integrating term by term: \[ = \frac{4}{3} \ln|x+2| + \frac{1}{x+2} + \frac{2}{3} \ln|x-1| + C \]

Answer: \[ \frac{4}{3} \ln|x+2| + \frac{1}{x+2} + \frac{2}{3} \ln|x-1| + C \]

Example 2

Question: Evaluate: \[ \int \frac{x^2 - x + 2}{(x-1)^2(x+3)} \, dx \]

Solution: We use partial fractions. Write: \[ \frac{x^2 - x + 2}{(x-1)^2(x+3)} = \frac{A}{x-1} + \frac{B}{(x-1)^2} + \frac{C}{x+3} \] Multiplying both sides by \( (x-1)^2(x+3) \): \[ x^2 - x + 2 = A(x-1)(x+3) + B(x+3) + C(x-1)^2 \] Substituting \( x = 1 \): \[ 1 - 1 + 2 = B(4) \Rightarrow 2 = 4B \Rightarrow B = \frac{1}{2} \] Substituting \( x = -3 \): \[ 9 + 3 + 2 = C(-4)^2 \Rightarrow 14 = 16C \Rightarrow C = \frac{7}{8} \] Comparing coefficients of \( x^2 \) on both sides: \[ 1 = A + C \Rightarrow A = 1 - \frac{7}{8} = \frac{1}{8} \] Verification using constant term: RHS constant \( = A(-1)(3) + B(3) + C(1) = -3A + 3B + C = -\frac{3}{8} + \frac{3}{2} + \frac{7}{8} = -\frac{3}{8} + \frac{12}{8} + \frac{7}{8} = \frac{16}{8} = 2 \). LHS constant \( = 2 \). Confirmed. So: \[ \int \frac{x^2 - x + 2}{(x-1)^2(x+3)} \, dx = \int \frac{1/8}{x-1} \, dx + \int \frac{1/2}{(x-1)^2} \, dx + \int \frac{7/8}{x+3} \, dx \] Integrating term by term: \[ = \frac{1}{8} \ln|x-1| - \frac{1}{2(x-1)} + \frac{7}{8} \ln|x+3| + C \]

Answer: \[ \frac{1}{8} \ln|x-1| - \frac{1}{2(x-1)} + \frac{7}{8} \ln|x+3| + C \]

🎯 Try a Similar Question

Try a Similar Question

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

Solution

  1. Step 1: Set up Partial Fractions: We write the integrand as a sum of partial fractions: \[\frac{2x^2+3x+1}{(x+1)^2(x+3)} = \frac{A}{x+1} + \frac{B}{(x+1)^2} + \frac{C}{x+3}\] Multiplying both sides by \((x+1)^2(x+3)\), we get: \[2x^2+3x+1 = A(x+1)(x+3) + B(x+3) + C(x+1)^2\]
  2. Step 2: Find constant B by substituting x = -1: Put \(x = -1\): \[2(1) + 3(-1) + 1 = A(0)(2) + B(2) + C(0)\] \[2 - 3 + 1 = 2B\] \[0 = 2B\] So \(B = 0\).
  3. Step 3: Find constant C by substituting x = -3: Put \(x = -3\): \[2(9) + 3(-3) + 1 = A(-2)(0) + B(0) + C(-2)^2\] \[18 - 9 + 1 = 4C\] \[10 = 4C\] So \(C = \dfrac{10}{4} = \dfrac{5}{2}\).
  4. Step 4: Find constant A by comparing coefficients: Expanding the right-hand side with \(B = 0\) and \(C = \dfrac{5}{2}\): \[A(x^2+4x+3) + 0 + \frac{5}{2}(x^2+2x+1)\] \[= \left(A + \frac{5}{2}\right)x^2 + \left(4A + 5\right)x + \left(3A + \frac{5}{2}\right)\] Comparing the coefficient of \(x^2\) with the left side (coefficient 2): \[A + \frac{5}{2} = 2 \implies A = 2 - \frac{5}{2} = -\frac{1}{2}\] Verification using coefficient of \(x\): \[4\left(-\frac{1}{2}\right) + 5 = -2 + 5 = 3\] which matches the left side. So \(A = -\dfrac{1}{2}\).
  5. Step 5: Rewrite the integral using partial fractions: The decomposition is: \[\frac{2x^2+3x+1}{(x+1)^2(x+3)} = \frac{-1/2}{x+1} + \frac{0}{(x+1)^2} + \frac{5/2}{x+3}\] So the integral becomes: \[\int \frac{2x^2+3x+1}{(x+1)^2(x+3)} \, dx = -\frac{1}{2}\int \frac{1}{x+1} \, dx + \frac{5}{2}\int \frac{1}{x+3} \, dx\]
  6. Step 6: Evaluate each integral: Using the standard result \(\int \dfrac{1}{x+k} \, dx = \log|x+k| + C\): \[-\frac{1}{2}\int \frac{1}{x+1} \, dx = -\frac{1}{2}\log|x+1|\] \[\frac{5}{2}\int \frac{1}{x+3} \, dx = \frac{5}{2}\log|x+3|\]
  7. Step 7: Write the final answer: Combining the results: \[\int \frac{2x^2+3x+1}{(x+1)^2(x+3)} \, dx = \frac{5}{2}\log|x+3| - \frac{1}{2}\log|x+1| + C\]

Answer: \[\int \frac{2x^2+3x+1}{(x+1)^2(x+3)} \, dx = \frac{5}{2}\log|x+3| - \frac{1}{2}\log|x+1| + 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)