# Differentiation rules

This 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 (R) that return real values; although more generally, the formulae below apply wherever they are well defined[1][2] — including the case of complex numbers (C).[3]

### Differentiation is linear

For any functions ${\displaystyle f}$ and ${\displaystyle g}$ and any real numbers ${\displaystyle a}$ and ${\displaystyle b}$, the derivative of the function ${\displaystyle h(x)=af(x)+bg(x)}$ with respect to ${\displaystyle x}$ is

${\displaystyle h'(x)=af'(x)+bg'(x).}$

In Leibniz's notation this is written as:

${\displaystyle {\frac }=a{\frac }+b{\frac }.}$

Special cases include:

• The constant factor rule
${\displaystyle (af)'=af'}$
• The sum rule
${\displaystyle (f+g)'=f'+g'}$
• The subtraction rule
${\displaystyle (f-g)'=f'-g'.}$

### The product rule

For the functions f and g, the derivative of the function h(x) = f(x) g(x) with respect to x is

${\displaystyle h'(x)=(fg)'(x)=f'(x)g(x)+f(x)g'(x).}$

In Leibniz's notation this is written

${\displaystyle {\frac }={\frac }g+f{\frac }.}$

### The chain rule

The derivative of the function ${\displaystyle h(x)=f(g(x))}$ is

${\displaystyle h'(x)=f'(g(x))\cdot g'(x).}$

In Leibniz's notation, this is written as:

${\displaystyle {\frac }h(x)={\frac }f(z)|_\cdot {\frac }g(x),}$

often abridged to

${\displaystyle {\frac }={\frac }\cdot {\frac }.}$

Focusing on the notion of maps, and the differential being a map ${\displaystyle {\text}}$, this is written in a more concise way as:

${\displaystyle [{\text}(h\circ g)]_=[{\text}h]_\cdot [{\text}g]_\,.}$

### The inverse function rule

If the function f has an inverse function g, meaning that ${\displaystyle g(f(x))=x}$and ${\displaystyle f(g(y))=y}$, then

${\displaystyle g'={\frac }.}$

In Leibniz notation, this is written as

${\displaystyle {\frac }={\frac {\frac }}.}$

## Power laws, polynomials, quotients, and reciprocals

### The polynomial or elementary power rule

If ${\displaystyle f(x)=x^}$, for any real number ${\displaystyle r\neq 0,}$ then

${\displaystyle f'(x)=rx^.}$

When ${\displaystyle r=1,}$ this becomes the special case that if ${\displaystyle f(x)=x,}$ then ${\displaystyle f'(x)=1.}$

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

### The reciprocal rule

The derivative of ${\displaystyle h(x)={\frac }}$for any (nonvanishing) function f is:

${\displaystyle h'(x)=-{\frac {(f(x))^}}}$ wherever f is non-zero.

In Leibniz's notation, this is written

${\displaystyle {\frac }=-{\frac }}{\frac }.}$

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

### The quotient rule

If f and g are functions, then:

${\displaystyle \left({\frac }\right)'={\frac }}\quad }$ wherever g is nonzero.

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

### Generalized power rule

The elementary power rule generalizes considerably. The most general power rule is the functional power rule: for any functions f and g,

${\displaystyle (f^)'=\left(e^\right)'=f^\left(f'+g'\ln f\right),\quad }$

wherever both sides are well defined.[4]

Special cases

• If ${\textstyle f(x)=x^\!}$, then ${\textstyle f'(x)=ax^}$when a is any non-zero real number and x is positive.
• The reciprocal rule may be derived as the special case where ${\textstyle g(x)=-1\!}$.

## Derivatives of exponential and logarithmic functions

${\displaystyle {\frac }\left(c^\right)=\ln c},\qquad c>0}$

the equation above is true for all c, but the derivative for ${\textstyle c<0}$ yields a complex number.

${\displaystyle {\frac }\left(e^\right)=ae^}$
${\displaystyle {\frac }\left(\log _x\right)=,\qquad c>0,c\neq 1}$

the equation above is also true for all c, but yields a complex number if ${\textstyle c<0\!}$.

${\displaystyle {\frac }\left(\ln x\right)=,\qquad x>0.}$
${\displaystyle {\frac }\left(\ln |x|\right)=.}$
${\displaystyle {\frac }\left(x^\right)=x^(1+\ln x).}$
${\displaystyle {\frac }\left(f(x)^\right)=g(x)f(x)^{\frac }+f(x)^\ln {(f(x))}{\frac },\qquad {\text}f(x)>0,{\text{ and if }}{\frac }{\text{ and }}{\frac }{\text{ exist.}}}$
${\displaystyle {\frac }\left(f_(x)^(x)^{\left(...\right)^(x)}}}\right)=\left[\sum \limits _^{\frac {\partial }{\partial x_}}\left(f_(x_)^(x_)^{\left(...\right)^(x_)}}}\right)\right]{\biggr \vert }_=x_=...=x_=x},{\text{ if }}f_(x)>0{\text{ and }}}$ ${\displaystyle {\frac }}{\text{ exists. }}}$

### Logarithmic derivatives

The logarithmic derivative is another way of stating the rule for differentiating the logarithm of a function (using the chain rule):

${\displaystyle (\ln f)'={\frac }\quad }$ 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

 ${\displaystyle (\sin x)'=\cos x}$ ${\displaystyle (\arcsin x)'=}}}}$ ${\displaystyle (\cos x)'=-\sin x}$ ${\displaystyle (\arccos x)'=-}}}}$ ${\displaystyle (\tan x)'=\sec ^x=x}=1+\tan ^x}$ ${\displaystyle (\arctan x)'=}}$ ${\displaystyle (\sec x)'=\sec x\tan x}$ ${\displaystyle (\operatorname x)'=-1}}}}$ ${\displaystyle (\csc x)'=-\csc x\cot x}$ ${\displaystyle (\operatorname x)'=--1}}}}$ ${\displaystyle (\cot x)'=-\csc ^x={-1 \over \sin ^x}=-(1+\cot ^x)}$ ${\displaystyle (\operatorname x)'=-}}$

