Chapter IX · The logarithmic, exponential and circular functions of a real variable

The logarithm as an area

§§204–205 35 min

Why log⁡x\log x is a genuinely new function, and how all its basic properties follow from defining it as the area under 1/t1/t.

Why this matters

Every power xnx^n has an antiderivative that is again a power, xn+1/(n+1)x^{n+1}/(n+1), with one exception: n=−1n = -1. No polynomial, rational function or familiar algebraic expression has derivative 1/x1/x. Hardy’s response in §204 is to define a new function by the property we want, namely as the area under y=1/ty = 1/t, and then to discover everything about it from that definition alone. This lesson sets up the definition and proves the first properties; the rest of the chapter grows out of it.

The idea

Mathematics often gains new functions the way it gained new numbers. When x2=2x^2 = 2 has no rational solution, we enlarge the number system. When ∫dx/x\int dx/x cannot be expressed in known functions, we enlarge the stock of functions: we give a name to the integral itself and study it.

So for x>0x > 0 we let log⁡x\log x be the area under the curve y=1/ty = 1/t between t=1t = 1 and t=xt = x, counted positive when x>1x > 1 and negative when x<1x < 1 (because the integral then runs backwards). Everything we want to know about log⁡x\log x must now be read off this picture.

Explore Sweep out the area under 1/t1/t

Try this. Drag the purple point xx from 11 to the right, then to the left of 11 towards 0.150.15. Watch the lower graph, which records the area as a function of xx.

F(x)=∫ax1t dtF(x) = \int_{a}^{x} \frac1t\,dt, a=1a = 1
tf(t)
xF(x)
  • f(t)
  • counts +
  • counts −
  • F(x)
  • x (drag)
F(2.5)=∫12.51t dt=0.91629F(2.5) = \int_{1}^{2.5} \frac1t\,dt = 0.91629. Slope of FF at xx: F′(x)=f(x)=0.4F'(x) = f(x) = 0.4.
What to notice

The area grows as xx increases, but ever more slowly, because the strip being added gets lower. To the left of 11 the area counts as negative and plunges as x→0x \to 0, because 1/t1/t shoots up there. The slope of the lower graph at xx is always the height 1/x1/x of the upper one.

Four facts are visible in the picture, and each will become a theorem.

  • log⁡1=0\log 1 = 0. There is no area between 11 and 11.
  • log⁡x\log x increases, and its slope at xx is 1/x1/x: steep for small xx, gentle for large xx.
  • It tends to +∞+\infty, however slowly: the area under 1/t1/t out to infinity is infinite, even though the curve itself tends to 00.
  • It tends to −∞-\infty as x→0x \to 0, because the area between xx and 11 becomes unbounded.

Why is the lower limit 11? Any positive number would do, but 11 gives log⁡1=0\log 1 = 0, and we shall see in the next lesson that this is exactly what makes log⁡xy=log⁡x+log⁡y\log xy = \log x + \log y hold without an extra constant.

Precise statements

Definition The logarithm Hardy: §205

For x>0x > 0,

log⁡x=∫1xdtt.\log x = \int_1^x \frac{dt}{t}.

When 0<x<10 < x < 1 the integral is taken in the usual sense ∫1x=−∫x1\int_1^x = -\int_x^1. The definition is restricted to x>0x > 0: an interval of integration containing t=0t = 0 would contain the infinity of 1/t1/t, and the integral would have no meaning.

Theorem First properties of log⁡x\log x Hardy: §205
  1. log⁡1=0\log 1 = 0.
  2. log⁡x\log x is continuous and strictly increasing for x>0x > 0, with derivative ddxlog⁡x=1x\dfrac{d}{dx} \log x = \dfrac1x.
  3. log⁡x→+∞\log x \to +\infty as x→∞x \to \infty.
  4. log⁡(1/x)=−log⁡x\log(1/x) = -\log x. Consequently log⁡x<0\log x < 0 for 0<x<10 < x < 1, and log⁡x→−∞\log x \to -\infty as x→+0x \to +0.

Part 2 is the fundamental theorem of calculus (Chapter VII): 1/t1/t is continuous on every interval [a,b][a, b] with a>0a > 0, so its integral is differentiable with derivative 1/x1/x; a positive derivative makes the function strictly increasing, and a differentiable function is continuous.

Explore Two rectangles trap the logarithm

