#math/calculus
For differentiable functions $f,g$ and a constant $c$,
$
\begin{aligned}
\frac{d}{dx}c&=0,
&\frac{d}{dx}x^{n}&=nx^{n-1}\quad(n=1,2,\ldots),\\
\frac{d}{dx}[cf(x)]&=cf'(x),
&\frac{d}{dx}[f(x)+g(x)]&=f'(x)+g'(x).
\end{aligned}
$
The sum rule extends to differences and any finite sum. Therefore, if
$
p(x)=c_{n}x^{n}+\cdots+c_{2}x^{2}+c_{1}x+c_{0},
$
then $p'(x)=nc_{n}x^{n-1}+\cdots+2c_{2}x+c_{1}$.
> [!Practice]
> Marsden & Weinstein, p. 81, exercises 59–60.