# Exponents and logarithms

You should know about exponents and logarithms from algebra.
In particular, if *b* is a positive number
and *r* is any real number,
then you should know about *b*^{r};
if also *b* ≠ 1 and *t* is a positive number,
then you should know about log_{b} *t*.
You should also know that these two equations are equivalent:
*b*^{r} = *t*,
- log
_{b} *t* = *r*.

(The number *b* is called the *base*.)
## Properties of exponents and logarithms

Fix a positive number *b*;
on the left-hand side below are properties of exponents
that hold for any real numbers *r* and *s*
and any positive number *t*.
On the right-hand side below,
suppose that *b* ≠ 1 (and still positive);
these properties of logarithms
hold for any real number *r*
and any positive numbers *s* and *t*:
*b*^{r} > 0, |
*b*^{logb s} =
*s*; |

*b*^{0} = 1, |
log_{b} 1 = 0; |

*b*^{r + s} =
*b*^{r}*b*^{s}, |
log_{b} (*s**t*) =
log_{b} *s* +
log_{b} *t*; |

*b*^{−s} =
1/*b*^{s}, |
log_{b} (1/*t*) =
−log_{b} *t*; |

*b*^{r − s} =
*b*^{r}/*b*^{s}, |
log_{b} (*s*/*t*) =
log_{b} *s* −
log_{b} *t*; |

*b*^{1} = *b*, |
log_{b} *b* = 1; |

*b*^{rs} =
(*b*^{s})^{r}, |
log_{b} (*s*^{r}) =
*r* log_{b} *s*; |

*b*^{1/t} =
^{t}√*b*, |
log_{b} (^{t}√*b*) =
1/*t*; |

*b*^{r/t} =
^{t}√(*b*^{r}*)*, |
log_{b} (^{t}√*s*) =
log_{b} *s*/*t*. |

In addition, there are these change-of-base rules:
- If
*b* and *e* are positive, *e* ≠ 1,
and *r* is any real number,
then *b*^{r} =
*e*^{rloge b};
- if
*b*, *e*, and *t* are positive,
*b* ≠ 1, and *e* ≠ 1,
then log_{b} *t* =
log_{e} *t*/log_{e} *b*.

So in a way, you only need to know about exponents and logarithms
for one specific base *e*.
In calculus, it's convenient to choose
the special constant e ≈ 2.7;
we write ln *t* for log_{e} *t*.
So you should know the algebraic rules
for exponents and logarithms with base e,
and how to convert any other expression into base e:

*b*^{r} =
e^{r ln b};
- log
_{b} *t* =
ln *t*/ln *b*.

(Here, *b* and *t* are positive, and *b* ≠ 1.)
## Rules for differentiation

There are two basic ways
to go about differentiating expressions with exponents and logarithms.
One way is to turn everything into
a more complicated expression where the only base is e
and learn rules for those expressions only:

- d
*(*e^{u}) =
e^{u} d*u*;
- d(ln
*u*) = d*u*/*u*.

These are the simplest rules to learn,
but before you can use them,
you may have to do some algebra to change the base.
The other way is to learn rules
for any exponential or logarithmic expression:

- d(
*v*^{u}) =
*v*^{u−1} (*v* ln *v* d*u* + *u* d*v*);
- d(log
_{v} *u*) =
(*v* ln *v* d*u* − *u* ln *u* d*v*)/(*u**v* ln^{2} *v*).

These are more complicated, but you can always use them right away.
It may also be handy to learn
the special cases of the above rules
when one part of the expression is constant
(which can then be simplified a bit):

- d(
*v*^{k}) =
*k**v*^{k−1} d*v*,
- d(log
_{v} *k*) =
−ln *k* d*v*/(*v* ln^{2} *v*);
- d(
*k*^{u}) =
*k*^{u} ln *k* d*u*,
- d(log
_{k} *u*) =
d*u*/(*u* ln *k*).

The first of these four is our old friend the Power Rule;
it's the *only* one out of all of the rules above
that applies when the base *v* is not always positive.
## Rules for limits

You can take limits of exponential and logarithmic expressions
by simply plugging in the limiting value, as usual,
so long as the base of every such expression is *positive*.
But even when the original expressions are positive,
it's possible that the limit of the base is zero, so watch out!
In other cases, I advise you to change the base to e
and use these rules to deal with infinities:

- e
^{∞} = ∞,
- ln ∞ = ∞;
- e
^{−∞} = 0,
- ln 0 = −∞.

It's possible to learn more complicated rules for arbitrary bases,
but there are far too many than I would want to handle.
To handle indeterminate forms, we can use L'Hôpital's Rule.
In the case of a logarithm,
L'Hôpital will apply directly if it's indeterminate;
in the case of an exponential expression,
use this version of the change-of-base rule:

*b*^{r} =
e^{r ln b} =
e^{ln b/(1/r)};

then you can apply L'Hôpital to the exponent.
Note especially the indeterminate form 0^{0}.
(Every other indeterminate form of exponentiation or logarithms
involves infinity somewhere.)
Since the base 0 is not positive,
you *cannot* simply evaluate this to 1.

Go back to the course homepage.

This web page was written between 2011 and 2013 by Toby Bartels,
last edited on 2013 May 21.
Toby reserves no legal rights to it.
The permanent URI of this web page
is
`http://tobybartels.name/MATH-1400/2013SP/explogs/`

.