I am interested in finding a solution to the integral $$I_n=\int_0^1\frac{dx}{\sum_{k=0}^nx^k}$$ Since the denominator is a geometric series with $a=1$ and $r=x$ and it is within the radius of convergence, we should be able to say $$\sum_{k=0}^nx^k=\frac{1-x^{n+1}}{1-x}=\frac{x^{n+1}-1}{x-1}$$ and $$I_n=\int_0^1\frac{x-1}{x^{n+1}-1}dx$$ It makes sense to me that, for all values of $n$, $I_n$ is convergent since the bottom of the function is always above zero and the integral exists for $n\to\infty$ however I cannot seem to find a nice closed form for this.
One thought I did have was using: $$\sum\ln(x_i)=\ln\left(\prod x_i\right)$$ but I cannot seem to make it work. Does anyone have any hints for this type of problem as I would like to try and complete it myself. Thanks :)
Computing the Integral $$ \begin{align} &\int_0^1\frac{1-x}{1-x^{n+1}}\,\mathrm{d}x\\ &=\int_0^1\sum_{k=0}^\infty\left[x^{(n+1)k}-x^{(n+1)k+1}\right]\tag1\\ &=\sum_{k=0}^\infty\left(\frac1{(n+1)k+1}-\frac1{(n+1)k+2}\right)\tag2\\ &=\frac12+\sum_{k=1}^\infty\left(\frac1{(n+1)k+1}-\frac1{(n+1)k+2}\right)\tag3\\ &=\frac12+\frac1{n+1}\sum_{k=1}^\infty{\scriptsize\left(\frac1k-\frac1{k+\frac2{n+1}}\right)}-\frac1{n+1}\sum_{k=1}^\infty{\scriptsize\left(\frac1k-\frac1{k+\frac1{n+1}}\right)}\tag4\\[3pt] &=\frac12+\frac1{n+1}\left(H\!\left(\frac2{n+1}\right)-H\!\left(\frac1{n+1}\right)\right)\tag5\\[3pt] &=\frac1{n+1}\sum_{k=1}^n\log\left(2\sin\left(\frac{\pi k}{n+1}\right)\right)\left(\cos\left(\frac{4\pi k}{n+1}\right)-\cos\left(\frac{2\pi k}{n+1}\right)\right)\\ &+\frac1{n+1}\sum_{k=1}^n\left(\frac{\pi}2-\frac{\pi k}{n+1}\right)\left(\sin\left(\frac{2\pi k}{n+1}\right)-\sin\left(\frac{4\pi k}{n+1}\right)\right)\tag6 \end{align} $$ Explanation:
$(1)$: expand the Taylor series
$(2)$: integrate
$(3)$: pull the $k=0$ term out front
$(4)$: rearrange into two series
$(5)$: Write as extended Harmonic numbers
$(6)$: apply $(7)$ from this answer
Although $(5)$ is always valid, since $(7)$ from this answer requires $p\le q$, $(6)$ is only valid for $n\gt0$. For $n=0$, the integral is $1$.
Mathematica Implementation
Here is a Mathematica implementation of $(6)$: