SOLVER7 Study. Nothing Else.
Chapter 7 Examples Q16

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

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a big, messy fraction that is hard to add up all at once. Breaking it into smaller, friendlier pieces makes the job easy. That is exactly what we do here: we split one complicated fraction into two simpler ones. Each small piece is something we already know how to handle, like finding a log or an inverse tangent. After solving each piece separately, we simply add the results together to get our final answer.

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

📖 Integration Using Partial Fractions

Detailed Explanation

When we integrate a rational function (a fraction where numerator and denominator are polynomials) and the degree of the numerator is less than the degree of the denominator, we use the method of partial fractions. The idea is to break one complicated fraction into a sum of simpler fractions that we already know how to integrate. Here the denominator is \((x+2)(x^2+1)\). Since \(x+2\) is a linear factor and \(x^2+1\) is an irreducible quadratic (it cannot be factorised further using real numbers), the correct partial fraction form uses a constant over the linear factor and a linear expression over the quadratic factor. After finding the unknown constants, each piece integrates into either a logarithm or an inverse tangent.

Formula Used

For an irreducible quadratic factor: \(\dfrac{x^2+x+1}{(x+2)(x^2+1)} = \dfrac{A}{x+2} + \dfrac{Bx+C}{x^2+1}\). Useful results: \(\int \dfrac{1}{x+a}\,dx = \log|x+a| + C\), \(\int \dfrac{x}{x^2+1}\,dx = \dfrac{1}{2}\log(x^2+1) + C\), and \(\int \dfrac{1}{x^2+1}\,dx = \tan^{-1}x + C\).

Solution

  1. Step 1: Set up the partial fraction decomposition. Because the denominator has a linear factor \(x+2\) and an irreducible quadratic \(x^2+1\), write \[\frac{x^2+x+1}{(x+2)(x^2+1)} = \frac{A}{x+2} + \frac{Bx+C}{x^2+1}.\]
  2. Step 2: Clear the denominators by multiplying both sides by \((x+2)(x^2+1)\). This gives \[x^2+x+1 = A(x^2+1) + (Bx+C)(x+2).\] This identity must hold for all values of \(x\).
  3. Step 3: Find \(A\) by substituting \(x = -2\), which makes the \((Bx+C)\) term vanish. \[(-2)^2 + (-2) + 1 = A((-2)^2 + 1)\] \[4 - 2 + 1 = A(5)\] \[3 = 5A \implies A = \frac{3}{5}.\]
  4. Step 4: Find \(B\) and \(C\) by comparing coefficients. Expand the right side: \[A x^2 + A + B x^2 + 2Bx + Cx + 2C = (A+B)x^2 + (2B+C)x + (A+2C).\] Comparing with \(x^2 + x + 1\): coefficient of \(x^2\) gives \(A+B=1\), so \(B = 1 - \frac{3}{5} = \frac{2}{5}\). Constant term gives \(A + 2C = 1\), so \(2C = 1 - \frac{3}{5} = \frac{2}{5}\), hence \(C = \frac{1}{5}\). (Check with \(2B+C = \frac{4}{5}+\frac{1}{5}=1\), which matches the coefficient of \(x\).)
  5. Step 5: Rewrite the integral using the constants found: \[\int \frac{x^2+x+1}{(x+2)(x^2+1)}\,dx = \int \frac{3/5}{x+2}\,dx + \int \frac{\frac{2}{5}x + \frac{1}{5}}{x^2+1}\,dx.\]
  6. Step 6: Integrate the first piece. \[\int \frac{3/5}{x+2}\,dx = \frac{3}{5}\log|x+2|.\]
  7. Step 7: Split the second piece into two integrals: \[\int \frac{\frac{2}{5}x + \frac{1}{5}}{x^2+1}\,dx = \frac{2}{5}\int \frac{x}{x^2+1}\,dx + \frac{1}{5}\int \frac{1}{x^2+1}\,dx.\] Using \(\int \frac{x}{x^2+1}\,dx = \frac{1}{2}\log(x^2+1)\) and \(\int \frac{1}{x^2+1}\,dx = \tan^{-1}x\), we get \[\frac{2}{5}\cdot\frac{1}{2}\log(x^2+1) + \frac{1}{5}\tan^{-1}x = \frac{1}{5}\log(x^2+1) + \frac{1}{5}\tan^{-1}x.\]
  8. Step 8: Combine all pieces and add the constant of integration \(C\): \[\frac{3}{5}\log|x+2| + \frac{1}{5}\log(x^2+1) + \frac{1}{5}\tan^{-1}x + C.\]

