SOLVER7 Study. Nothing Else.
2026 Board Paper Q28(b)

Find : \(\int\dfrac{x+3}{x^2+4x+5}dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you have a messy fraction where the top part is slightly complicated. We cleverly rewrite the top so it looks like two simpler pieces. One piece matches the bottom's "rate of change," giving us a neat logarithm answer. The other leftover piece, after a quick shape-change of the bottom, gives an inverse tangent answer. Like sorting mixed fruit into two bowls — each bowl is easy to handle separately. Combining both bowls gives the complete answer.

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

📖 Detailed Solution: Integrating a Rational Function

Detailed Explanation

When we integrate an expression of the form \(\dfrac{\text{linear}}{\text{quadratic}}\), where the quadratic does not factor into nice real factors, we use a standard technique. The idea is to write the numerator as a combination of the derivative of the denominator and a constant. This lets us split the integral into two parts: one part gives a logarithm (because it has the pattern \(\int \dfrac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C\)), and the other part becomes a standard integral that gives an inverse tangent after completing the square. Here the denominator is \(x^2 + 4x + 5\), whose derivative is \(2x + 4\).

Formula Used

\[\int \frac{f'(x)}{f(x)}\, dx = \ln|f(x)| + C\] \[\int \frac{dx}{x^2 + a^2} = \frac{1}{a}\tan^{-1}\left(\frac{x}{a}\right) + C\]

Solution

  1. Step 1: Find the derivative of the denominator. The denominator is \(x^2 + 4x + 5\), so its derivative is \(2x + 4\). We want to express the numerator \(x + 3\) in terms of \(2x + 4\) plus a constant.
  2. Step 2: Write \(x + 3 = A(2x + 4) + B\). Comparing coefficients of \(x\): \(1 = 2A\), so \(A = \dfrac{1}{2}\). Comparing constants: \(3 = 4A + B = 2 + B\), so \(B = 1\). Thus \[x + 3 = \frac{1}{2}(2x + 4) + 1.\]
  3. Step 3: Split the integral using this decomposition: \[\int \frac{x+3}{x^2+4x+5}\,dx = \frac{1}{2}\int \frac{2x+4}{x^2+4x+5}\,dx + \int \frac{1}{x^2+4x+5}\,dx.\]
  4. Step 4: Evaluate the first integral. Its numerator is exactly the derivative of the denominator, so \[\frac{1}{2}\int \frac{2x+4}{x^2+4x+5}\,dx = \frac{1}{2}\ln|x^2+4x+5| + C_1.\]
  5. Step 5: For the second integral, complete the square in the denominator: \[x^2 + 4x + 5 = (x^2 + 4x + 4) + 1 = (x+2)^2 + 1.\] So the integral becomes \[\int \frac{1}{(x+2)^2 + 1^2}\,dx.\]
  6. Step 6: Apply the standard formula with \(a = 1\): \[\int \frac{1}{(x+2)^2 + 1}\,dx = \tan^{-1}(x+2) + C_2.\]
  7. Step 7: Combine both results into a single answer with one constant of integration: \[\frac{1}{2}\ln|x^2+4x+5| + \tan^{-1}(x+2) + C.\]

Final Answer

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

Common Mistake

A common mistake is trying to use partial fractions on \(x^2 + 4x + 5\), but this quadratic has no real factors (its discriminant is negative), so partial fractions do not apply. Another error is forgetting the constant \(B = 1\) when splitting the numerator, which loses the \(\tan^{-1}\) term entirely.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Differentiate the denominator. The denominator is \( x^2 + 4x + 5 \), so its derivative is \( 2x + 4 \). — Reason: Knowing this derivative tells us exactly what combination of \( x \) we need to produce in the numerator so that the first part of the split integral has the form \( \frac{f'(x)}{f(x)} \).
  2. Step 2: Express the numerator in terms of the derivative. Write \( x + 3 = A(2x + 4) + B \) and match coefficients. Comparing the \( x \)-coefficients gives \( 1 = 2A \), so \( A = \dfrac{1}{2} \). Comparing constant terms gives \( 3 = 4A + B = 2 + B \), so \( B = 1 \). Hence: \[ x + 3 = \frac{1}{2}(2x + 4) + 1. \] — Reason: This algebraic identity allows us to split one integral into two simpler, recognisable forms.
  3. Step 3: Split the original integral using the identity from Step 2: \[ \int \frac{x+3}{x^2+4x+5} \\, dx = \frac{1}{2}\int \frac{2x+4}{x^2+4x+5} \\, dx + \int \frac{1}{x^2+4x+5} \\, dx. \] — Reason: Breaking it into two separate integrals lets us handle each part with a different standard formula.
  4. Step 4: Evaluate the first integral. Because \( 2x + 4 \) is exactly the derivative of \( x^2 + 4x + 5 \), the first integral fits the pattern \( \int \frac{f'(x)}{f(x)} \\, dx \): \[ \frac{1}{2}\int \frac{2x+4}{x^2+4x+5} \\, dx = \frac{1}{2}\ln|x^2+4x+5| + C_1. \] — Reason: Direct application of the logarithmic integration formula.
  5. Step 5: Prepare the second integral by completing the square in the denominator: \[ x^2 + 4x + 5 = (x+2)^2 + 1. \] So the second integral becomes: \[ \int \frac{1}{(x+2)^2 + 1} \\, dx. \] — Reason: Completing the square converts the denominator into the standard form \( u^2 + a^2 \), which matches the inverse-tangent formula.
  6. Step 6: Evaluate the second integral using the substitution \( u = x + 2 \), so \( du = dx \): \[ \int \frac{1}{u^2 + 1} \\, du = \tan^{-1}(u) + C_2 = \tan^{-1}(x+2) + C_2. \] — Reason: The integral of \( \frac{1}{u^2+1} \) is the standard inverse-tangent result with \( a = 1 \).
  7. Step 7: Combine both results into the final answer: \[ \int \frac{x+3}{x^2+4x+5} \\, dx = \frac{1}{2}\ln|x^2+4x+5| + \tan^{-1}(x+2) + C. \] — Reason: Adding the two evaluated integrals and merging the arbitrary constants \( C_1 \) and \( C_2 \) into a single constant \( C \) gives the complete answer.

Final Answer

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

Common Mistake

One common mistake: forgetting to account for the remainder \( B = 1 \) when decomposing the numerator — writing \( x + 3 \) as just \( \frac{1}{2}(2x+4) \) (which equals \( x + 2 \), not \( x + 3 \)) and omitting the second integral entirely, which leads to a missing \( \tan^{-1}(x+2) \) term in the answer.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Write numerator as: \ \(x + 3 = \frac{1}{2}(2x+4) + 1\), so the integral splits as \[\int \frac{x+3}{x^2+4x+5}\,dx = \frac{1}{2}\int \frac{2x+4}{x^2+4x+5}\,dx + \int \frac{1}{x^2+4x+5}\,dx.\]
  2. Step 2: First part: \[\frac{1}{2}\int \frac{2x+4}{x^2+4x+5}\,dx = \frac{1}{2}\ln|x^2+4x+5| + C_1.\]
  3. Step 3: Second part: complete the square \(x^2+4x+5 = (x+2)^2+1\), giving \[\int \frac{dx}{(x+2)^2+1} = \tan^{-1}(x+2) + C_2.\]
  4. Step 4: Combine both parts: \[\int \frac{x+3}{x^2+4x+5}\,dx = \frac{1}{2}\ln|x^2+4x+5| + \tan^{-1}(x+2) + C.\]

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

➕ More Examples

More Examples

Example 1

Question: Find \( \int \frac{2x + 5}{x^2 + 6x + 13} \, dx \).

Solution: We write the numerator \( 2x + 5 \) in terms of the derivative of the denominator. The derivative of \( x^2 + 6x + 13 \) is \( 2x + 6 \). So we write: \[ 2x + 5 = A(2x + 6) + B \] Comparing coefficients: \( A = 1 \) and \( 6A + B = 5 \), giving \( B = -1 \). Therefore: \[ \int \frac{2x + 5}{x^2 + 6x + 13} \, dx = \int \frac{(2x + 6) - 1}{x^2 + 6x + 13} \, dx \] Split into two integrals: \[ = \int \frac{2x + 6}{x^2 + 6x + 13} \, dx - \int \frac{1}{x^2 + 6x + 13} \, dx \] For the first integral, since \( 2x + 6 \) is the derivative of \( x^2 + 6x + 13 \): \[ I_1 = \ln|x^2 + 6x + 13| + C_1 \] For the second integral, complete the square in the denominator: \[ x^2 + 6x + 13 = (x + 3)^2 + 4 = (x+3)^2 + 2^2 \] So: \[ I_2 = \int \frac{1}{(x+3)^2 + 2^2} \, dx = \frac{1}{2} \tan^{-1}\left(\frac{x+3}{2}\right) + C_2 \] Combining both results: \[ \int \frac{2x + 5}{x^2 + 6x + 13} \, dx = \ln|x^2 + 6x + 13| - \frac{1}{2}\tan^{-1}\left(\frac{x+3}{2}\right) + C \]

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

Example 2

Question: Find \( \int \frac{3x - 2}{x^2 - 4x + 8} \, dx \).

Solution: The derivative of \( x^2 - 4x + 8 \) is \( 2x - 4 \). Write the numerator \( 3x - 2 \) as: \[ 3x - 2 = A(2x - 4) + B \] Comparing coefficients of \( x \): \( 2A = 3 \), so \( A = \dfrac{3}{2} \). Comparing constant terms: \( -4A + B = -2 \), giving \( B = -2 + 4 \cdot \dfrac{3}{2} = -2 + 6 = 4 \). Therefore: \[ \int \frac{3x - 2}{x^2 - 4x + 8} \, dx = \frac{3}{2}\int \frac{2x - 4}{x^2 - 4x + 8} \, dx + 4\int \frac{1}{x^2 - 4x + 8} \, dx \] For the first integral, since \( 2x - 4 \) is the derivative of \( x^2 - 4x + 8 \): \[ I_1 = \frac{3}{2}\ln|x^2 - 4x + 8| + C_1 \] For the second integral, complete the square: \[ x^2 - 4x + 8 = (x - 2)^2 + 4 = (x-2)^2 + 2^2 \] So: \[ I_2 = 4 \int \frac{1}{(x-2)^2 + 2^2} \, dx = 4 \cdot \frac{1}{2}\tan^{-1}\left(\frac{x-2}{2}\right) + C_2 = 2\tan^{-1}\left(\frac{x-2}{2}\right) + C_2 \] Combining both results: \[ \int \frac{3x - 2}{x^2 - 4x + 8} \, dx = \frac{3}{2}\ln|x^2 - 4x + 8| + 2\tan^{-1}\left(\frac{x-2}{2}\right) + C \]

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

🎯 Try a Similar Question

Try a Similar Question

Question: Find \(\displaystyle\int \frac{x+5}{x^2+6x+13} \, dx\).

Solution

  1. Step 1 — Write the derivative of the denominator: Let the denominator be \(D = x^2 + 6x + 13\). Its derivative is \(D' = 2x + 6\). We want to express the numerator \(x + 5\) in terms of \(D'\) plus a constant.
  2. Step 2 — Split the numerator: Write \(x + 5 = A(2x + 6) + B\) for constants \(A\) and \(B\). Expanding the right-hand side gives \(2Ax + 6A + B\). Comparing coefficients of \(x\): \(2A = 1\), so \(A = \dfrac{1}{2}\). Comparing constant terms: \(6A + B = 5\), so \(B = 5 - 3 = 2\). Therefore \(x + 5 = \dfrac{1}{2}(2x + 6) + 2\).
  3. Step 3 — Split the integral: Using the decomposition from Step 2, write \[\int \frac{x+5}{x^2+6x+13} \, dx = \frac{1}{2}\int \frac{2x+6}{x^2+6x+13} \, dx + 2\int \frac{1}{x^2+6x+13} \, dx.\] Call these \(I_1\) and \(I_2\).
  4. Step 4 — Evaluate \(I_1\): Since the numerator \(2x + 6\) is exactly the derivative of the denominator \(x^2 + 6x + 13\), we get \[I_1 = \frac{1}{2}\int \frac{2x+6}{x^2+6x+13} \, dx = \frac{1}{2}\ln|x^2+6x+13| + C_1.\]
  5. Step 5 — Complete the square in the denominator for \(I_2\): Complete the square: \(x^2 + 6x + 13 = (x+3)^2 + 4 = (x+3)^2 + 2^2\). So \[I_2 = 2\int \frac{1}{(x+3)^2 + 4} \, dx.\]
  6. Step 6 — Evaluate \(I_2\) using the standard formula: Using \(\displaystyle\int \frac{1}{u^2 + a^2} \, du = \frac{1}{a}\tan^{-1}\!\left(\frac{u}{a}\right) + C\) with \(u = x+3\) and \(a = 2\): \[I_2 = 2 \cdot \frac{1}{2}\tan^{-1}\!\left(\frac{x+3}{2}\right) + C_2 = \tan^{-1}\!\left(\frac{x+3}{2}\right) + C_2.\]
  7. Step 7 — Combine the results: Adding \(I_1\) and \(I_2\): \[\int \frac{x+5}{x^2+6x+13} \, dx = \frac{1}{2}\ln|x^2+6x+13| + \tan^{-1}\!\left(\frac{x+3}{2}\right) + C.\]

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