A question about my solution of this integral $\int_{0}^{1} \frac{a^x-a}{a^x+a} dx$ So i had to solve this integral:
$$\int_{0}^{1} \frac{a^x-a}{a^x+a} dx$$
$a\in\mathbb{R^+}$
So first i used substitution:
$t=a^x+a \implies a^x=t-a $ 
$ dx= \frac{dt}{\ln(a)(t-a)}$
Then with partial fractions i got this:
$$\frac{1}{\ln a} \left(2 \int_{1+a}^{2a}\frac{1}{t}dt-\int_{1+a}^{2a}\frac{1}{t-a}dt \right)$$
And with that i just used the common integral and have  gotten this solution afterwards:
$$\frac{\ln(2a(1+a)^2)}{\ln a}$$
So i wonder if i did it right, at most the problem is with substitution but i think i did change bounds correctly, but any insight would be helpful.
Thank you in advance.

using a slightly different route:
$$
\frac{a^x-a}{a^x+a} = \frac{a^{x-1}-1}{a^{x-1}+1} =\frac{e^{(x-1)\log a} -1}{e^{(x-1)\log a} +1}
$$
set $u=(x-1)\log a$, then
$$
I=\int_0^1 \frac{a^x-a}{a^x+a} dx = \frac1{\log a}\int_{-\log a}^0 \frac{e^u-1}{e^u+1}du = \frac1{\log a}\int_{-\log a}^0 \tanh \frac{u}{2} \quad du \\
$$
this gives
$$
I = \frac2{\log a} \bigg[ \log \cosh \frac{u}{2}\bigg]_{-\log a}^0 \\
=  \frac1{\log a} \bigg[ \log \cosh^2 \frac{u}{2}\bigg]_{-\log a}^0 \\
=  \frac1{\log a} \bigg[ \log \frac{1+\cosh u}2 \bigg]_{-\log a}^0 \\
= \frac{\ln\left(\frac{4a}{(1+a)^2}\right)}{\ln a}\\
$$