Final Answer

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

Common Mistake

A very common error is writing the numerator over \(x^2+1\) as a single constant \(\frac{B}{x^2+1}\) instead of a linear term \(\frac{Bx+C}{x^2+1}\). For an irreducible quadratic factor, the numerator must be of the form \(Bx+C\), otherwise you cannot match all coefficients and the answer will be wrong.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Write the Partial Fraction Decomposition: Express the integrand as a sum of simpler fractions: \[\frac{x^2+x+1}{(x+2)(x^2+1)} = \frac{A}{x+2} + \frac{Bx+C}{x^2+1}\] Reason: The denominator has a linear factor \(x+2\) and an irreducible quadratic \(x^2+1\) (it has no real roots). The linear factor gets a constant numerator \(A\), while the irreducible quadratic gets a linear numerator \(Bx+C\). This is the standard rule for partial fractions.
  2. Step 2: Clear the Denominators: Multiply both sides by \((x+2)(x^2+1)\) to obtain the polynomial identity: \[x^2+x+1 = A(x^2+1) + (Bx+C)(x+2)\] Reason: Eliminating denominators converts the equation into a polynomial identity that must hold for every value of \(x\), which allows us to find \(A\), \(B\), and \(C\) by substitution or by comparing coefficients.
  3. Step 3: Find A by Substituting x = -2: Substitute \(x = -2\) into \(x^2+x+1 = A(x^2+1) + (Bx+C)(x+2)\). The term \((Bx+C)(x+2)\) vanishes, giving: \[4 - 2 + 1 = A(4+1)\] \[3 = 5A\] So \(A = \dfrac{3}{5}\). Reason: Choosing \(x = -2\) makes the linear factor \(x+2 = 0\), which eliminates \(B\) and \(C\) in one step.
  4. Step 4: Find B and C by Comparing Coefficients: Expand the right-hand side of \(x^2+x+1 = A(x^2+1) + (Bx+C)(x+2)\) and collect like powers of \(x\): \[x^2+x+1 = (A+B)x^2 + (2B+C)x + (A+2C)\] Comparing coefficients of \(x^2\): \(A+B = 1\), so \(B = 1 - \dfrac{3}{5} = \dfrac{2}{5}\). Comparing constant terms: \(A+2C = 1\), so \(2C = 1 - \dfrac{3}{5} = \dfrac{2}{5}\), giving \(C = \dfrac{1}{5}\). Reason: Since the identity holds for all \(x\), coefficients of matching powers on both sides must be equal, giving a system of equations for the unknowns.
  5. Step 5: Rewrite the Integrand Using Partial Fractions: Substitute \(A = \dfrac{3}{5}\), \(B = \dfrac{2}{5}\), \(C = \dfrac{1}{5}\) back: \[\frac{x^2+x+1}{(x+2)(x^2+1)} = \frac{3/5}{x+2} + \frac{(2/5)x + 1/5}{x^2+1}\] Split the second fraction into two separate terms: \[= \frac{3}{5}\cdot\frac{1}{x+2} + \frac{2}{5}\cdot\frac{x}{x^2+1} + \frac{1}{5}\cdot\frac{1}{x^2+1}\] Reason: Splitting \(\dfrac{Bx+C}{x^2+1}\) into \(\dfrac{x}{x^2+1}\) and \(\dfrac{1}{x^2+1}\) matches two distinct standard integral forms.
  6. Step 6: Integrate Each Term Separately: Integrate term by term: \[\int \frac{x^2+x+1}{(x+2)(x^2+1)}\,dx = \frac{3}{5}\int\frac{1}{x+2}\,dx + \frac{2}{5}\int\frac{x}{x^2+1}\,dx + \frac{1}{5}\int\frac{1}{x^2+1}\,dx\] First integral: \(\displaystyle\int \frac{1}{x+2}\,dx = \log|x+2| + C_1\). Second integral: \(\displaystyle\int \frac{x}{x^2+1}\,dx = \frac{1}{2}\log(x^2+1) + C_2\) (using substitution \(u = x^2+1\)). Third integral: \(\displaystyle\int \frac{1}{x^2+1}\,dx = \tan^{-1}x + C_3\). Combining: \[\frac{3}{5}\log|x+2| + \frac{2}{5}\cdot\frac{1}{2}\log(x^2+1) + \frac{1}{5}\tan^{-1}x + C\] Reason: Each piece now matches a memorised standard result, making integration straightforward.
  7. Step 7: Simplify the Result: Simplify the coefficient of the middle term: \(\dfrac{2}{5} \times \dfrac{1}{2} = \dfrac{1}{5}\). The final integrated expression becomes: \[\frac{3}{5}\log|x+2| + \frac{1}{5}\log(x^2+1) + \frac{1}{5}\tan^{-1}x + C\] Reason: Combining the numerical factors gives a clean, simplified answer ready to write as the final result.

