Proposition (Leibniz's rule)
Given $f(x) = u(x)v(x)$ where $u,v$ are $n$-times differentiable, $$ f^{(n)} = \sum_{k=0}^n \begin{pmatrix}n\\r\end{pmatrix}u^{(n-r)}v^{(r)}. $$
Given $f(x) = u(x)v(x)$ where $u,v$ are $n$-times differentiable, $$ f^{(n)} = \sum_{k=0}^n \begin{pmatrix}n\\r\end{pmatrix}u^{(n-r)}v^{(r)}. $$