I'm supposed to prove the following: $$\sum^{n}_{k=1}\frac{(-1)^{k}}{k} = -\log(2)+(-1)^n\int_0^1\frac{t^n}{t+1}\ \mathrm dt$$
Defining $$U(n)=\int_0^1\frac{t^n}{t+1}\ \mathrm dt$$ I found that $$U(n)+U(n-1)=\frac1n$$ We are supposed to use the fact that $$\sum^{n}_{k=1}(-1)^k t^{k-1}=\frac{(-1)^n t^n-1}{t+1}$$