Professional Documents
Culture Documents
Calculus Results: 13.1 Basic Rules For Differentiation
Calculus Results: 13.1 Basic Rules For Differentiation
Calculus Results: 13.1 Basic Rules For Differentiation
13
13.1 BASIC RULES FOR DIFFERENTIATION
d du dv
(u + v) = + (13.1)
dx dx dx
d du
(ku) = k (13.2)
dx dx
d du dv
(uv) = v + u (13.3)
dx dx dx
where u = u(x) and v = v(x) are differentiable functions of x. Note: this rule can
be extended to the product of three or more functions, by successive applications
of the rule for two functions. Thus, for differentiation of a product of three functions
d du dv dw
(uvw) = vw + uw + uv (13.4)
dx dx dx dx
du dv
v −u
d u dx dx
= (13.5)
dx v v2
du du dy
= (13.6)
dx dy dx
f ( g( x )) = f ′( g( x ))g ′( x )
d
(13.7)
dx
d d
f ′( y) = f ( y) and g ′( x ) = g( x )
dy dx
dx 1 1
= = (13.8)
dy dy f ′( x )
dx
(Adams, 1999; Binmore, 1983; Granville, Smith, and Longley, 1957; Hardy, 1963).
∫ u dv = uv − ∫ v du (13.9)
du
where u = u(x) and v = v(x) are differentiable functions of x, du = dx , and
dx
dv
dv = dx .
dx
(Adams, 1999; Binmore, 1983; Hardy, 1963; Stewart, 1995; Trim, 1983).
Note: this result is derived from the product rule for differentiation, given by
Equation 13.3.
x
1. If F(x) is a function defined by the integral F(x) =
∫ f (t) dt for any
a
x in the interval, then
d
F( x ) = f ( x ) (13.10)
dx
d
2. If G(x) is a function such that its derivative G(x) = f(x) for any
dx
x in the interval, then
(Adams, 1999; Binmore, 1983; Sokolnikoff, 1939; Stewart, 1995; Trim, 1983).
( x − a) 2 ( x − a) 3
f ( x ) = f (a) + ( x − a) f ′(a) + f ′′(a) + f ′′′(a) + … (13.12)
2! 3!
where
d d2 d3
f ′(a) = f ( x ) , f ′′(a) = 2 f ( x ) , f ′′′(a) = 3 f ( x ) , etc.
dx x =a dx x =a dx x =a
Equation 13.12 holds for values of x around the point a for which f(x) has
derivatives of all orders and the series satisfies convergence criteria (Adams, 1999;
Finney and Thomas, 1990; Gradshteyn and Ryzhik, 1965; Granville, Smith, and
Longley, 1957; Hardy, 1963; Sokolnikoff, 1939; Stewart, 1995).
x2 x3
f ( x ) = f (0) + xf ′(0) + f ′′(0) + f ′′′(0) + … (13.13)
2! 3!
where
d d2 d3
f ′(0) = f ( x ) , f ′′(0) = 2 f ( x ) , f ′′′(0) = 3 f ( x ) , etc.
dx x =0 dx x =0 dx x =0
Equation 13.13 holds for values of x around the point 0 for which f(x) has
derivatives of all orders and the series satisfies convergence criteria (Adams, 1999;
Finney and Thomas, 1990; Gradshteyn and Ryzhik, 1965; Granville, Smith, and
Longley, 1957; Hardy, 1963; Sokolnikoff, 1939; Stewart, 1995).
and
f ′( x )
lim =L (13.15)
x→a g ′( x )
then
f ( x)
lim =L (13.16)
x→a g( x )
(Adams, 1999; Brand, 1955; Finney and Thomas, 1990; Sokolnikoff, 1939; Stew-
art, 1995; Trim, 1983). Note: l’Hôpital’s rule holds when the limit L is finite, or
∞, or – ∞, and when a is finite, or ∞, or – ∞. It also holds if f(x) and g(x) at x = a
are ∞ or – ∞, instead of 0 as given by Equation 13.14, i.e., if
lim f ( x ) = ± ∞ (13.17)
x→a
and
lim g( x ) = ± ∞ (13.18)
x→a
Thus, l’Hôpital’s rule applies when the limit of a ratio has an indeterminate form
0 ∞
of the type or . The rule states that the limit for these indeterminate forms
0 ∞
may be found by taking the derivatives of the numerator and denominator (sepa-
rately), and evaluating the limit of the resulting ratio. If the ratio of the derivatives
approaches a limit, the original ratio approaches the same limit.
g1 ( x1 , x 2 , …, x n ) = 0
g2 ( x1 , x 2 , …, x n ) = 0
(13.20)
M
gm ( x1 , x 2 , …, x n ) = 0
∂L
=0 (i = 1, 2, …, n)
∂x i
(13.22)
∂L
=0 ( j = 1, 2, …, m)
∂λ j
for x1, x2, …, xn, λ1, λ2, …, λm (n + m equations for n + m unknowns). Note: since
λ1, λ2, …, λm appear in L only as multipliers of g1, g2, …, gm, the m equations
∂L
= 0 ( j = 1, 2, …, m) are just the constraint equations given by Equation 13.20.
∂λ j
β (t )
I (t ) =
∫
α (t )
f ( x, t )dx
∂
where α(t) and β(t) are differentiable functions of t, and f(x, t) and f(x, t) are
∂t
continuous functions in the region of integration. Then
β (t )
∂ dβ dα
∫( ) ∂t f ( x, t)dx + f (β(t), t) dt − f (α (t), t) dt
d
I (t ) = (13.23)
dt
α t
Special cases:
b b
∂
∫ ∫ ∂t f ( x, t)dx
d
f ( x, t )dx = (13.24)
dt
a a
∫ f ( x)dx = f (t)
d
(13.25)
dt
a
∫ f ( x)dx = − f (t)
d
(13.26)
dt
t
where a and b are constants, and where the integrand f(x) in Equations 13.25 and
13.26 is a function of x only (and not t).
∫ f ( x)dx , let
a
x = g(u) (13.27)
dx
be a continuous single-valued function with a continuous derivative = g′(u) in
the interval c ≤ u ≤ d, where c and d are given by du
a = g(c) (13.28)
and
b = g(d) (13.29)
respectively. Then
b d
∫ f ( x)dx = ∫ f (g(u))g′(u)du
a c
(13.30)
(Adams, 1999; Binmore, 1983; Brand, 1955; Sokolnikoff, 1939; Trim, 1983). Note
that this transformation can substantially simplify the evaluation of an integral.
The formula is derived from the chain rule for differentiation.
and
y = h(u, v) (13.32)
∂x ∂x
∂ ( x, y) ∂u ∂v
J= = (13.34)
∂ (u, v) ∂y ∂y
∂u ∂v
i.e.,
∂x ∂y ∂x ∂y
J= − (13.35)
∂u ∂v ∂v ∂u
and let J denote the absolute value of J. If the Jacobian J is nonzero, then
(Adams, 1999; Binmore, 1983; Brand, 1955; Sokolnikoff, 1939; Stewart, 1995).
∂ ( x, y) ∂ (u, v)
Note: the determinants and are related by
∂ (u, v) ∂ ( x, y)
∂ ( x, y) 1
= (13.37)
∂ (u, v) ∂ (u, v)
∂ ( x, y)
∂u ∂u
∂ (u, v) ∂x ∂y ∂u ∂v ∂u ∂v
= = − (13.38)
∂ ( x, y) ∂v ∂v ∂x ∂y ∂y ∂x
∂x ∂y
(Adams, 1999; Binmore, 1983; Brand, 1955). Equation 13.37 is useful for deriving
J in cases where it is easier to evaluate the partial derivatives of u and v with
respect to x and y than the partial derivatives of x and y with respect to u and v.
The change of variables formula given by Equation 13.36 can be extended
to triple and higher-order multiple integrals. Thus, for a triple integral
where x = x(u, v, w), y = y(u, v, w), and z = z(u, v, w) are continuously differentiable
functions that define a one-to-one transformation of the region R in xyz-space to
the region S in uvw-space, where the function F(u, v, w) is given by
∂x ∂x ∂x
∂u ∂v ∂w
∂ ( x, y, z ) ∂y ∂y ∂y
J= = (13.41)
∂ (u, v, w) ∂u ∂v ∂w
∂z ∂z ∂z
∂u ∂v ∂w
and is nonzero.
(Adams, 1999; Binmore, 1983; Brand, 1955; Sokolnikoff, 1939; Stewart,
1995).
∫∫
y=0 x = y
f ( x, y)dxdy =
∫∫
x =0 y=0
f ( x, y)dydx (13.42)
∫∫
y=0 x = y
f ( x, y)dxdy =
∫∫
x =0 y=0
f ( x, y)dydx (13.43)
∞ ∞ ∞ i
∑ ∑ a =∑ ∑ a
j =0 i = j
ij
i =0 j =0
ij (13.44)
provided the sums converge (see Figures 13.3 and 13.4.). (Binmore, 1983; Clarke
and Disney, 1985).
FIGURE 13.4 First summation range for right-hand side of Equation 13.44.
b−a
h= (13.45)
n
Let x0, x1, x2, …, xn be equally spaced points on the interval, given by
x0 = A
x1 = a + h
x 2 = a + 2h
(13.46)
M
x n −1 = a + (n − 1)h
x =b
n
In addition, for the midpoint rule, let m1, m2, …, mn denote the midpoints of each
subinterval, given by
x 0 + x1
m1 =
2
x1 + x 2
m2 =
2 (13.47)
M
x + xn
mn = n −1
2
Figures 13.5, 13.6, and 13.7 illustrate the three methods of approximation.
The midpoint rule is based on step function approximations to the curve f(x)
on the subintervals, and the area under the curve is thus approximated by
rectangles (Figure 13.5). The trapezoidal rule is based on linear approxima-
tions, and the area under the curve is thus approximated by trapezoids (Figure
13.6). Simpson’s rule is based on quadratic function approximations, and the
area under the curve is thus approximated by the areas under segments of
parabolas (Figure 13.7).
The three rules give the following approximate formulas for numerical
b
evaluation of the integral ∫ f ( x )dx :
a
Midpoint Rule
Trapezoidal Rule
Simpson’s Rule
For each rule, the error (difference between the numerical approximation
and the exact value of the integral) can be estimated within given bounds. The
error bounds are given for the midpoint and trapezoidal rules when f(x) has a
continuous second derivative f ″(x) on the interval a ≤ x ≤ b, and for Simpson’s
M (b − a)
3
Midpoint Rule: Error ≤ (13.51)
24n 2
M (b − a)
3
Trapezoidal Rule: Error ≤ (13.52)
12 n 2
N (b − a)
5
Simpson’s Rule: Error ≤ (13.53)
180 n 4
where
and denotes absolute value (Adams, 1999; Finney and Thomas, 1990; Press et
al., 1992; Stewart, 1995; Trim, 1983).
The formulas for the three rules are derived for a single interval (double
interval for Simpson’s rule), and are extended to the case of n subintervals. The
term extended (or composite) is therefore sometimes used to describe these rules
for the case of general n. Thus, Simpson’s rule for general n, as given above, is
sometimes referred to as the extended Simpson’s rule (or composite Simpson’s
rule), etc.
For the midpoint and trapezoidal rules, n may be an odd or even number. For
Simpson’s rule, n must be an even number. The error bounds for each rule give
estimates of the theoretical errors as a function of n. Note that, if n is large, there
may also be round-off errors that accumulate in the numerical computations.
The formulas for the trapezoidal rule and Simpson’s rule are examples of
a closed formula, since they use values of f(x) in the closed interval [a, b], i.e.,
including the values at the endpoints a and b. The formula for the midpoint rule
is an example of an open formula, since it only uses values of f(x) in the open
interval (a, b), i.e., not at the endpoints a and b. An open formula is useful in
cases where f(x) cannot be readily evaluated at the endpoints (Press et al., 1992).