Try this. With x=2x = 2, compare the shaded area with the inner and outer rectangles over [1,x][1, x]. Then move xx below 11.

log⁡x=∫1xdtt\log x = \int_1^x \frac{dt}{t}
t1/t
  • y = 1/t
  • area = log x
  • inner rectangle
  • outer rectangle
x−1x=0.5  ≤  log⁡x=0.6931  ≤  x−1=1\frac{x-1}{x} = 0.5 \;\le\; \log x = 0.6931 \;\le\; x - 1 = 1. The curved area lies between the two rectangles over [1, x].
What to notice

On [1,x][1, x] the curve 1/t1/t lies between the heights 1/x1/x and 11, so log⁡x\log x lies between (x−1)/x(x-1)/x and x−1x - 1. For x<1x < 1 the same two expressions still trap log⁡x\log x (now all three are negative). At x=2x = 2 this already says 12≤log⁡2≤1\tfrac12 \le \log 2 \le 1.

The rectangles give our first quantitative facts about log⁡\log:

Theorem The basic inequality Hardy: Examples LXXXIII, 1–2

For every x>0x > 0 with x≠1x \ne 1,

x−1x<log⁡x<x−1.\frac{x - 1}{x} < \log x < x - 1 .

Equivalently, with 1+h1 + h in place of xx: h1+h<log⁡(1+h)<h\dfrac{h}{1+h} < \log(1 + h) < h for h>−1h > -1, h≠0h \ne 0.

Proofs

Part 3 does not follow from the curve tending to 00. (The area under 1/t21/t^2 out to infinity is finite.) Hardy refers back to the divergence of ∫1∞dt/t\int_1^\infty dt/t in §181; here is a self-contained version of the same idea, using areas over the intervals [1,2],[2,4],[4,8],…[1, 2], [2, 4], [4, 8], \dots.

Proof log⁡x→+∞\log x \to +\infty
Strategy

Cut [1,2n][1, 2^n] into the nn pieces [2k−1,2k][2^{k-1}, 2^k]. Each piece contributes at least 12\tfrac12 to the area, so log⁡2n≥n/2\log 2^n \ge n/2. Since log⁡\log increases, it eventually exceeds any bound.

Each doubling interval contributes at least 12\tfrac12

On [2k−1,2k][2^{k-1}, 2^k] we have 1/t≥1/2k1/t \ge 1/2^k, and the interval has length 2k−12^{k-1}. So ∫2k−12kdt/t≥2k−1/2k=12\int_{2^{k-1}}^{2^k} dt/t \ge 2^{k-1}/2^k = \tfrac12.

Add up: log⁡2n≥n/2\log 2^n \ge n/2

The integral over [1,2n][1, 2^n] is the sum of the integrals over the nn pieces, each at least 12\tfrac12.

Given Δ\Delta, take x0=2nx_0 = 2^n with n>2Δn > 2\Delta

For x≥x0x \ge x_0 we have log⁡x≥log⁡x0≥n/2>Δ\log x \ge \log x_0 \ge n/2 > \Delta, since log⁡\log is increasing. This is the definition of log⁡x→∞\log x \to \infty.

Notice that the bound log⁡2n≥n/2\log 2^n \ge n/2 is very weak growth: to make the area exceed 5050 this argument needs x≥2100x \ge 2^{100}. The logarithm tends to infinity, but slowly. The third lesson makes “slowly” precise.

Explore The same area on the other side of 1

Try this. Move xx and compare the two shaded areas: one between 11 and xx, the other between 11 and 1/x1/x.

log⁡x=∫1xdtt\log x = \int_1^x \frac{dt}{t}
t1/t
  • y = 1/t
  • between 1 and x
  • between 1 and 1/x
Area between 1 and x=3x = 3: 1.0991.099. Area between 1 and 1/x=0.3331/x = 0.333: 1.0991.099. Equal, but on opposite sides of 1, so log⁡(1/x)=−log⁡x=−1.099\log(1/x) = -\log x = −1.099.
What to notice

They always have exactly the same size, though one is tall and thin and the other long and low. Being on opposite sides of 11, they count with opposite signs: log⁡(1/x)=−log⁡x\log(1/x) = -\log x.

Proof log⁡(1/x)=−log⁡x\log(1/x) = -\log x, and the behaviour near 00
Strategy

