SOLVER7 Study. Nothing Else.
2023 Board Paper Q26

Find : \(\int\dfrac{x^2+x+1}{(x+1)^2\ (x+2)}dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a big, complicated fraction that is too hard to work with all at once. You can break it into smaller, simpler pieces — just like splitting a large bill among friends. Each small piece is easy to handle on its own. Here, the tricky fraction gets split into three friendly little fractions. Each small fraction is simple enough to integrate using basic rules we already know. Putting all the results together at the end gives us the final answer.

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

📖 Integration using Partial Fractions

Detailed Explanation

When we integrate a rational function (a ratio of two polynomials) where the degree of the numerator is less than the degree of the denominator, we use the method of partial fractions. Here the denominator is \((x+1)^2(x+2)\). It has a repeated linear factor \((x+1)^2\) and a distinct linear factor \((x+2)\). For a repeated factor \((x+1)^2\) we must include TWO terms: one with \((x+1)\) in the denominator and one with \((x+1)^2\). This splits the hard integral into simple standard integrals that we already know how to solve.

Formula Used

For a repeated linear factor, use the decomposition \[\frac{x^2+x+1}{(x+1)^2(x+2)} = \frac{A}{x+1} + \frac{B}{(x+1)^2} + \frac{C}{x+2}\] and the standard results \[\int \frac{1}{x+a}\,dx = \ln|x+a| + C, \qquad \int (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 distinct, 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 the denominators: \[x^2+x+1 = A(x+1)(x+2) + B(x+2) + C(x+1)^2.\]
  3. Step 3: Find the constants by substituting convenient values of \(x\). Put \(x=-1\): \[(-1)^2+(-1)+1 = B(-1+2) \Rightarrow 1 = B \Rightarrow B = 1.\] Put \(x=-2\): \[(-2)^2+(-2)+1 = C(-2+1)^2 \Rightarrow 3 = C \Rightarrow C = 3.\]
  4. Step 4: Find \(A\) by comparing coefficients of \(x^2\). On the right, the \(x^2\) terms come from \(A(x+1)(x+2)\) and \(C(x+1)^2\), giving coefficient \(A + C\). On the left it is \(1\). So \[A + C = 1 \Rightarrow A + 3 = 1 \Rightarrow A = -2.\]
  5. Step 5: Substitute the constants back into the decomposition: \[\frac{x^2+x+1}{(x+1)^2(x+2)} = \frac{-2}{x+1} + \frac{1}{(x+1)^2} + \frac{3}{x+2}.\]
  6. Step 6: Integrate each term separately using the standard results: \[\int \frac{-2}{x+1}\,dx = -2\ln|x+1|,\] \[\int \frac{1}{(x+1)^2}\,dx = -\frac{1}{x+1},\] \[\int \frac{3}{x+2}\,dx = 3\ln|x+2|.\]
  7. Step 7: Combine all the results and add the constant of integration \(C\): \[-2\ln|x+1| - \frac{1}{x+1} + 3\ln|x+2| + C.\]

Final Answer

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

Common Mistake

A common mistake is writing only one term \(\frac{A}{x+1}\) for the repeated factor. For \((x+1)^2\) you must include BOTH \(\frac{A}{x+1}\) and \(\frac{B}{(x+1)^2}\), otherwise the decomposition is incomplete and the answer will be wrong.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Identify the structure of the denominator: The denominator is \((x+1)^2(x+2)\), which has a repeated linear factor \((x+1)^2\) and a non-repeated linear factor \((x+2)\). — Reason: Identifying the nature of each factor tells us exactly how many partial fraction terms to write: a repeated factor of degree 2 contributes two separate terms, and a simple factor contributes one term.
  2. Step 2: Write the partial fraction decomposition: Express the integrand as \[\frac{x^2+x+1}{(x+1)^2(x+2)} = \frac{A}{x+1} + \frac{B}{(x+1)^2} + \frac{C}{x+2}.\] — Reason: This is the standard form for decomposing a fraction whose denominator has one repeated linear factor and one distinct linear factor; both \(\frac{A}{x+1}\) and \(\frac{B}{(x+1)^2}\) are needed to account for the repeated factor.
  3. Step 3: Clear the denominators: Multiply every term on both sides by \((x+1)^2(x+2)\) to obtain \[x^2+x+1 = A(x+1)(x+2) + B(x+2) + C(x+1)^2.\] — Reason: Removing the denominators turns the equation into a polynomial identity, making it easy to substitute values and compare coefficients.
  4. Step 4: Find B and C by substituting convenient values: Substitute \(x = -1\): the terms with \(A\) and \(C\) vanish, giving \[1 = B(1) \implies B = 1.\] Substitute \(x = -2\): the terms with \(A\) and \(B\) vanish, giving \[3 = C(1) \implies C = 3.\] — Reason: Choosing values that make two of the three groups zero lets us solve for each constant in one line, avoiding simultaneous equations.
  5. Step 5: Find A by comparing coefficients of x²: Expand the right-hand side: \(A(x+1)(x+2)\) contributes \(Ax^2\), \(C(x+1)^2\) contributes \(Cx^2\), and \(B(x+2)\) has no \(x^2\) term. So the coefficient of \(x^2\) on the right is \(A + C\). Equating with the left-hand side: \[A + C = 1 \implies A + 3 = 1 \implies A = -2.\] — Reason: Since no convenient substitution isolates \(A\) directly, comparing the leading coefficients of \(x^2\) on both sides gives a simple equation for \(A\).
  6. Step 6: Rewrite and integrate term by term: Substituting \(A = -2\), \(B = 1\), \(C = 3\) gives \[\int \frac{x^2+x+1}{(x+1)^2(x+2)}\,dx = \int \frac{-2}{x+1}\,dx + \int \frac{1}{(x+1)^2}\,dx + \int \frac{3}{x+2}\,dx.\] Now integrate each term using the standard results: the first gives \(-2\ln|x+1|\), the second gives \(-\frac{1}{x+1}\), and the third gives \(3\ln|x+2|\). — Reason: Each piece now matches a known standard integral, so the calculation is direct.
  7. Step 7: Combine the results: Adding all three antiderivatives and appending the constant of integration yields \[3\ln|x+2| - 2\ln|x+1| - \frac{1}{x+1} + C.\] — Reason: Collecting terms in a conventional order (logarithmic terms first, then the algebraic term) gives the neatest final form.

Final Answer

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

Common Mistake

One common mistake: For the repeated factor \((x+1)^2\), students sometimes write only one term \(\frac{A}{(x+1)^2}\) and omit the required \(\frac{B}{x+1}\) term, leading to an incomplete decomposition that cannot match the original numerator for all values of \(x\).

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Clear denominators: Multiply both sides by \((x+1)^2(x+2)\): \[x^2+x+1 = A(x+1)(x+2) + B(x+2) + C(x+1)^2\]
  2. Step 2: Find constants: At \(x = -1\): \(1 = B(1)\) so \(B = 1\). At \(x = -2\): \(3 = C(1)\) so \(C = 3\). Comparing \(x^2\) coefficients: \(1 = A + C\) so \(A = -2\).
  3. Step 3: Integrate: \[\int \frac{x^2+x+1}{(x+1)^2(x+2)}\,dx = -2\int\frac{1}{x+1}\,dx + \int\frac{1}{(x+1)^2}\,dx + 3\int\frac{1}{x+2}\,dx\]

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

➕ More Examples

More Examples

Example 1

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

Solution: We use partial fractions. Write: \[\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) \): \[2x^2 + 3x + 1 = A(x+1)(x+3) + B(x+3) + C(x+1)^2\] Substituting \( x = -1 \): \[2(1) + 3(-1) + 1 = A(0) + B(2) + C(0)\] \[0 = 2B \implies B = 0\] Substituting \( x = -3 \): \[2(9) + 3(-3) + 1 = A(0) + B(0) + C(-2)^2\] \[18 - 9 + 1 = 4C \implies 10 = 4C \implies C = \frac{5}{2}\] Substituting \( x = 0 \): \[0 + 0 + 1 = A(1)(3) + B(3) + C(1)\] \[1 = 3A + 0 + \frac{5}{2} \implies 3A = 1 - \frac{5}{2} = -\frac{3}{2} \implies A = -\frac{1}{2}\] So the decomposition is: \[\frac{2x^2 + 3x + 1}{(x+1)^2(x+3)} = \frac{-\frac{1}{2}}{x+1} + \frac{0}{(x+1)^2} + \frac{\frac{5}{2}}{x+3}\] Now integrate: \[\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\] \[= -\frac{1}{2}\ln|x+1| + \frac{5}{2}\ln|x+3| + C\]

Answer: \(-\frac{1}{2}\ln|x+1| + \frac{5}{2}\ln|x+3| + C\)

Example 2

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

Solution: We use partial fractions. Write: \[\frac{x^2 + 2x + 3}{(x-1)^2(x+2)} = \frac{A}{x-1} + \frac{B}{(x-1)^2} + \frac{C}{x+2}\] Multiplying both sides by \( (x-1)^2(x+2) \): \[x^2 + 2x + 3 = A(x-1)(x+2) + B(x+2) + C(x-1)^2\] Substituting \( x = 1 \): \[1 + 2 + 3 = A(0) + B(3) + C(0)\] \[6 = 3B \implies B = 2\] Substituting \( x = -2 \): \[4 - 4 + 3 = A(0) + B(0) + C(-3)^2\] \[3 = 9C \implies C = \frac{1}{3}\] Substituting \( x = 0 \): \[0 + 0 + 3 = A(-1)(2) + B(2) + C(1)\] \[3 = -2A + 4 + \frac{1}{3} \implies -2A = 3 - 4 - \frac{1}{3} = -1 - \frac{1}{3} = -\frac{4}{3} \implies A = \frac{2}{3}\] So the decomposition is: \[\frac{x^2 + 2x + 3}{(x-1)^2(x+2)} = \frac{\frac{2}{3}}{x-1} + \frac{2}{(x-1)^2} + \frac{\frac{1}{3}}{x+2}\] Now integrate: \[\int \frac{x^2 + 2x + 3}{(x-1)^2(x+2)} \, dx = \frac{2}{3}\int \frac{1}{x-1} \, dx + 2\int \frac{1}{(x-1)^2} \, dx + \frac{1}{3}\int \frac{1}{x+2} \, dx\] \[= \frac{2}{3}\ln|x-1| + 2 \cdot \left(\frac{-1}{x-1}\right) + \frac{1}{3}\ln|x+2| + C\] \[= \frac{2}{3}\ln|x-1| + \frac{1}{3}\ln|x+2| - \frac{2}{x-1} + C\]

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

🎯 Try a Similar Question

Try a Similar Question

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

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)\) gives: \[2x^2+3x+1 = A(x+1)(x+3) + B(x+3) + C(x+1)^2\]
  2. Step 2: Find the Constants: Substitute \(x = -1\): \[2(1) + 3(-1) + 1 = A(0)(2) + B(2) + C(0)\] \[2 - 3 + 1 = 2B\] \[0 = 2B\] So \(B = 0\). Substitute \(x = -3\): \[2(9) + 3(-3) + 1 = A(-2)(0) + B(0) + C(-2)^2\] \[18 - 9 + 1 = 4C\] \[10 = 4C\] So \(C = \dfrac{5}{2}\). Expand and compare coefficients of \(x^2\) to find \(A\). The coefficient of \(x^2\) on the right is \(A + C\), and on the left it is \(2\): \[A + C = 2\] \[A + \frac{5}{2} = 2\] \[A = 2 - \frac{5}{2} = -\frac{1}{2}\]
  3. Step 3: Verify with Constant Term: The constant term on the right side is \(A(1)(3) + B(3) + C(1) = 3A + 3B + C\). Substituting \(A = -\dfrac{1}{2}\), \(B = 0\), \(C = \dfrac{5}{2}\): \[3\left(-\frac{1}{2}\right) + 3(0) + \frac{5}{2} = -\frac{3}{2} + \frac{5}{2} = 1\] The constant term on the left is \(1\). This confirms our values.
  4. Step 4: Write the Decomposition: We now have: \[\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}\]
  5. Step 5: Integrate Term by Term: Integrating each term separately: \[\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\] Using the standard formula \(\int \dfrac{1}{x+a} \, dx = \ln|x+a| + C\): \[= -\frac{1}{2}\ln|x+1| + \frac{5}{2}\ln|x+3| + C\]

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