Math 152, Section 55 (Vipul Naik) : X 1 R X 0 X
Math 152, Section 55 (Vipul Naik) : X 1 R X 0 X
Executive summary
0.1. Logarithm and exponential: basics.
R x logarithm is a one-to-one function with domain (0, ) and range R, and is defined as
(1) The natural
ln(x) := 1 (dt/t).
(2) The natural logarithm is an increasing function that is concave down. It satisfies the identities
ln(1) = 0, ln(ab) = ln(a) + ln(b), ln(ar ) = r ln a, and ln(1/a) = ln a.
(3) The limit limx0 ln(x) is and the limit limx ln(x) is +. Note that ln goes off to + at
even though its derivative goes to zero as x +.
(4) The derivative of ln(x) is 1/x and the derivative of ln(kx) is also 1/x. The derivative of ln(xr ) is
r/x.
(5) The antiderivative of 1/x is ln |x|+C. What this really means is that the antiderivative is ln(x)+C
when x is negative and ln(x)+C when x is positive. If we consider 1/x on both positive and negative
reals, the constant on the negative side is unrelated to the constant on the positive side.
(6) e is defined as the unique number x such that ln(x) = 1. e is approximately 2.718. In particular, it
is between 2 and 3.
(7) The inverse of the natural logarithm function is denoted exp, and exp(x) is also written as ex . When
x is a rational number, ex = ex (i.e., the two definitions of exponentiation coincide). In particular,
e1 = e, e0 = 1, etc.
(8) The function exp equals its own derivative and hence also its own antiderivative. Further, the
derivative of x 7 emx is memx . Similarly, the integral of emx is (1/m)emx + C.
(9) We have exp(x + y) = exp(x) exp(y), exp(rx) = (exp(x))r , exp(0) = 1, and exp(x) = 1/ exp(x).
All of these follow from the corresponding identities for ln.
Actions...
(1) We can calculate ln(x) for given x by using the usual methods of estimating the values of integrals,
applied to the function 1/x. We can also use the known properties of logarithms, as well as approx-
imate ln values for some specific x values, to estimate ln x to a reasonable approximation. For this,
it helps to remember ln 2, ln 3, and ln 5 or ln 10.
(2) Since both ln and exp are one-to-one, we can cancel ln from both sides of an equation and similarly
cancel exp. Technically, we cancel ln by applying exp to both sides, and we cancel exp by applying
ln to both sides.
(6) Trigonometric
R integrals: tan x dx = R ln | cos x| + C, and similar integration
R formulas for cot, sec
and csc: cot x dx = ln | sin x| + C, sec x = ln | sec x + tan x| + C, and csc x dx = ln | csc x
cot x| + C.
2.2. Logarithms and exponents: some rules. Here are some of the rules:
(1) ln is a one-to-one function from (0, ) to R and exp is a one-to-one function from R to (0, ). The
two functions are inverse functions of each other.
(2) ln converts products to sums and exp converts sums to products. In other words, ln(xy) = ln(x) +
ln(y) and exp(x + y) = exp(x) exp(y).
(3) ln(1) = 0 and exp(0) = 1.
(4) ln(1/x) = ln x and exp(x) = 1/ exp(x).
(5) ln(xr ) = r ln x and exp(rx) = (exp(x))r .
(6) Both exp and ln are continuous and increasing functions.
(7) exp has the x-axis as a horizontal asymptote as x , while ln has the y-axis as a vertical
asymptote as x 0.
(8) exp is concave up and ln is concave down.
Here are the logarithm and exponential graphs together, so that we can see that the graphs are reflections
of each other about the y = x line:
5
2.3. Numerical shennanigans. In his autobiographical book, Richard Feynmann discusses how he im-
pressed a bunch of mathematicians by being able to calculate natural logarithms of many numbers to one or
two decimal places. However, what he did was hardly impressive. It turns out that remembering the natural
logarithms of a few numbers allows us to compute them approximately for many numbers.
For instance, it is useful to remember that ln(2) 0.6931, ln(3) 1.0986, ln(10) 2.3026, and ln(7)
1.9459. We can now calculate the logarithm values for most integers. How? Using the fact that logarithms
translate multiplication to addition. Thus, ln(4) = 2 ln(2) 1.3862, while ln(5) = ln(10) ln(2) 1.6095.
In fact, we can readily calculate the natural logarithm of any positive integer all of whose prime factors
are among 2, 3, 5, and 7. What about ln(11)? While we cannot calculate this precisely, we can calculate
ln(10) and ln(12) and thus obtain reasonable upper and lower bounds for ln(11). Even better, we know that
ln(120) < 2 ln(11) < ln(125), and since we can calculate both ln(120) and ln(125), we get a pretty small
range for ln(11).
In fact, Feynman was able to impress physicists by doing calculations that essentially relied on only two
facts: ln(2) 0.7 and ln(10) 2.3.
If we are able to quickly calculate natural logarithms, a happy corollary of that is that we can quickly
integrate dx/x on intervals.
2.4. Domain and range issues. For domain computations in the past, we used the following basic guide-
lines:
(1) Things in the denominator must be nonzero.
(2) Things with squareroots or even roots must be nonnegative.
(3) Things with squareroots or even roots in the denominator must be positive.
We now add two more criteria:
6
(4) Things under logarithm must be positive.
(5) Things under logarithm of the absolute value must be nonzero.
2.5. Logarithm of the absolute value. The natural logarithm function is defined only for positive reals.
However, we can extend it to a function on all reals by taking the absolute value first, i.e., we look at the
function x 7 ln(|x|). This is an even function and its graph is obtained by takingthe graph of the logarithm
function and adding its mirror image about the y-axis
It turns out that the derivative of ln(|x|) is 1/x. In particular, we see that ln(|x|) serves as an antiderivative
of 1/x for all nonzero x. This is an improvement on ln(x), which worked only for positive x. However, we
should be careful because the domain of 1/x as well as of ln |x| excludes zero. Hence, the behavior on the
positive and negative side are totally independent of each other. We shall return to this point in a later
lecure.
d 1
(ln x) =
dx x
This is the formula for x > 0. A more general version, for x 6= 0, is:
d 1
(ln |x|) =
dx x
The corresponding antiderivative formula for x > 0 is:
Z
dx
= ln(x) + C
x
In general, the antiderivative formula is:
Z
dx
= ln(|x|) + C
x
However, it should be remembered that this formula is valid only when we are working with x either in
(0, ) or in (, 0), i.e., we cannot use the formula to cross between the interval (0, ) and (, 0). In
fact, if we have a function f : R \ {0} R such that f 0 (x) = 1/x, then we can guarantee that f (x) ln(|x|) is
constant on x > 0 and is constant on x < 0. However, these constants may differ. The behavior on the (0, )
connected component does not in any way constrain the behavior on the (, 0) connected component.
3.2. The exponential and its derivative and integral formulas. Recall that exp is the inverse of the
ln function. Thus, we can use the rule for differentiating the inverse function to find exp0 . We have:
1 1
exp0 (x) = = = exp(x)
ln0 (exp x) 1
exp(x)
Thus, we have the remarkable property that the exponential function, i.e., the function x 7 ex , is its
own derivative. Another way of thinking about this is that the rate of growth of the exponential function is
equal to its value. Note that this also implies that the exponential function is infinitely differentiable and all
higher derivatives equal the same function.
We rewrite the above in Liebniz notation:
d x
(e ) = ex
dx
We also note the corresponding statement for indefinite integration:
Z
ex dx = ex + C
7
3.3. Some corollaries. Using the above, we obtain the following identities for the logarithm and exponent:
d 1
(ln(kx)) =
dx x
d r
(ln(xr )) =
dx x
d mx
(e ) = memx
Zdx
1 mx
emx dx = e +C
m
Each of these identities can be derived in two ways: either by using the properties of logarithms and
exponents on the inside and then differentiating, or by first differentiating and then simplifying. For instance,
for the second identity, we can either simplify ln(xr ) as r ln(x) first and then pull the constant r out before
differentiating, or we can use the chain rule to obtain (1/xr ) rxr1 . It is gratifying to know that the answers
we obtain both ways are the same.
Note that cot is undefined at multiples of , and so any integration of this sort is valid only if the entire
interval of integration lies strictly between two consecutive multiples of . It is also instructive to graph the
antiderivative of cot.
Here is the graph of cot and its antiderivative on the interval (0, ), where both are defined:
Similarly, we obtain:
Z
tan x dx = ln | cos x| + C = ln | sec x| + C
Here is the picture of tan and ln | cos | on the interval (/2, /2), where both are defined:
Note that those two expressions are the same because cos and sec are reciprocals of each other.
Let us look at a somewhat harder integral: the integral of the secant function:
4.4. Domain and range issues. When doing indefinite integration, it is often best to forget about issues
of domain and range and just let the algebraic manipulations flow. However, to interpret the results at the
end, it is important to look at the domain and range issues. Ideally, the antiderivative should be defined and
should make sense on all intervals where the function itself is continuous. Further, if there are points where
the function is continuous but the expression obtained for the antiderivative is not defined, we should try to
obtain the limit at that point.
4.5. An application: integrating the cube of the tangent function. Let us look at an application of
the above:
Z
tan3 x dx
Before we proceed, it is worth remarking how different integration is from differentiation. For differen-
tiation, there was just the formula for differentiating sin and cos, and everything else followed using the
product rule and quotient rule. We still memorized more, but that was mainly to speed things up, not out
of necessity. With integration, on the other hand, we need to have a whole bag of ad hoc tricks that we try
one after the other.
Let us look at this integral. The key thing to do here is to break down tan3 x = tan x tan2 x. Next, we
use tan2 x = sec2 x 1, and we have:
Z Z
2
tan x sec x dx tan x dx
The first integral can be quickly calculated using the chain rule or u-substitution, since sec2 x is the
derivative of tan x. The second integral comes from our formula, and we get:
tan2 x
+ ln | cos x| + C
2
4.6. A fancier formula. Here is a formula that uses the chain rule twice:
Z 0
g (x)f (ln |g(x)|)
Z
dx = f (u) du
g(x)
where u = ln(|g(x)|). For instance:
2x(ln(x2 + 1))3
Z Z
dx = u3 du
x2 + 1
where u = ln(x2 + 1). This further simplifies to:
1
[ln(x2 + 1)]4 + C
4
5. More tricks and techniques
5.1. Logarithmic differentiation. Logarithmic derivatives are both a conceptual and a computational
tool. Currently, we focus on the computational aspects. The idea is to use the same formula that we
obtained earlier, but in reverse:
d g 0 (x)
ln(|g(x)|) =
dx g(x)
Rearranging the terms yields:
d
g 0 (x) = g(x) ln(|g(x)|)
dx
10
If g is a product of functions g1 , g2 , . . . , gn , then ln |g(x)| = ln |g1 (x)| + + ln |gn (x)|, and we get:
0
g (x) g20 (x) g 0 (x)
g 0 (x) = g(x) 1 + + + n
g1 (x) g2 (x) gn (x)
Note that this expression is not really new and did not really require logarithms. You can in fact convince
yourself that it is just a reformulation of the product rule. When g = g1 g2 , for instance, this says that:
0
g0
g
g0 = g 1 + 2
g1 g2
Substituting g = g1 g2 , this simplifies to the usual product rule. However, the logarithmic formulation has
some conceptual advantages.
For instance, suppose g(x) := x(x 1)(x 2). Then, we immediately obtain that:
g 0 (x) 1 1 1
= + +
g(x) x x1 x2
Further, of we have g(x) = g1 (x)a1 g2 (x)a2 . . . gn (x)an , we obtain that:
g 0 (x) 3 4 5
= + +
g(x) x x1 x2
5.2. Exponentiation tricks. We have already seen basic integration and differentiation identities for the
exponentiation function. There are some ways of combining these identities with the chain rule. I note some
special cases here.
(1) For any function f , the derivative of f (x)ex is (f (x) + f 0 (x))ex . Thus, the integral of g(x)ex is
f (x)ex + C where f + f 0 = g.
(2) (1) is particularly useful when integrating polynomial function times ex . This is because we can use
linear algebraR to find, for a given polynomial g, the unique polynomial f such that f + f 0 = g.
(3) The integral f (e )e dx is f (u) du where u = ex .
x x
R
a function f such that f + f 0 = g. In some cases, it is easier to think of it as an integration problem, and
in others, it is easier to think of it in terms of the differental equation f + f 0 = g. The idea that these two
apparently different computations measure the same thing is extremely important.
12