Final Answer

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

Common Mistake

One common mistake: Writing the partial fraction for the irreducible quadratic factor as \(\dfrac{B}{x^2+1}\) (a constant numerator) instead of \(\dfrac{Bx+C}{x^2+1}\) (a linear numerator). A quadratic denominator always requires a linear numerator in the partial fraction decomposition, otherwise the system of equations is inconsistent and you will get wrong values for the constants.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Partial Fraction Decomposition: Write \ \[\frac{x^2+x+1}{(x+2)(x^2+1)} = \frac{A}{x+2} + \frac{Bx+C}{x^2+1}\] so that \(x^2+x+1 = A(x^2+1)+(Bx+C)(x+2).\)
  2. Step 2: Find Constants: Substituting \(x = -2\): \(4-2+1 = 5A\) giving \(A = \dfrac{3}{5}.\) Expanding and comparing coefficients of \(x^2\): \(A+B=1\) so \(B=\dfrac{2}{5}.\) Comparing constants: \(A+2C=1\) so \(C=\dfrac{1}{5}.\)
  3. Step 3: Integrate Each Term: \[\int \frac{x^2+x+1}{(x+2)(x^2+1)}\,dx = \frac{3}{5}\int\frac{1}{x+2}\,dx + \frac{1}{5}\int\frac{2x}{x^2+1}\,dx + \frac{1}{5}\int\frac{1}{x^2+1}\,dx\]

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

➕ More Examples

More Examples

Example 1

Question: Evaluate \(\int \dfrac{2x^2 - x + 3}{(x-1)(x^2+4)}\,dx\).

