I am trying to find the general form for the $n$-th derivative of $f(x)=\log\left(\frac{1+x}{1-x}\right)$.
I have rewritten the original formula as: $\log(1+x)-\log(1-x)$ for my calculations. I have calculated the derivatives up to $5$:
$$\begin{align} f^{(1)}(x)&=\frac{1}{x+1} - \frac{1}{x-1}\\ f^{(2)}(x)&= \frac{1}{(x-1)^{2}} - \frac{1}{(x+1)^{2}}\\ f^{(3)}(x)&=\frac{2}{(x+1)^{3}} - \frac{2}{(x-1)^{3}}\\ f^{(4)}(x)&=\frac{6}{(x-1)^{4}} - \frac{6}{(x+1)^{4}}\\ f^{(5)}(x)&=\frac{24}{(x+1)^{5}} - \frac{24}{(x-1)^{5}}\\ \end{align}$$
I have noticed that the exponent in the denominator corresponds to $n$, and the positions of $x+1$ and $x-1$ switch each time. I have also noticed that in the 3rd and 4th derivative, the numerator times the exponent in the denominator equals the numerator for the next derivative.
I understand that the pattern is probably quite obvious, but I am just having a little issues piecing this all together to derive the general formula. Any help would be much appreicated, thank you.