Looking at the denominator x−x, factor out x:
x−x
=x⋅x−x
=x(x−1)
The integral becomes:
∫x(x−1)dx
Let u=x
Then x=u2 and dx=2udu
Substituting:
∫u(u−1)2udu
Canceling u from numerator and denominator:
∫u(u−1)2udu
=∫u−12du
Using the standard integral formula ∫u−11du=ln∣u−1∣+C:
∫u−12du
=2ln∣u−1∣+C
Substituting back u=x:
2ln∣x−1∣+C
Therefore, ∫x−xdx=2loge∣x−1∣+C