It is common to additionally define an inverse tangent function with two arguments, ${\displaystyle \arctan(y,x)\!}$. Its value lies in the range ${\displaystyle [-\pi ,\pi ]\!}$ and reflects the quadrant of the point ${\displaystyle (x,y)\!}$. For the first and fourth quadrant (i.e. ${\displaystyle x>0\!}$) one has ${\displaystyle \arctan(y,x>0)=\arctan(y/x)\!}$. Its partial derivatives are

 ${\displaystyle {\frac {\partial \arctan(y,x)}{\partial y}}={\frac +y^}}}$, and ${\displaystyle {\frac {\partial \arctan(y,x)}{\partial x}}={\frac {-y}+y^}}.}$

## Derivatives of hyperbolic functions

 ${\displaystyle (\sinh x)'=\cosh x={\frac +e^{-x}}}}$ ${\displaystyle (\operatorname \,x)'=+1}}}}$ ${\displaystyle (\cosh x)'=\sinh x={\frac -e^{-x}}}}$ ${\displaystyle (\operatorname \,x)'={\frac {\sqrt -1}}}}$ ${\displaystyle (\tanh x)'={\operatorname ^\,x}}$ ${\displaystyle (\operatorname \,x)'=}}$ ${\displaystyle (\operatorname \,x)'=-\tanh x\,\operatorname \,x}$ ${\displaystyle (\operatorname \,x)'=-}}}}$ ${\displaystyle (\operatorname \,x)'=-\,\operatorname \,x\,\operatorname \,x}$ ${\displaystyle (\operatorname \,x)'=-}}}}$ ${\displaystyle (\operatorname \,x)'=-\,\operatorname ^\,x}$ ${\displaystyle (\operatorname \,x)'=}}$

## Derivatives of special functions

 Gamma function ${\displaystyle \quad \Gamma (x)=\int _^{\infty }t^e^{-t}\,dt}$ ${\displaystyle \Gamma '(x)=\int _^{\infty }t^e^{-t}\ln t\,dt}$ ${\displaystyle \,=\Gamma (x)\left(\sum _^{\infty }\left(\ln \left(1+{\dfrac }\right)-{\dfrac }\right)-{\dfrac }\right)}$ ${\displaystyle \,=\Gamma (x)\psi (x)}$ with ${\displaystyle \psi (x)}$ being the digamma function, expressed by the parenthesized expression to the right of ${\displaystyle \Gamma (x)}$ in the line above.
 Riemann Zeta function${\displaystyle \quad \zeta (x)=\sum _^{\infty }{\frac }}}$ ${\displaystyle \zeta '(x)=-\sum _^{\infty }{\frac {\ln n}}}=-{\frac {\ln 2}}}-{\frac {\ln 3}}}-{\frac {\ln 4}}}-\cdots }$ ${\displaystyle \,=-\sum _}}{\frac \ln p}{(1-p^{-x})^}}\prod _},q\neq p}{\frac }}}$

## Derivatives of integrals

Suppose that it is required to differentiate with respect to x the function

${\displaystyle F(x)=\int _^f(x,t)\,dt,}$

where the functions ${\displaystyle f(x,t)}$ and ${\displaystyle {\frac {\partial }{\partial x}}\,f(x,t)}$ are both continuous in both ${\displaystyle t}$ and ${\displaystyle x}$ in some region of the ${\displaystyle (t,x)}$ plane, including ${\displaystyle a(x)\leq t\leq b(x),}$ ${\displaystyle x_\leq x\leq x_}$, and the functions ${\displaystyle a(x)}$ and ${\displaystyle b(x)}$ are both continuous and both have continuous derivatives for ${\displaystyle x_\leq x\leq x_}$. Then for ${\displaystyle \,x_\leq x\leq x_}$:

${\displaystyle F'(x)=f(x,b(x))\,b'(x)-f(x,a(x))\,a'(x)+\int _^{\frac {\partial }{\partial x}}\,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 n-th derivative of functions, where n is a positive integer. These include:

### Faà di Bruno's formula

If f and g are n-times differentiable, then

${\displaystyle {\frac }}}[f(g(x))]=n!\sum _{\\}}^{}f^{(r)}(g(x))\prod _^{\frac !}}\left(g^{(m)}(x)\right)^}}$

where ${\displaystyle r=\sum _^k_}$ and the set ${\displaystyle \\}}$ consists of all non-negative integer solutions of the Diophantine equation ${\displaystyle \sum _^mk_=n}$.

### General Leibniz rule

If f and g are n-times differentiable, then

${\displaystyle {\frac }}}[f(x)g(x)]=\sum _^{\binom }{\frac }}}f(x){\frac }}}g(x)}$

## References

1. ^ Calculus (5th edition), F. Ayres, E. Mendelson, Schaum's Outline Series, 2009, ISBN 978-0-07-150861-2.
2. ^ Advanced Calculus (3rd edition), R. Wrede, M.R. Spiegel, Schaum's Outline Series, 2010, ISBN 978-0-07-162366-7.
3. ^ Complex Variables, M.R. Speigel, S. Lipschutz, J.J. Schiller, D. Spellman, Schaum's Outlines Series, McGraw Hill (USA), 2009, ISBN 978-0-07-161569-3
4. ^ "The Exponent Rule for Derivatives". Math Vault. 2016-05-21. Retrieved 2019-07-25.