If a > 0 (but not 1), ax is strictly increasing or strictly decreasing, (hence passes the horizontal line test), and therefore has an inverse. We call the inverse of ax - loga(x) - the logarithmic function with base a .Because the log is the inverse of the exponential, we have
Theorem:
- loga(ax) = x for every real x
- a log a x = x, for every positive real x
- loga(xy) = logax + logay
- loga(x/y) = logax - logay
- loga(xy) = y loga x
The particular number a=e=2.71828... comes up so often that we use the shorthand notation loga(x) = ln(x), the natural log, for this particular base.
We can convert between bases by
loga x = ln (x) / ln(a)
Therefore, letting N=1,000,000 the sum of the first one million reciprocal integers is approximately ln(1,000,000)=13.815511! Try writing a computer program to calculuate 1 + 1/2 + 1/3 + 1/4 + ... + 1/N and see how close it gets...