The integrand blows up near x = 1 {\displaystyle x=1} , so this is an improper integral:
To find the indefinite integral, use the u-substitution u = 1 − x {\displaystyle u=1-x} , d u = − d x {\displaystyle \mathrm {d} u=-\mathrm {d} x} :
Thus,
The integral diverges.