Solution: We write the integrand using partial fractions: \[\frac{2x^2 - x + 3}{(x-1)(x^2+4)} = \frac{A}{x-1} + \frac{Bx+C}{x^2+4}\] Multiplying both sides by \((x-1)(x^2+4)\): \[2x^2 - x + 3 = A(x^2+4) + (Bx+C)(x-1)\] Setting \(x = 1\): \(2(1) - 1 + 3 = A(1+4)\), so \(4 = 5A\), giving \(A = \dfrac{4}{5}\). Expanding the right side: \[2x^2 - x + 3 = Ax^2 + 4A + Bx^2 - Bx + Cx - C\] \[2x^2 - x + 3 = (A+B)x^2 + (-B+C)x + (4A - C)\] Comparing coefficients of \(x^2\): \(A + B = 2\), so \(B = 2 - \dfrac{4}{5} = \dfrac{6}{5}\). Comparing constant terms: \(4A - C = 3\), so \(C = 4\left(\dfrac{4}{5}\right) - 3 = \dfrac{16}{5} - 3 = \dfrac{1}{5}\). Verification with \(x\)-coefficient: \(-B + C = -\dfrac{6}{5} + \dfrac{1}{5} = -\dfrac{5}{5} = -1\). This matches. So the integral becomes: \[\int \left(\frac{4/5}{x-1} + \frac{\frac{6}{5}x + \frac{1}{5}}{x^2+4}\right)dx\] \[= \frac{4}{5}\int \frac{dx}{x-1} + \frac{6}{5}\int \frac{x\,dx}{x^2+4} + \frac{1}{5}\int \frac{dx}{x^2+4}\] Evaluating each integral: First: \(\dfrac{4}{5}\ln|x-1|\) Second: \(\dfrac{6}{5} \cdot \dfrac{1}{2}\ln(x^2+4) = \dfrac{3}{5}\ln(x^2+4)\) Third: \(\dfrac{1}{5} \cdot \dfrac{1}{2}\tan^{-1}\!\left(\dfrac{x}{2}\right) = \dfrac{1}{10}\tan^{-1}\!\left(\dfrac{x}{2}\right)\) Therefore the final answer is: \[\frac{4}{5}\ln|x-1| + \frac{3}{5}\ln(x^2+4) + \frac{1}{10}\tan^{-1}\!\left(\frac{x}{2}\right) + C\]

Answer: \(\dfrac{4}{5}\ln|x-1| + \dfrac{3}{5}\ln(x^2+4) + \dfrac{1}{10}\tan^{-1}\!\left(\dfrac{x}{2}\right) + C\)

Example 2

Question: Evaluate \(\int \dfrac{3x^2 + 5x - 2}{(x+3)(x^2+2)}\,dx\).

Solution: We decompose using partial fractions: \[\frac{3x^2 + 5x - 2}{(x+3)(x^2+2)} = \frac{A}{x+3} + \frac{Bx+C}{x^2+2}\] Multiplying both sides by \((x+3)(x^2+2)\): \[3x^2 + 5x - 2 = A(x^2+2) + (Bx+C)(x+3)\] Setting \(x = -3\): \(3(9) + 5(-3) - 2 = A(9+2)\), so \(27 - 15 - 2 = 11A\), giving \(10 = 11A\), hence \(A = \dfrac{10}{11}\). Expanding the right side: \[3x^2 + 5x - 2 = (A+B)x^2 + (3B+C)x + (2A+3C)\] Comparing coefficients of \(x^2\): \(A + B = 3\), so \(B = 3 - \dfrac{10}{11} = \dfrac{23}{11}\). Comparing constant terms: \(2A + 3C = -2\), so \(3C = -2 - \dfrac{20}{11} = -\dfrac{42}{11}\), giving \(C = -\dfrac{14}{11}\). Verification with \(x\)-coefficient: \(3B + C = \dfrac{69}{11} - \dfrac{14}{11} = \dfrac{55}{11} = 5\). This matches. So the integral becomes: \[\int \left(\frac{10/11}{x+3} + \frac{\frac{23}{11}x - \frac{14}{11}}{x^2+2}\right)dx\] \[= \frac{10}{11}\int \frac{dx}{x+3} + \frac{23}{11}\int \frac{x\,dx}{x^2+2} - \frac{14}{11}\int \frac{dx}{x^2+2}\] Evaluating each integral: First: \(\dfrac{10}{11}\ln|x+3|\) Second: \(\dfrac{23}{11} \cdot \dfrac{1}{2}\ln(x^2+2) = \dfrac{23}{22}\ln(x^2+2)\) Third: \(\dfrac{14}{11} \cdot \dfrac{1}{\sqrt{2}}\tan^{-1}\!\left(\dfrac{x}{\sqrt{2}}\right) = \dfrac{14}{11\sqrt{2}}\tan^{-1}\!\left(\dfrac{x}{\sqrt{2}}\right)\) Therefore the final answer is: \[\frac{10}{11}\ln|x+3| + \frac{23}{22}\ln(x^2+2) - \frac{14}{11\sqrt{2}}\tan^{-1}\!\left(\frac{x}{\sqrt{2}}\right) + C\]

