SOLVER7 Study. Nothing Else.
Exercise 7.4 Q22

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

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine you want to split a big job into two smaller, easier jobs. Here, the fraction looks complicated, but we can secretly rewrite the top part as two simpler pieces. One piece matches perfectly with the bottom, making it easy to handle. The other leftover piece also turns into something familiar after a little reshaping. Together, both pieces give us a neat answer using logarithms. It is like tidying a messy room by sorting things into two boxes instead of dealing with everything at once.

Answer: \[ \int \frac{x+3}{x^2-2x-5} \, dx = \frac{1}{2}\ln|x^2-2x-5| + \frac{2}{\sqrt{6}} \ln\left| \frac{x-1-\sqrt{6}}{x-1+\sqrt{6}} \right| + C \]

📖 Integrating a Rational Function with a Quadratic Denominator

Detailed Explanation

When the integrand is a linear expression divided by a quadratic expression like \( \dfrac{x+3}{x^2-2x-5} \), the standard trick is to write the numerator as a multiple of the derivative of the denominator plus a constant. The derivative of \( x^2-2x-5 \) is \( 2x-2 \). Once we split the fraction, one part integrates to a logarithm (because it has the form \( \dfrac{f'(x)}{f(x)} \)), and the remaining constant part gives a standard integral that we handle by completing the square. Here completing the square gives a form like \( \dfrac{1}{x^2 - a^2} \), which uses the standard log formula.

Formula Used

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

Solution

  1. Step 1: Find the derivative of the denominator. The denominator is \( x^2 - 2x - 5 \), and its derivative is \( 2x - 2 \). We aim to express the numerator \( x+3 \) in terms of this derivative.
  2. Step 2: Write the numerator as \( x + 3 = A(2x - 2) + B \). Comparing the coefficient of \( x \): \( 1 = 2A \), so \( A = \dfrac{1}{2} \). Comparing constants: \( 3 = -2A + B = -1 + B \), so \( B = 4 \).
  3. Step 3: Split the integral using this decomposition. \[ \int \frac{x+3}{x^2-2x-5} \, dx = \frac{1}{2}\int \frac{2x-2}{x^2-2x-5} \, dx + 4\int \frac{dx}{x^2-2x-5} \]
  4. Step 4: Evaluate the first integral. Since the numerator is exactly the derivative of the denominator, it is of the form \( \dfrac{f'(x)}{f(x)} \). \[ \frac{1}{2}\int \frac{2x-2}{x^2-2x-5} \, dx = \frac{1}{2}\ln|x^2-2x-5| \]
  5. Step 5: Prepare the second integral by completing the square in the denominator. \[ x^2 - 2x - 5 = (x-1)^2 - 1 - 5 = (x-1)^2 - 6 \] So the second integral becomes \[ 4\int \frac{dx}{(x-1)^2 - (\sqrt{6})^2} \]
  6. Step 6: Apply the standard formula with \( a = \sqrt{6} \) and shift \( x \to x-1 \). \[ 4 \cdot \frac{1}{2\sqrt{6}} \ln\left| \frac{x-1-\sqrt{6}}{x-1+\sqrt{6}} \right| = \frac{2}{\sqrt{6}} \ln\left| \frac{x-1-\sqrt{6}}{x-1+\sqrt{6}} \right| \]
  7. Step 7: Combine both parts and add the constant of integration to get the final result.

Final Answer

\[ \int \frac{x+3}{x^2-2x-5} \, dx = \frac{1}{2}\ln|x^2-2x-5| + \frac{2}{\sqrt{6}} \ln\left| \frac{x-1-\sqrt{6}}{x-1+\sqrt{6}} \right| + C \]

Common Mistake

A common mistake is forgetting to adjust the constant part correctly. After writing \( x+3 = \frac{1}{2}(2x-2) + B \), students often forget the \( -2A = -1 \) contribution and wrongly take \( B = 3 \) instead of \( B = 4 \). Another frequent error is mixing up the formula for \( \dfrac{1}{x^2-a^2} \) (which gives a log) with the one for \( \dfrac{1}{x^2+a^2} \) (which gives \( \tan^{-1} \)).

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Differentiate the denominator: The denominator is \( x^2 - 2x - 5 \). Differentiating gives \( 2x - 2 \). — Reason: We need to express the numerator \( x + 3 \) in terms of this derivative so we can split the integral into manageable pieces.
  2. Step 2: Express the numerator in terms of the derivative: Write \( x + 3 = A(2x - 2) + B \) and match coefficients. Comparing coefficients of \( x \): \( 1 = 2A \), so \( A = \dfrac{1}{2} \). Comparing constant terms: \( 3 = -2A + B = -1 + B \), giving \( B = 4 \). — Reason: This algebraic identity lets us rewrite the numerator so one part of the fraction has the derivative of the denominator on top, making it directly integrable.
  3. Step 3: Split the integral into two parts: Using the decomposition found above, the integral becomes \[ \int \frac{x+3}{x^2-2x-5} \, dx = \frac{1}{2}\int \frac{2x-2}{x^2-2x-5} \, dx + 4\int \frac{dx}{x^2-2x-5} \] — Reason: Each piece is now a recognisable standard form, so we can evaluate them separately.
  4. Step 4: Evaluate the first integral: The first piece has the derivative of the denominator sitting in the numerator, so it matches the formula \( \int \frac{f'(x)}{f(x)} \, dx = \ln|f(x)| + C \). Therefore \[ \frac{1}{2}\int \frac{2x-2}{x^2-2x-5} \, dx = \frac{1}{2}\ln|x^2-2x-5| + C_1 \] — Reason: Recognising this pattern avoids substitution and gives the result directly.
  5. Step 5: Complete the square in the denominator for the second integral: Rewrite the denominator of the second integral: \[ x^2 - 2x - 5 = (x-1)^2 - 6 \] So the second integral becomes \[ 4\int \frac{dx}{(x-1)^2 - (\sqrt{6})^2} \] — Reason: Completing the square converts the quadratic into the standard form \( u^2 - a^2 \), which matches the known log formula.
  6. Step 6: Apply the standard formula to the second integral: Let \( u = x - 1 \) and \( a = \sqrt{6} \). Using \[ \int \frac{du}{u^2 - a^2} = \frac{1}{2a}\ln\left|\frac{u - a}{u + a}\right| + C \] the second integral evaluates as \[ 4 \cdot \frac{1}{2\sqrt{6}} \ln\left|\frac{(x-1) - \sqrt{6}}{(x-1) + \sqrt{6}}\right| = \frac{2}{\sqrt{6}}\ln\left|\frac{x - 1 - \sqrt{6}}{x - 1 + \sqrt{6}}\right| + C_2 \] — Reason: Substituting \( u = x - 1 \) shifts the variable so the denominator perfectly matches the standard \( u^2 - a^2 \) template.
  7. Step 7: Combine both results: Adding the two evaluated integrals together gives the final answer. The constants \( C_1 \) and \( C_2 \) merge into a single arbitrary constant \( C \). — Reason: The original integral is the sum of the two parts, so the final result is simply their sum.

Final Answer

\[ \int \frac{x+3}{x^2-2x-5} \, dx = \frac{1}{2}\ln|x^2-2x-5| + \frac{2}{\sqrt{6}} \ln\left| \frac{x-1-\sqrt{6}}{x-1+\sqrt{6}} \right| + C \]

Common Mistake

One common mistake: students forget to account for the leftover constant \( B = 4 \) after matching coefficients, either dropping the second integral entirely or computing \( B \) incorrectly by not substituting the value of \( A \) back into the constant comparison — always substitute \( A \) first before solving for \( B \).

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Decompose the numerator: Write \ x + 3 = A(2x - 2) + B. Comparing coefficients: \ A = \(\dfrac{1}{2}\), B = 4.
  2. Step 2: Split the integral: \[ \int \frac{x+3}{x^2-2x-5} \, dx = \frac{1}{2}\int \frac{2x-2}{x^2-2x-5} \, dx + 4\int \frac{dx}{x^2-2x-5} \]
  3. Step 3: Evaluate the first part: First integral gives \(\dfrac{1}{2}\ln|x^2-2x-5|\). For the second, complete the square: \(x^2 - 2x - 5 = (x-1)^2 - 6\), so \[4\int \frac{dx}{(x-1)^2-(\sqrt{6})^2} = 4 \cdot \frac{1}{2\sqrt{6}}\ln\left|\frac{x-1-\sqrt{6}}{x-1+\sqrt{6}}\right| = \frac{2}{\sqrt{6}}\ln\left|\frac{x-1-\sqrt{6}}{x-1+\sqrt{6}}\right|\]

Answer: \[ \int \frac{x+3}{x^2-2x-5} \, dx = \frac{1}{2}\ln|x^2-2x-5| + \frac{2}{\sqrt{6}} \ln\left| \frac{x-1-\sqrt{6}}{x-1+\sqrt{6}} \right| + C \]

➕ More Examples

More Examples

Example 1

Question: Integrate: \[\int \frac{2x + 5}{x^2 + 4x + 3} \, dx\]

Solution: We write the numerator \(2x + 5\) in terms of the derivative of the denominator. Note that the derivative of \(x^2 + 4x + 3\) is \(2x + 4\). So we write: \[2x + 5 = A(2x + 4) + B\] Comparing: \(2A = 2 \Rightarrow A = 1\), and \(4A + B = 5 \Rightarrow B = 1\). Thus: \[\int \frac{2x + 5}{x^2 + 4x + 3} \, dx = \int \frac{(2x + 4)}{x^2 + 4x + 3} \, dx + \int \frac{1}{x^2 + 4x + 3} \, dx\] The first integral is of the form \(\int \frac{f'(x)}{f(x)} \, dx\), giving \(\ln|x^2 + 4x + 3|\). For the second integral, we complete the square in the denominator: \[x^2 + 4x + 3 = (x+2)^2 - 1\] So: \[\int \frac{1}{(x+2)^2 - 1} \, dx = \frac{1}{2(1)} \ln\left|\frac{(x+2)-1}{(x+2)+1}\right| + C = \frac{1}{2} \ln\left|\frac{x+1}{x+3}\right| + C\] Combining both parts: \[I = \ln|x^2 + 4x + 3| + \frac{1}{2} \ln\left|\frac{x+1}{x+3}\right| + C\]

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

Example 2

Question: Integrate: \[\int \frac{x + 4}{x^2 - 6x + 13} \, dx\]

Solution: We write the numerator \(x + 4\) in terms of the derivative of the denominator. Note that the derivative of \(x^2 - 6x + 13\) is \(2x - 6\). We write: \[x + 4 = A(2x - 6) + B\] Comparing coefficients of \(x\): \(2A = 1 \Rightarrow A = \frac{1}{2}\). Comparing constants: \(-6A + B = 4 \Rightarrow -3 + B = 4 \Rightarrow B = 7\). Thus: \[\int \frac{x + 4}{x^2 - 6x + 13} \, dx = \frac{1}{2} \int \frac{2x - 6}{x^2 - 6x + 13} \, dx + 7 \int \frac{1}{x^2 - 6x + 13} \, dx\] The first integral gives \(\frac{1}{2} \ln|x^2 - 6x + 13|\). For the second integral, complete the square: \[x^2 - 6x + 13 = (x - 3)^2 + 4 = (x-3)^2 + 2^2\] So: \[7 \int \frac{1}{(x-3)^2 + 2^2} \, dx = 7 \cdot \frac{1}{2} \tan^{-1}\left(\frac{x-3}{2}\right) + C = \frac{7}{2} \tan^{-1}\left(\frac{x-3}{2}\right) + C\] Combining both parts: \[I = \frac{1}{2} \ln|x^2 - 6x + 13| + \frac{7}{2} \tan^{-1}\left(\frac{x-3}{2}\right) + C\]

Answer: \[\frac{1}{2}\ln|x^2 - 6x + 13| + \frac{7}{2}\tan^{-1}\left(\frac{x-3}{2}\right) + C\]

🎯 Try a Similar Question

Try a Similar Question

Question: Integrate the function \(\dfrac{x + 5}{x^2 - 4x - 3}\).

Solution

  1. Step 1: Write the numerator in terms of the derivative of the denominator: Let the denominator be \(D = x^2 - 4x - 3\). Its derivative is \(D' = 2x - 4\). We want to write the numerator \(x + 5\) as \(A(2x - 4) + B\) for some constants \(A\) and \(B\). Expanding: \(A(2x - 4) + B = 2Ax + (-4A + B)\). Comparing coefficients: coefficient of \(x\): \(2A = 1\), so \(A = \tfrac{1}{2}\). Constant term: \(-4A + B = 5\), so \(B = 5 + 4 \cdot \tfrac{1}{2} = 7\). Therefore \(x + 5 = \tfrac{1}{2}(2x - 4) + 7\).
  2. Step 2: Split the integral: Using the decomposition above: \[\int \frac{x+5}{x^2-4x-3} \, dx = \int \frac{\tfrac{1}{2}(2x-4)}{x^2-4x-3} \, dx + \int \frac{7}{x^2-4x-3} \, dx\] Call these \(I_1\) and \(I_2\) respectively.
  3. Step 3: Evaluate I₁: For \(I_1\): \[I_1 = \frac{1}{2} \int \frac{2x - 4}{x^2 - 4x - 3} \, dx\] Since \(2x - 4\) is exactly the derivative of \(x^2 - 4x - 3\), we get: \[I_1 = \frac{1}{2} \ln|x^2 - 4x - 3| + C_1\]
  4. Step 4: Complete the square in the denominator for I₂: For \(I_2 = 7 \displaystyle\int \frac{dx}{x^2 - 4x - 3}\), complete the square in the denominator: \[x^2 - 4x - 3 = (x-2)^2 - 4 - 3 = (x-2)^2 - 7\] So \(I_2 = 7 \displaystyle\int \frac{dx}{(x-2)^2 - (\sqrt{7})^2}\).
  5. Step 5: Apply the standard formula for I₂: Using the formula \(\displaystyle\int \frac{dx}{x^2 - a^2} = \frac{1}{2a}\ln\left|\frac{x-a}{x+a}\right| + C\) with \(x\) replaced by \((x-2)\) and \(a = \sqrt{7}\): \[I_2 = 7 \cdot \frac{1}{2\sqrt{7}} \ln\left|\frac{(x-2) - \sqrt{7}}{(x-2) + \sqrt{7}}\right| + C_2\] Simplifying \(\dfrac{7}{2\sqrt{7}} = \dfrac{\sqrt{7}}{2}\): \[I_2 = \frac{\sqrt{7}}{2} \ln\left|\frac{x - 2 - \sqrt{7}}{x - 2 + \sqrt{7}}\right| + C_2\]
  6. Step 6: Combine the results: Adding \(I_1\) and \(I_2\): \[\int \frac{x+5}{x^2-4x-3} \, dx = \frac{1}{2}\ln|x^2 - 4x - 3| + \frac{\sqrt{7}}{2}\ln\left|\frac{x - 2 - \sqrt{7}}{x - 2 + \sqrt{7}}\right| + C\]

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