Let $f(x)=(x-a)^ng(x)$ such that $g(a)\neq 0$; then I would like to compute the $n$-th derivative of $f$:
$$f^{(n)}(x)=\dfrac{d^n}{dx^{n}}\Bigl((x-a)^n\cdot g(x) \Bigr)$$
Can I have any suggestion?
Let $f(x)=(x-a)^ng(x)$ such that $g(a)\neq 0$; then I would like to compute the $n$-th derivative of $f$:
$$f^{(n)}(x)=\dfrac{d^n}{dx^{n}}\Bigl((x-a)^n\cdot g(x) \Bigr)$$
Can I have any suggestion?
You can use the generalized rule for derivative of a product of two functions:
$$(fg)^{(n)}=\sum_{k=0}^{n}{n\choose k}f^{(n-k)}g^{(k)}$$
For more functions is like the multinomial theorem. Also, when $n>r$ you will have:
$$ \frac{d^{r}}{dx^{r}}(x-a)^{n} = \frac{n!}{(n-r)!}(x-a)^{n-r}$$