Answer: \(\dfrac{10}{11}\ln|x+3| + \dfrac{23}{22}\ln(x^2+2) - \dfrac{14}{11\sqrt{2}}\tan^{-1}\!\left(\dfrac{x}{\sqrt{2}}\right) + C\)

🎯 Try a Similar Question

Try a Similar Question

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

Solution

  1. Step 1: Set up Partial Fractions: We write the integrand as a sum of partial fractions. Since \( (x+1) \) is a linear factor and \( (x^2+4) \) is an irreducible quadratic, we write: \[\frac{2x^2+3x+5}{(x+1)(x^2+4)} = \frac{A}{x+1} + \frac{Bx+C}{x^2+4}\] for constants \( A \), \( B \), \( C \) to be determined.
  2. Step 2: Clear the Denominator: Multiplying both sides by \( (x+1)(x^2+4) \), we get: \[2x^2+3x+5 = A(x^2+4) + (Bx+C)(x+1).\]
  3. Step 3: Find Constant A by Substitution: Put \( x = -1 \): \[2(1) + 3(-1) + 5 = A(1+4) + 0\] which gives \( 2 - 3 + 5 = 5A \), so \( 4 = 5A \), hence \[A = \frac{4}{5}.\]
  4. Step 4: Expand and Compare Coefficients: Expanding the right side: \[A(x^2+4) + (Bx+C)(x+1) = Ax^2 + 4A + Bx^2 + Bx + Cx + C\] \[= (A+B)x^2 + (B+C)x + (4A+C).\] Comparing with \( 2x^2+3x+5 \), we equate coefficients: Coefficient of \( x^2 \): \( A + B = 2 \), so \( B = 2 - A = 2 - \frac{4}{5} = \frac{6}{5} \). Constant term: \( 4A + C = 5 \), so \( C = 5 - 4A = 5 - \frac{16}{5} = \frac{9}{5} \). Verification with coefficient of \( x \): \( B + C = \frac{6}{5} + \frac{9}{5} = \frac{15}{5} = 3 \). This matches.
  5. Step 5: Rewrite the Integral: Substituting the values of \( A \), \( B \), \( C \): \[\int \frac{2x^2+3x+5}{(x+1)(x^2+4)}\,dx = \int \frac{4/5}{x+1}\,dx + \int \frac{\frac{6}{5}x + \frac{9}{5}}{x^2+4}\,dx.\] Splitting the second integral: \[= \frac{4}{5}\int \frac{1}{x+1}\,dx + \frac{6}{5}\int \frac{x}{x^2+4}\,dx + \frac{9}{5}\int \frac{1}{x^2+4}\,dx.\]
  6. Step 6: Integrate Each Part: Using standard formulas: \[\frac{4}{5}\int \frac{1}{x+1}\,dx = \frac{4}{5}\log|x+1| + C_1,\] \[\frac{6}{5}\int \frac{x}{x^2+4}\,dx = \frac{6}{5} \cdot \frac{1}{2}\log(x^2+4) + C_2 = \frac{3}{5}\log(x^2+4) + C_2,\] \[\frac{9}{5}\int \frac{1}{x^2+4}\,dx = \frac{9}{5} \cdot \frac{1}{2}\tan^{-1}\frac{x}{2} + C_3 = \frac{9}{10}\tan^{-1}\frac{x}{2} + C_3.\]
  7. Step 7: Write the Final Answer: Combining all parts: \[\int \frac{2x^2+3x+5}{(x+1)(x^2+4)}\,dx = \frac{4}{5}\log|x+1| + \frac{3}{5}\log(x^2+4) + \frac{9}{10}\tan^{-1}\frac{x}{2} + C.\]

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