Substitute t=1/ut = 1/u in the integral defining log⁡x\log x. The substitution turns the area between 11 and xx into the area between 11 and 1/x1/x, with a change of sign.

Substitute t=1/ut = 1/u

Then dt=−du/u2dt = -du/u^2 and 1/t=u1/t = u, so dtt=−duu\dfrac{dt}{t} = -\dfrac{du}{u}. When tt runs from 11 to xx, uu runs from 11 to 1/x1/x.

Compute

log⁡x=∫1xdtt=−∫11/xduu=−log⁡1x.\log x = \int_1^x \frac{dt}{t} = -\int_1^{1/x} \frac{du}{u} = -\log\frac1x .

Sign for 0<x<10 < x < 1

If 0<x<10 < x < 1 then 1/x>11/x > 1, so log⁡(1/x)>0\log(1/x) > 0 (an integral of a positive function over [1,1/x][1, 1/x]), hence log⁡x<0\log x < 0.

Limit at 00

As x→+0x \to +0, 1/x→+∞1/x \to +\infty, so log⁡(1/x)→+∞\log(1/x) \to +\infty by part 3, and log⁡x=−log⁡(1/x)→−∞\log x = -\log(1/x) \to -\infty.

Proof The basic inequality
Strategy

Compare 1/t1/t with its smallest and largest values on the interval of integration, and integrate.

Case x>1x > 1

For 1<t<x1 < t < x we have 1/x<1/t<11/x < 1/t < 1. Integrating over [1,x][1, x], an interval of length x−1x - 1, gives (x−1)/x<log⁡x<x−1(x-1)/x < \log x < x - 1. The inequalities are strict because the functions differ on a whole interval.

Case 0<x<10 < x < 1

Now log⁡x=−∫x1dt/t\log x = -\int_x^1 dt/t, and for x<t<1x < t < 1 we have 1<1/t<1/x1 < 1/t < 1/x. Integrating over [x,1][x, 1], of length 1−x1 - x: 1−x<−log⁡x<(1−x)/x1 - x < -\log x < (1 - x)/x. Multiplying by −1-1 reverses the inequalities: (x−1)/x<log⁡x<x−1(x - 1)/x < \log x < x - 1, the same statement.

Is log⁡x\log x really new?

Hardy does not prove that log⁡x\log x is not an algebraic or trigonometric function (that is hard), but he notes an easy part: it is not a rational function. The reason is worth seeing, because it shows why 1/x1/x is special.

Proof log⁡x\log x is not a rational function (Examples XLII, 4)
Strategy

Differentiating a rational function can only produce poles of order at least 22. But 1/x1/x has a simple pole at 00.

Suppose log⁡x=P(x)/Q(x)\log x = P(x)/Q(x) for x>0x > 0

Here PP, QQ are polynomials without a common factor. If QQ is constant, then P′(x)=1/xP'(x) = 1/x, so xP′(x)=1x P'(x) = 1 for all x>0x > 0; two polynomials that agree for all x>0x > 0 agree everywhere, and x=0x = 0 gives 0=10 = 1. So QQ has a root aa (perhaps complex), of some multiplicity k≥1k \ge 1.

Near aa, the derivative has a pole of order k+1≥2k + 1 \ge 2

Write Q(x)=(x−a)kS(x)Q(x) = (x - a)^k S(x) with S(a)≠0S(a) \ne 0, and g=P/Sg = P/S, so g(a)≠0g(a) \ne 0. Then

(PQ)′=g′(x)(x−a)k−k g(x)(x−a)k+1,\left(\frac{P}{Q}\right)' = \frac{g'(x)}{(x - a)^k} - \frac{k\, g(x)}{(x - a)^{k+1}},

and the second term has a pole of order k+1k + 1 at aa that the first cannot cancel.

Contradiction

The identity (P/Q)′=1/x(P/Q)' = 1/x holds for all x>0x > 0, hence (both sides being rational) for all xx except poles. But 1/x1/x has no pole of order 22 or more anywhere. So no such P/QP/Q exists.

Worked examples and exercises

Exercise ●○○ Hardy: Examples LXXXIII, 1

Prove from the definition that (a) x1+x<log⁡(1+x)<x\dfrac{x}{1 + x} < \log(1 + x) < x for x>0x > 0, and (b) x<−log⁡(1−x)<x1−xx < -\log(1 - x) < \dfrac{x}{1 - x} for 0<x<10 < x < 1.

