The integral to evaluate is ∫(x−1)(x−2)xdx
The fraction can be decomposed into partial fractions:
(x−1)(x−2)x=x−1A+x−2B
Multiplying both sides by (x−1)(x−2):
x=A(x−2)+B(x−1)
For x=1:
1=A(1−2)+B(0)
1=−A
A=−1
For x=2:
2=A(0)+B(2−1)
2=B
B=2
The fraction becomes:
(x−1)(x−2)x=x−1−1+x−22
The integral can be written as:
∫(x−1)(x−2)xdx=∫x−1−1dx+∫x−22dx
Integrating each term:
∫(x−1)(x−2)xdx=−ln∣x−1∣+2ln∣x−2∣+C
=−ln∣x−1∣+ln∣(x−2)2∣+C
=ln∣(x−2)2∣−ln∣x−1∣+C
=lnx−1(x−2)2+C
Therefore, ∫(x−1)(x−2)xdx=lnx−1(x−2)2+C