Step 1: Understanding the Concept.
The integrand is a proper rational function whose denominator has a linear factor \((x-1)\) and an irreducible quadratic factor \((x^2+1)\). We split it into partial fractions of the matching form and integrate term by term.
Step 2: Key Formula or Approach.
\[ \frac{x}{(x^2+1)(x-1)} = \frac{A}{x-1} + \frac{Bx+C}{x^2+1} \]
Step 3: Find A, B and C.
Multiply both sides by \((x^2+1)(x-1)\):
\[ x = A(x^2+1) + (Bx+C)(x-1) \]
Put \(x=1\): \(1 = 2A\), so \(A = \dfrac12\).
Expand the right side: \(x = (A+B)x^2 + (C-B)x + (A-C)\).
Compare the coefficient of \(x^2\): \(A + B = 0\), so \(B = -\dfrac12\).
Compare the constant term: \(A - C = 0\), so \(C = \dfrac12\).
Check the coefficient of \(x\): \(C - B = \dfrac12 + \dfrac12 = 1\), which matches.
\[ \frac{x}{(x^2+1)(x-1)} = \frac{1}{2(x-1)} + \frac{-x+1}{2(x^2+1)} \]
Step 4: Integrate each part.
\[ \int \frac{x\,dx}{(x^2+1)(x-1)} = \frac12\int\frac{dx}{x-1} - \frac12\int\frac{x\,dx}{x^2+1} + \frac12\int\frac{dx}{x^2+1} \]
For the middle term, put \(x^2+1=t\), so \(x\,dx = \dfrac{dt}{2}\) and \(\displaystyle\int\frac{x\,dx}{x^2+1} = \frac12\log(x^2+1)\).
\[ = \frac12\log|x-1| - \frac14\log(x^2+1) + \frac12\tan^{-1}x + C \]
Final Answer:
\[ \boxed{\frac12\log|x-1| - \frac14\log(x^2+1) + \frac12\tan^{-1}x + C} \]