Hint
For (a), log⁡(1+x)=∫11+xdt/t\log(1 + x) = \int_1^{1+x} dt/t, and on that interval 1/t1/t lies between 1/(1+x)1/(1+x) and 11.
Hint
For (b), −log⁡(1−x)=log⁡11−x=∫1−x1dtt-\log(1 - x) = \log\dfrac{1}{1-x} = \int_{1-x}^{1} \dfrac{dt}{t}.

Solution

(a) For 1<t<1+x1 < t < 1 + x, 11+x<1t<1\dfrac{1}{1+x} < \dfrac1t < 1. Integrating over an interval of length xx gives the result.

(b) By part 4 of the theorem, −log⁡(1−x)=∫1−x1dt/t-\log(1-x) = \int_{1-x}^1 dt/t. For 1−x<t<11 - x < t < 1 we have 1<1/t<1/(1−x)1 < 1/t < 1/(1-x), and the interval has length xx. So x<−log⁡(1−x)<x/(1−x)x < -\log(1-x) < x/(1-x).

Both are the basic inequality with 1+x1 + x or 1−x1 - x in place of xx.

Exercise ●○○ Hardy: Examples LXXXIII, 3

Show that log⁡xx−1→1\dfrac{\log x}{x - 1} \to 1 as x→1x \to 1, that is, log⁡(1+y)y→1\dfrac{\log(1 + y)}{y} \to 1 as y→0y \to 0.

Hint
Divide the basic inequality by x−1x - 1, minding the sign of x−1x - 1.

Solution

For x>1x > 1, dividing (x−1)/x<log⁡x<x−1(x-1)/x < \log x < x - 1 by x−1>0x - 1 > 0 gives 1/x<log⁡xx−1<11/x < \dfrac{\log x}{x-1} < 1. For 0<x<10 < x < 1, dividing by x−1<0x - 1 < 0 reverses the signs: 1<log⁡xx−1<1/x1 < \dfrac{\log x}{x-1} < 1/x. In both cases the ratio lies between 11 and 1/x1/x, and 1/x→11/x \to 1 as x→1x \to 1. So the ratio tends to 11. (This is also the statement that the derivative of log⁡\log at 11 is 1/1=11/1 = 1.)

Exercise ●●○ Hardy: Examples LXXXIII, 2 (i)

Prove that x−12x2<log⁡(1+x)x - \tfrac12 x^2 < \log(1 + x) for x>0x > 0.

Hint
Rectangles are too crude. Compare 11+u\dfrac{1}{1+u} with 1−u1 - u for u>0u > 0 instead, and integrate from 00 to xx.

Solution

Substituting t=1+ut = 1 + u, log⁡(1+x)=∫0xdu1+u\log(1 + x) = \int_0^x \dfrac{du}{1+u}. For u>0u > 0, (1+u)(1−u)=1−u2<1(1 + u)(1 - u) = 1 - u^2 < 1, so 1−u<11+u1 - u < \dfrac{1}{1+u}. Integrating over [0,x][0, x]: x−12x2<log⁡(1+x)x - \tfrac12 x^2 < \log(1 + x).

