Differentiation rules explained

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]

Constant term rule

For any value of

c

, where

c\inR

, if

f(x)

is the constant function given by

f(x)=c

, then
df
dx

=0

.[4]

Proof

Let

c\inR

and

f(x)=c

. By the definition of the derivative,

\begin{align} f'(x)&=\limh

f(x+h)-f(x)
h

\\ &=\limh

(c)-(c)
h

\\ &=\limh

0
h

\\ &=\limh0\\ &=0 \end{align}

This 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. Slope of the constant function is zero, because the tangent line to the constant function is horizontal and its angle is zero.

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)=af'(x)+bg'(x).

In Leibniz's notation this is written as: \frac = a\frac +b\frac.

Special cases include:

The 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 is written\frac = g \frac + f \frac.

The 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 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

D

, this is written in a more concise way as: [\text{D} (f\circ g)]_x = [\text{D} f]_ \cdot [\text{D}g]_x\,.

The inverse function rule

See main article: Inverse function rule.

If the function has an inverse function, meaning that

g(f(x))=x

and

f(g(y))=y,

theng' = \frac.

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

Power laws, polynomials, quotients, and reciprocals

The polynomial or elementary power rule

See main article: Power rule.

If

f(x)=xr

, for any real number

r0,

then

f'(x)=rxr-1.

When

r=1,

this 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.

The reciprocal rule

See main article: Reciprocal rule. The derivative of

h(x)=1
f(x)
for any (nonvanishing) function is:

h'(x)=-

f'(x)
(f(x))2
wherever is non-zero.

In Leibniz's notation, this is written

d(1/f)
dx

=-

1
f2
df
dx

.

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

The quotient rule

See main article: Quotient rule. If and are functions, then:

\left(f
g

\right)'=

f'g-g'f
g2

wherever 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 and ,

(fg)'=\left(egln\right)'=fg\left(f'{g\overf}+g'lnf\right),

wherever both sides are well defined.

Special cases

Derivatives of exponential and logarithmic functions

d
dx

\left(cax\right)={acaxlnc},    c>0

the equation above is true for all, but the derivative for c<0 yields a complex number.
d
dx

\left(eax\right)=aeax

d
dx

\left(logcx\right)={1\overxlnc},    c>1

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

d
dx

\left(lnx\right)={1\overx},    x>0.

d
dx

\left(ln|x|\right)={1\overx},    x0.

d
dx

\left(W(x)\right)={1\over{x+eW(x)

}},\qquad x > -.\qquadwhere

W(x)

is the Lambert W function
d
dx

\left(xx\right)=xx(1+lnx).

d
dx

\left(f(x)\right)=g(x)f(x)g(x)-1

df
dx

+f(x)g(x)ln{(f(x))}

dg
dx

,    iff(x)>0,andif

df
dx

and

dg
dx

exist.

d
dx

\left(f1

f
\left(...\right
fn(x)
)
(x)
2
(x)

\right)=\left

n
[\sum\limits
k=1
\partial
\partialxk

\left(f1

f
\left(...\right
fn(xn)
)
(x
2)
2
(x
1)

\right)\right]

r\vert
x1=x2=...=xn=x

,iffi<n(x)>0and

dfi
dx

exists.

Logarithmic derivatives

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

(lnf)'=

f'
f

wherever 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[-\pi,
2
\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(y/x).

Its partial derivatives are
\partial\arctan(y,x)
\partialy

=

x
x2+y2

   and   

\partial\arctan(y,x)
\partialx

=

-y
x2+y2

.

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
See Hyperbolic functions for restrictions on these derivatives.

Derivatives of special functions

Gamma function

\Gamma(x)=

infty
\int
0

tx-1e-tdt

\begin{align} \Gamma'(x)&=

infty
\int
0

tx-1e-tlntdt\\ &=\Gamma(x)

infty
\left(\sum
n=1

\left(ln\left(1+\dfrac{1}{n}\right)-\dfrac{1}{x+n}\right)-\dfrac{1}{x}\right)\\ &=\Gamma(x)\psi(x) \end{align}

with

\psi(x)

being the digamma function, expressed by the parenthesized expression to the right of

\Gamma(x)

in the line above.
Riemann zeta function

\zeta(x)=

infty
\sum
n=1
1
nx

\begin{align} \zeta'(x)&=

infty
-\sum
n=1
lnn=-
nx
ln2
2x

-

ln3
3x

-

ln4
4x

-\\ &=-\sump

p-xlnp
(1-p-x)2

\prodq

1
1-q-x

\end{align}

Derivatives of integrals

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

b(x)
F(x)=\int
a(x)

f(x,t)dt,

where the functions

f(x,t)

and
\partial
\partialx

f(x,t)

are both continuous in both

t

and

x

in some region of the

(t,x)

plane, including

a(x)\leqt\leqb(x),

x0\leqx\leqx1

, and the functions

a(x)

and

b(x)

are both continuous and both have continuous derivatives for

x0\leqx\leqx1

. Then for

x0\leqx\leqx1

:

F'(x)=f(x,b(x))b'(x)-f(x,a(x))a'(x)+

b(x)
\int
a(x)
\partial
\partialx

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 -th derivative of functions, where is a positive integer. These include:

Faà di Bruno's formula

See main article: Faà di Bruno's formula. If and are -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

\{km\}

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 and are -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.