Differentiation rules explained

This article is a summary of differentiation rules, that is, rules for computing the derivative of a function in calculus.

Elementary rules of differentiation

Unless otherwise stated, all functions are functions of real numbers (\mathbb) that return real values, although, more generally, the formulas below apply wherever they are well defined,[1] [2] including the case of complex numbers (\mathbb).[3]

Constant term rule

For any value of c, where c \in \mathbb, if f(x) is the constant function given by f(x) = c, then \frac = 0.[4]

Proof

Let c \in \mathbb and f(x) = c. By the definition of the derivative:\beginf'(x) &= \lim_\frac \\&= \lim_ \frac \\&= \lim_ \frac \\&= \lim_ 0 \\&= 0.\end

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.

Differentiation is linear

See main article: 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 = a\frac +b\frac.

Special cases include:

(af)' = af',

(f + g)' = f' + g',

(f - g)' = f' - g'.

Product rule

See main article: 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 = g \frac + f \frac.

Chain rule

See main article: 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:\frach(x) = \left.\fracf(z)\right|_\cdot \fracg(x),often abridged to:\frac = \frac \cdot \frac.

Focusing on the notion of maps, and the differential being a map \text, this formula is written in a more concise way as: [\text{D} (f\circ g)]_x = [\text{D} f]_ \cdot [\text{D}g]_x.

Inverse function rule

See main article: 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.

In Leibniz notation, this formula is written as: \frac = \frac.

Power laws, polynomials, quotients, and reciprocals

Polynomial or elementary power rule

See main article: Power rule. If f(x) = x^r, for any real number r \neq 0, then:f'(x) = rx^.

When r = 1, this formula becomes the special case that, if f(x) = x, then f'(x) = 1.

Combining the power rule with the sum and constant multiple rules permits the computation of the derivative of any polynomial.

Reciprocal rule

See main article: Reciprocal rule. The derivative of h(x)=\frac for any (nonvanishing) function f is: h'(x) = -\frac,wherever f is nonzero.

In Leibniz's notation, this formula is written: \frac = -\frac\frac.

The reciprocal rule can be derived either from the quotient rule or from the combination of power rule and chain rule.

Quotient rule

See main article: Quotient rule. If f and g are functions, then:\left(\frac\right)' = \frac,wherever g is nonzero.

This can be derived from the product rule and the reciprocal rule.

Generalized power rule

See main article: Power rule. The elementary power rule generalizes considerably. The most general power rule is the functional power rule: for any functions f and g,(f^g)' = \left(e^\right)' = f^g\left(f' + g'\ln f\right),\quadwherever both sides are well defined.

Special cases:

Derivatives of exponential and logarithmic functions

\frac\left(c^\right) =,\qquad c > 0.The equation above is true for all

c

, but the derivative for

c<0

yields a complex number.

\frac\left(e^\right) = ae^.

\frac\left(\log_c x\right) =, \qquad c > 1.The equation above is also true for all c but yields a complex number if c<0.

\frac\left(\ln x\right) =,\qquad x > 0.

\frac\left(\ln |x|\right) =,\qquad x \neq 0.

\frac\left(W(x)\right) =,\qquad x > -,where W(x) is the Lambert W function.

\frac\left(x^x \right) = x^x(1+\ln x).

\frac\left(f(x)^ \right) = g(x)f(x)^ \frac + f(x)^\ln\frac, \qquad \textf(x) > 0 \text \frac \text \frac \text

\frac\left(f_(x)^ \right) = \left [\sum\limits_{k=1}^{n} \frac{\partial }{\partial x_{k}} \left(f_{1}(x_1)^{f_{2}(x_2)^{\left (... \right)^{f_{n}(x_n)}}} \right) \right ] \biggr\vert_,\qquad \text f_(x) > 0 \text\frac \text

Logarithmic derivatives

The logarithmic derivative is another way of stating the rule for differentiating the logarithm of a function (using the chain rule): (\ln f)'= \frac,wherever f is positive.

Logarithmic differentiation is a technique which uses logarithms and its differentiation rules to simplify certain expressions before actually applying the derivative.

Logarithms can be used to remove exponents, convert products into sums, and convert division into subtraction—each of which may lead to a simplified expression for taking derivatives.

Derivatives of trigonometric functions

See main article: Differentiation of trigonometric functions.

width=50%
d
dx

\sinx=\cosx

width=50%
d
dx

\arcsinx=

1
\sqrt{1-x2
}
d
dx

\cosx=-\sinx

d
dx

\arccosx=-

1
\sqrt{1-x2
}
d
dx

\tanx=\sec2x=

1
\cos2x

=1+\tan2x

d
dx

\arctanx=

1
1+x2

d
dx

\cscx=-\csc{x}\cot{x}

d
dx

\operatorname{arccsc}x=-

