While working through Stewart's Calculus Late Transcendental 7th edition, I came across this problem:
Find a formula for $f^{(n)} (x)$ if $f(x) = \ln(x-1)$.
Obviously, I calculated the first few derivatives to see if I could spot a pattern:
$$f^{1}(x) = \frac1 {x-1}$$ $$f^{2}(x) = \frac{-1} {(x-1)^2}$$ $$f^{3}(x) = \frac{2}{(x-1)^3}$$ $$f^{4}(x) = \frac{-6}{(x-1)^4}$$ $$f^{5}(x) = \frac{24}{(x-1)^5}$$
I see the pattern of how the numerator is getting multiplied by $-1$ from the first to second derivative, $-2$ from $f^{2}(x)$ to $f^{3}(x)$, then $-3$ from $f^{3}(x)$ to $f^{4}(x)$, etc while the denominator simply increases by one power for each $nth$ derivative.
Despite seeing a pattern, I am at a loss of expressing this as a formula. The answer given by Stewart is:
$$f^{n}(x) = \frac{(-1)^{n-1} (n-1)!} {(x-1)^{n}}$$
Any advice on how to come up with a general formula when you see a pattern, but the formula isn't quite so obvious as with the one above?