I was working on a series, and I came up with integral, an indefinte form
$$\int \frac{(1-x)^{n+1}}{x} dx$$
I was wondering about how to solve this indefinte integral analytically. I solved it on Mathematica and got the result

so, I was thinking how to approach the problem and solve it.After seeing the answer,I got no clue about how to approach it.
Also, Mathematica always doesn't give the neat answer. Can anyone approach the problem step wise and give a more simple answer that a undergraduate can work with.
My approach is similar to EtienneBfx's approach.
Let $u = (1 - x) \Rightarrow -du = dx.$
Also, note that
$[E_1] ~(u - 1) \times (u^n + u^{(n-1)} + \cdots + 1) = u^{(n+1)} - 1.$
Then, the (indefinite) integral becomes
$\int ~\frac{u^{(n+1)}}{1 - u} \times (-du) ~=~ \int \frac{u^{(n+1)}}{u - 1} \times du$
$= ~\int \frac{u^{(n+1)} - 1}{u - 1} \times du ~+~ \int \frac{1}{u - 1} \times du.$
In the line immediately above, the first term is easily resolved into a closed form expression via $E_1.$