Differentiation Rules

These are the standard rules for computing derivatives of functions f,g:RRf, g : \mathbb{R} \to \mathbb{R}. They are the basic toolkit used whenever partial derivatives are computed component-by-component.

Core Rules

Let ff and gg be differentiable functions and cRc \in \mathbb{R} a constant. The fundamental differentiation rules are:

ddx[c]=0ddx[xn]=nxn1\frac{d}{dx}[c] = 0 \qquad \frac{d}{dx}[x^n] = n x^{n-1}

ddx[cf]=cfddx[f+g]=f+g\frac{d}{dx}[c \cdot f] = c \cdot f' \qquad \frac{d}{dx}[f + g] = f' + g'

ddx[fg]=fg+fgddx ⁣[fg]=fgfgg2\frac{d}{dx}[f \cdot g] = f' g + f g' \qquad \frac{d}{dx}\!\left[\frac{f}{g}\right] = \frac{f' g - f g'}{g^2}

ddx[f(g(x))]=f(g(x))g(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

The last rule is the chain rule — it is the most important rule for computing partial derivatives of composite functions.

Common Derivatives

f(x)f(x)f(x)f'(x)
cc00
xnx^nnxn1n x^{n-1}
exe^xexe^x
eaxe^{ax}aeaxa e^{ax}
lnx\ln x1x\dfrac{1}{x}
sinx\sin xcosx\cos x
cosx\cos xsinx-\sin x
tanx\tan x1cos2x\dfrac{1}{\cos^2 x}

Chain Rule in Detail

The chain rule handles composite functions. If h(x)=f(g(x))h(x) = f(g(x)), then:

h(x)=f(g(x))g(x)h'(x) = f'(g(x)) \cdot g'(x)

Let h(x)=exsinxh(x) = e^{-x} \sin x. Using the product rule:

h(x)=(ex)sinx+ex(sinx)=exsinx+excosx=ex(cosxsinx)h'(x) = (e^{-x})' \sin x + e^{-x} (\sin x)' = -e^{-x} \sin x + e^{-x} \cos x = e^{-x}(\cos x - \sin x)

Let h(x)=sin(x2)h(x) = \sin(x^2). Using the chain rule with f(u)=sinuf(u) = \sin u and g(x)=x2g(x) = x^2:

h(x)=cos(x2)2x=2xcos(x2)h'(x) = \cos(x^2) \cdot 2x = 2x \cos(x^2)

Partial Derivatives via These Rules

When computing partial derivatives, all the rules above apply — simply treat every variable other than the one being differentiated as a constant. For example, with f(x,y,z)=ezsinx+y2f(x, y, z) = e^{-z} \sin x + y^2:

  • fx\frac{\partial f}{\partial x}: treat y,zy, z as constants → ezcosxe^{-z} \cos x
  • fy\frac{\partial f}{\partial y}: treat x,zx, z as constants → 2y2y
  • fz\frac{\partial f}{\partial z}: treat x,yx, y as constants, apply chain rule on eze^{-z}ezsinx-e^{-z} \sin x