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.
FullSimplify[expr, Element[n, Integers] && n > 0]
provides-Beta[1 - x, 2 + n, 0]
$\endgroup$