1
|x|\sqrt{x2-1
}
d
dx

\secx=\sec{x}\tan{x}

d
dx

\operatorname{arcsec}x=

1
|x|\sqrt{x2-1
}
d
dx

\cotx=-\csc2x=-

1
\sin2x

=-1-\cot2x

d
dx

\operatorname{arccot}x=-{1\over1+x2}

The derivatives in the table above are for when the range of the inverse secant is [0,\pi] and when the range of the inverse cosecant is \left[-\frac{\pi}{2},\frac{\pi}{2}\right].

It is common to additionally define an inverse tangent function with two arguments, \arctan(y,x). Its value lies in the range [-\pi,\pi] and reflects the quadrant of the point (x,y). For the first and fourth quadrant (i.e.,

x>0

), one has \arctan(y, x>0) = \arctan(\frac). Its partial derivatives are: \frac = \frac \qquad\text\qquad \frac = \frac.

Derivatives of hyperbolic functions

width=50%
d
dx

\sinhx=\coshx

d
dx

\operatorname{arsinh}x=

1
\sqrt{1+x2
}
d
dx

\coshx=\sinhx

d
dx

\operatorname{arcosh}x={

1
\sqrt{x2-1
}}
d
dx

\tanhx={\operatorname{sech}2x}=1-\tanh2x

d
dx

\operatorname{artanh}x=

1
1-x2
d
dx

\operatorname{csch}x=-\operatorname{csch}{x}\coth{x}

d
dx

\operatorname{arcsch}x=-

1
|x|\sqrt{1+x2
}
d
dx

\operatorname{sech}x=-\operatorname{sech}{x}\tanh{x}

d
dx

\operatorname{arsech}x=-

1
x\sqrt{1-x2
}
d
dx

\cothx=-\operatorname{csch}2x=1-\coth2x

d
dx

\operatorname{arcoth}x=

1
1-x2

Derivatives of special functions

Gamma function

See main article: Gamma function. \Gamma(x) = \int_0^\infty t^ e^\, dt\begin\Gamma'(x) & = \int_0^\infty t^ e^ \ln t\,dt \\& = \Gamma(x) \left(\sum_^\infty \left(\ln\left(1 + \dfrac\right) - \dfrac\right) - \dfrac\right) \\& = \Gamma(x) \psi(x),\endwith \psi(x) being the digamma function, expressed by the parenthesized expression to the right of \Gamma(x) in the line above.

Riemann zeta function

See main article: Riemann zeta function. \zeta(x) = \sum_^\infty \frac\begin\zeta'(x) & = -\sum_^\infty \frac=-\frac - \frac - \frac - \cdots \\& = -\sum_ \frac \prod_ \frac\end

Derivatives of integrals

Suppose that it is required to differentiate with respect to x the function:F(x)=\int_^f(x,t)\,dt,

where the functions f(x,t) and \frac\,f(x,t) are both continuous in both t and x in some region of the (t,x) plane, including a(x)\leq t\leq b(x), where x_0\leq x\leq x_1, and the functions a(x) and b(x) are both continuous and both have continuous derivatives for x_0\leq x\leq x_1. Then, for \,x_0\leq x\leq x_1: F'(x) = f(x,b(x))\,b'(x) - f(x,a(x))\,a'(x) + \int_^ \frac\, f(x,t)\; dt\,.

This formula is the general form of the Leibniz integral rule and can be derived using the fundamental theorem of calculus.

Derivatives to nth order

Some rules exist for computing the nth derivative of functions, where n is a positive integer, including:

Faà di Bruno's formula

See main article: Faà di Bruno's formula. If f and g are n-times differentiable, then: \frac [f(g(x))]= n! \sum_ f^(g(x)) \prod_^n \frac \left(g^(x) \right)^,where r = \sum_^ k_m and the set \ consists of all non-negative integer solutions of the Diophantine equation \sum_^ m k_m = n.

General Leibniz rule

See main article: General Leibniz rule. If f and g are n-times differentiable, then: \frac[f(x)g(x)] = \sum_^ \binom \frac f(x) \frac g(x).

Sources and further reading

These rules are given in many books, both on elementary and advanced calculus, in pure and applied mathematics. Those in this article (in addition to the above references) can be found in:

External links

Notes and References

  1. Calculus (5th edition), F. Ayres, E. Mendelson, Schaum's Outline Series, 2009, .
  2. Advanced Calculus (3rd edition), R. Wrede, M.R. Spiegel, Schaum's Outline Series, 2010, .
  3. Complex Variables, M.R. Spiegel, S. Lipschutz, J.J. Schiller, D. Spellman, Schaum's Outlines Series, McGraw Hill (USA), 2009,
  4. Web site: Differentiation Rules . University of Waterloo – CEMC Open Courseware . 3 May 2022.