Question:medium

If $\int \frac{(x^4+1)}{x(x^2+1)^2} \, dx = A \log |x| + \frac{B}{1+x^2} + c$, then $A - B$ is ______.

Show Hint

Algebraic manipulation is often superior to partial fractions! If you see $x^4+1$ and $(x^2+1)^2$, remember the expansion $(x^2+1)^2 = x^4+2x^2+1$, which allows you to rewrite $x^4+1$ as $(x^2+1)^2 - 2x^2$. This splits the integral effortlessly.
Updated On: Jun 19, 2026
  • 0
  • 1
  • 2
  • -1
Show Solution

The Correct Option is A

Solution and Explanation

Step 1: Understanding the Concept:
We use partial fractions to decompose the integrand. Let $x^2 = t$ (temporarily for the fraction part).

Step 2: Formula Application:

$\frac{x^4+1}{x(x^2+1)^2} = \frac{(x^2+1)^2 - 2x^2}{x(x^2+1)^2} = \frac{1}{x} - \frac{2x}{(x^2+1)^2}$.

Step 3: Explanation:

Integrating both terms: $\int \frac{1}{x} \, dx - \int \frac{2x}{(x^2+1)^2} \, dx$. Let $u = x^2+1 \implies du = 2x \, dx$. $I = \log |x| - \int u^{-2} \, du = \log |x| - \frac{u^{-1}}{-1} = \log |x| + \frac{1}{x^2+1} + c$. Comparing with given form: $A = 1, B = 1$. $A - B = 1 - (- \text{careful with sign})$. Actually, $B$ is the coefficient of $1/(1+x^2)$, so $B=1$. $A - B = 1 - 1 = 0$. (Correction: If $B$ corresponds to the negative sign in substitution, re-evaluating the $A-B$ target vs options). With $A=1, B=1$, $A-B=0$.

Step 4: Final Answer:

$A - B = 0$.
Was this answer helpful?
0