Integral of \( \displaystyle \frac{x^{2} + 1}{x \left(x - 1\right)} \)
Problem 4.171 · medium
Find \( \displaystyle \int \frac{x^{2} + 1}{x \left(x - 1\right)} \, dx \). (Omit the constant of integration.)
- \[ \int \frac{x^{2} + 1}{x \left(x - 1\right)}\, dx \]integral algebraStart with the integral of the given function. Rewrite the numerator to facilitate long division.✓ Proved
- \[ = \int \frac{x \left(x - 1\right) + x + 1}{x \left(x - 1\right)}\, dx \]algebraGroup terms to isolate the polynomial part.✓ Proved
- \[ = \int \left(1 + \frac{x + 1}{x \left(x - 1\right)}\right)\, dx \]long-divisionPerform long division on the rational part.✓ Proved
- \[ = \int 1\, dx + \int \frac{x + 1}{x \left(x - 1\right)}\, dx \]linearity algebraSplit the integral into two parts. Rewrite the numerator of the second term.✓ Proved
- \[ = \int 1\, dx + \int \left(\frac{1}{x} + \frac{2}{x \left(x - 1\right)}\right)\, dx \]algebraDistribute the denominator.✓ Proved
- \[ = \int 1\, dx + \int \frac{1}{x}\, dx + \int \frac{2}{x \left(x - 1\right)}\, dx \]linearity algebra simplifySplit the integral into three parts. Rewrite the denominator for partial fraction decomposition. Simplify the expression back to a standard form.✓ Proved
- \[ = \int 1\, dx + \int \frac{1}{x}\, dx + \int \left(\frac{2}{x - 1} - \frac{2}{x}\right)\, dx \]partial-fractionsApply partial fraction decomposition to the last term.✓ Proved
- \[ = \int 1\, dx + \int \frac{1}{x}\, dx - \int \frac{2}{x}\, dx + \int \frac{2}{x - 1}\, dx \]linearityDistribute the integral across the subtraction.✓ Proved
- \[ = x - \ln{\left(x \right)} + 2 \ln{\left(x - 1 \right)} \]antiderivative simplifyIntegrate each term separately. Combine the logarithmic terms.✓ Proved
Answer \( x - \ln{\left(x \right)} + 2 \ln{\left(x - 1 \right)} + C \)
✓ Nihil obstat Every line of this solution was proved by the computer algebra system SymPy. The answer was also checked a second way, without looking at the solution. Reviewers found nothing wrong with the explanation.
The full receipt
| Line | Status | Checked by | Detail |
|---|---|---|---|
| 1 | ✓ Proved | sympy 1.14.0 | line 1 is the problem as stated |
| 2 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 3 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 4 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 5 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 6 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 7 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 8 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 9 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 10 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 11 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 12 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 |
| 13 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 undefined where x = 0 undefined where x - 1 = 0 log is undefined for non-positive arguments |
| 14 | ✓ Proved | sympy 1.14.0 | simplify(a - b) reduced to 0 log is undefined for non-positive arguments |
| answer | ✓ Proved | sympy 1.14.0 | final line against the stated answer: simplify(a - b) reduced to 0 log is undefined for non-positive arguments |
| answer, a second way | ✓ Proved | sympy 1.14.0 | SymPy differentiated the stated antiderivative back to the integrand |
Reviewers
gpt-oss:20b: passqwen3.6:27b-mlx: pass — The solution correctly applies algebraic manipulation, long division, and partial fraction decomposition to find the antiderivative. Each step changes only one aspect of the expression and uses valid labels from the fixed vocabulary.
Every verdict on record (4)
qwen3.6:27b-mlx: pass 2026-09-29 — The solution correctly applies algebraic manipulation, long division, and partial fraction decomposition to find the antiderivative. Each step changes only one aspect of the expression and uses valid labels from the fixed vocabulary.gpt-oss:20b: pass 2026-09-29qwen3.6:27b-mlx: fail (style) 2026-09-29 — Steps 9 and 10 are redundant and circular; Step 9 rewrites the denominator in a more complex form and Step 10 immediately reverts it, violating the principle that each step should make progress. Additionally, Step 7 claims to 'distribute the denominator' to split a fraction, but the algebra shown (splitting (x+1)/(x(x-1)) into 1/x + 2/(x(x-1))) is actually a partial fraction decomposition step, not simple distribution, making the label 'algebra' misleading for the operation performed.gpt-oss:20b: pass 2026-09-29
Proved: SymPy reduced the difference between the two sides to zero. Checked independently: a separate
method, named above, confirmed it. Checked numerically: the two sides agree at every sampled point, which is evidence,
not proof. Reviewed: a model or a person read it; that is all a sentence can have. Solution by
gemma4:26b, checked 2026-09-29 with SymPy 1.14.0.