(Alternatively, f(x)=log⁡(1+x)−x+12x2f(x) = \log(1 + x) - x + \tfrac12 x^2 has f(0)=0f(0) = 0 and f′(x)=11+x−1+x=x21+x>0f'(x) = \dfrac{1}{1+x} - 1 + x = \dfrac{x^2}{1+x} > 0.) Together with (a) above: x−12x2<log⁡(1+x)<xx - \tfrac12 x^2 < \log(1 + x) < x, the first two terms of a series we shall meet in §220.

Exercise ●●○ Hardy: Examples LXXXIII, 2 (iii)

Prove that 4(x−1)−2log⁡x<2xlog⁡x<x2−14(x - 1) - 2\log x < 2x\log x < x^2 - 1 for x>1x > 1.

Hint
Move everything to one side and call it f(x)f(x). What are f(1)f(1) and f′(1)f'(1)?
Hint
Both f(1)=0f(1) = 0 and f′(1)=0f'(1) = 0, so look at the sign of f′′(x)f''(x) for x>1x > 1.

Solution

Right-hand inequality. Let g(x)=x2−1−2xlog⁡xg(x) = x^2 - 1 - 2x\log x. Then g(1)=0g(1) = 0, g′(x)=2x−2log⁡x−2g'(x) = 2x - 2\log x - 2, so g′(1)=0g'(1) = 0, and g′′(x)=2−2/x>0g''(x) = 2 - 2/x > 0 for x>1x > 1. So g′g' is strictly increasing on [1,∞)[1, \infty), hence g′(x)>g′(1)=0g'(x) > g'(1) = 0 for x>1x > 1; then gg is strictly increasing there, and g(x)>g(1)=0g(x) > g(1) = 0.

Left-hand inequality. Let f(x)=2xlog⁡x+2log⁡x−4(x−1)f(x) = 2x\log x + 2\log x - 4(x - 1). Then f(1)=0f(1) = 0, f′(x)=2log⁡x+2+2/x−4f'(x) = 2\log x + 2 + 2/x - 4, so f′(1)=0f'(1) = 0, and f′′(x)=2/x−2/x2=2(x−1)/x2>0f''(x) = 2/x - 2/x^2 = 2(x-1)/x^2 > 0 for x>1x > 1. The same two steps give f(x)>0f(x) > 0 for x>1x > 1.

Everything used about log⁡\log here is log⁡1=0\log 1 = 0 and (log⁡x)′=1/x(\log x)' = 1/x: exactly what the definition gives.

Check yourself

Check yourself Choose one

Using only the two rectangles over [1,2][1, 2], what can you say about log⁡2\log 2?

Why

On [1,2][1, 2] the curve 1/t1/t lies between heights 12\tfrac12 and 11, over a width of 11, so 12<log⁡2<1\tfrac12 < \log 2 < 1. (In fact log⁡2=0.6931…\log 2 = 0.6931\ldots.) The basic inequality (x−1)/x<log⁡x<x−1(x-1)/x < \log x < x-1 holds for every positive x≠1x \ne 1.

Check yourself True or false?

Since the slope 1/x1/x of log⁡x\log x tends to 00, the function log⁡x\log x is bounded above.

Why

False. A slope tending to 00 means slower and slower growth, not bounded growth. Each doubling of xx adds at least 12\tfrac12 to log⁡x\log x (in fact exactly log⁡2\log 2, as the next lesson shows), so log⁡x→∞\log x \to \infty. Compare x\sqrt{x}, whose slope also tends to 00.

Check yourself Choose one

Why does Hardy define log⁡x\log x only for x>0x > 0?

Why

The definition is the integral ∫1xdt/t\int_1^x dt/t. For x≤0x \le 0 the range from 11 to xx passes through 00, where the integrand is not defined and not bounded, and the integral (even as an infinite integral) diverges. The sign of 1/t1/t for t<0t < 0 would be no obstacle by itself. Negative and complex logarithms are taken up in Chapter X.

Check yourself Enter a number

Given log⁡2=0.6931\log 2 = 0.6931 (to 4 places), what is log⁡12\log \tfrac12?

Why

log⁡(1/x)=−log⁡x\log(1/x) = -\log x, so log⁡12=−0.6931\log \tfrac12 = -0.6931. In the picture, the area between 12\tfrac12 and 11 equals the area between 11 and 22, and counts negatively.

Hardy’s language

We have, therefore, not indeed a strict proof that log x is a new function—that we do not profess to give—but a reasonable presumption that it is.

— G. H. Hardy, §204

Summary

Summary
  • log⁡x=∫1xdt/t\log x = \int_1^x dt/t for x>0x > 0: a new function, defined by the property (log⁡x)′=1/x(\log x)' = 1/x that no rational function has.
  • log⁡1=0\log 1 = 0; log⁡\log is continuous and strictly increasing; log⁡x→+∞\log x \to +\infty as x→∞x \to \infty (each doubling adds at least 12\tfrac12) and log⁡x→−∞\log x \to -\infty as x→+0x \to +0.
  • The substitution t=1/ut = 1/u gives log⁡(1/x)=−log⁡x\log(1/x) = -\log x: equal areas on the two sides of 11.
  • Rectangles give x−1x<log⁡x<x−1\dfrac{x-1}{x} < \log x < x - 1 for x≠1x \ne 1, and hence log⁡xx−1→1\dfrac{\log x}{x-1} \to 1 as x→1x \to 1.