Unless otherwise stated, all functions are functions of
real numbers (\mathbb{R}) that return real values, although, more generally, the formulas below apply wherever they are
well defined, including the case of
complex numbers (\mathbb{C}).
Constant term rule For any value of c, where c \in \mathbb{R}, if f(x) is the constant function given by f(x) = c, then \frac{df}{dx} = 0.
Proof Let c \in \mathbb{R} and f(x) = c. By the definition of the derivative: \begin{align} f'(x) &= \lim_{h \to 0}\frac{f(x + h) - f(x)}{h} \\ &= \lim_{h \to 0} \frac{(c) - (c)}{h} \\ &= \lim_{h \to 0} \frac{0}{h} \\ &= \lim_{h \to 0} 0 \\ &= 0. \end{align} This computation shows that the derivative of any constant function is 0.
Intuitive (geometric) explanation The
derivative of the function at a point is the slope of the line
tangent to the curve at the point. The
slope of the constant function is 0, because the
tangent line to the constant function is horizontal and its angle is 0. In other words, the value of the constant function, y, will not change as the value of x increases or decreases. is the slope of a
line that is
tangent to the
curve at that point. Note: the derivative at point A is
positive where green and dash–dot,
negative where red and dashed, and
0 where black and solid.
Linearity of differentiation For any functions f and g and any real numbers a and b, the derivative of the function h(x) = af(x) + bg(x) with respect to x is h'(x) = a f'(x) + b g'(x). In
Leibniz's notation, this formula is written as: \frac{d(af+bg)}{dx} = a\frac{df}{dx} +b\frac{dg}{dx}. Special cases include: • The constant factor rule: (af)' = af', • The sum rule: (f + g)' = f' + g', • The difference rule: (f - g)' = f' - g'.
Product rule For the functions f and g, the derivative of the function h(x) = f(x) g(x) with respect to x is: h'(x) = (fg)'(x) = f'(x) g(x) + f(x) g'(x). In Leibniz's notation, this formula is written: \frac{d(fg)}{dx} = g \frac{df}{dx} + f \frac{dg}{dx}.
Chain rule The derivative of the function h(x) = f(g(x)) is: h'(x) = f'(g(x))\cdot g'(x). In Leibniz's notation, this formula is written as: \frac{d}{dx}h(x) = \left.\frac{d}{dz}f(z)\right|_{z=g(x)}\cdot \frac{d}{dx}g(x), often abridged to: \frac{dh(x)}{dx} = \frac{df(g(x))}{dg(x)} \cdot \frac{dg(x)}{dx}. Focusing on the notion of maps, and the differential being a map \text{D}, this formula is written in a more concise way as: [\text{D} (f\circ g)]_x = [\text{D} f]_{g(x)} \cdot [\text{D}g]_x.
Inverse function rule If the function f has an
inverse function g, meaning that g(f(x)) = x and f(g(y)) = y, then: g' = \frac{1}{f'\circ g}. In Leibniz notation, this formula is written as: \frac{dx}{dy} = \frac{1}{\frac{dy}{dx}}. ==Power laws, polynomials, quotients, and reciprocals==