The property that made logarithms famous, that they turn multiplication into addition, is not part of our definition. In §206 Hardy derives it from the integral in two lines. The two lines hide a pretty geometric fact about the curve y=1/t, and this lesson brings it out. We also see the converse: any differentiable function with this property is a constant multiple of logx, so the integral definition is not an arbitrary choice.
The idea
Take the region under y=1/t between t=1 and t=x, and stretch it horizontally by a factor y: every point (t,h) moves to (yt,h). The region becomes y times wider, so its area is multiplied by y. But it no longer fits under the curve: at yt the curve has height 1/(yt), which is 1/y times the old height 1/t. So also squash the region vertically by the factor 1/y. Now it fits exactly under the curve again, between t=y and t=xy, and its area has been multiplied by y⋅(1/y)=1.
The hyperbola y=1/t is unchanged by “stretch sideways by y, squash vertically by y”, and so are areas. That is the whole content of the functional equation.
ExploreStretch the area and keep it
Try this.Keep x=2 and move y from 1 to 3. Each blue strip over [1,x] has a matching ochre strip over [y,xy]. Compare them using the readout. Then change the number of strips.
t1/t
strips over [1, x]
the same strips × y, over [y, xy]
area over [1, y] = log y
Each strip keeps its area when stretched: e.g. the first strip has area 0.2231 in both places (width × y, height ÷ y). In total, area over [y,xy]=[2.5,5] is 0.6931=logx=0.6931, so logxy=0.9163+0.6931=1.609.
What to notice
The ochre strips get wider and lower as y grows, but each keeps exactly the area of its blue partner. So the area over [y,xy] is always logx, and adding the green area over [1,y], which is logy, gives the area over [1,xy], which is logxy. (If you make x larger than y, the two families overlap; the statement is unaffected.)
Precise statements
TheoremThe functional equation of the logarithmHardy: §206 (1)
For all positive x and y,
logxy=logx+logy.
CorollaryQuotients and rational powers
For x,y>0: log(x/y)=logx−logy. For every integer n, logxn=nlogx. For integers p and q>0, if xp/q denotes the positive q-th root of xp, then logxp/q=qplogx.
TheoremUniquenessHardy: Examples LXXXIV, 1
If f is differentiable for x>0 and f(xy)=f(x)+f(y) for all positive x and y, then f(x)=Clogx for some constant C.
Proofs
Prooflogxy=logx+logy
Strategy
Split the area over [1,xy] at y. The first piece is logy by definition. In the second, the substitution t=yu (the stretch in the picture) turns ∫yxy into ∫1x.
This holds whatever the order of 1, y and xy, by the usual convention for integrals with reversed limits.
Substitute t=yu in the second integral
Then dt=ydu and tdt=yuydu=udu: the factor y from the width cancels the factor 1/y from the height. When t runs from y to xy, u runs from 1 to x.
Conclude
∫yxytdt=∫1xudu=logx,sologxy=logy+logx.
∎
ProofThe corollary
Strategy
Everything follows from the functional equation by algebra, using log1=0.
Quotients
log(x/y)+logy=log((x/y)y)=logx.
Positive integer powers
By induction, logxn=log(xn−1⋅x)=(n−1)logx+logx=nlogx.
Zero and negative powers
logx0=log1=0, and logx−n=log(1/xn)=−logxn=−nlogx.
Rational powers
Let z=xp/q>0, so zq=xp. Taking logs, qlogz=plogx, so logz=qplogx.
∎
The uniqueness theorem says that the functional equation, plus differentiability, already pins the logarithm down. Hardy’s argument differentiates the equation in each variable separately.
ProofUniqueness of the solution
Strategy
Differentiate f(xy)=f(x)+f(y) with respect to x and to y and eliminate f′(xy). This forces xf′(x) to be constant, so f′=C/x, and f is Clogx plus a constant that the equation forces to be 0.
Differentiate in each variable
Holding y fixed and differentiating in x: yf′(xy)=f′(x). Holding x fixed: xf′(xy)=f′(y).
Eliminate f′(xy)
Multiply the first by x, the second by y: xf′(x)=xyf′(xy)=yf′(y) for all x,y>0. A quantity that is the same for every x is a constant: xf′(x)=C.
Integrate
f′(x)=C/x=dxd(Clogx), so f(x)−Clogx has zero derivative on (0,∞) and is a constant C′ (mean value theorem).
The constant is 0
Put x=y=1 in the equation: f(1)=2f(1), so f(1)=0. Since log1=0, C′=f(1)−Clog1=0. So f=Clogx. (C=0 gives the trivial solution f≡0.)
∎
The constant C corresponds to the choice of base: we shall see in §217 that log10x=logx/log10, which is Clogx with C=1/log10.
ExploreDoubling adds the same amount each time
Try this.Set x=1, then 2, then 4 (and, using the slider, 0.5 and 0.25). Read off the area each time.
logx=∫1xtdt
t1/t
y = 1/t
area = log x
inner rectangle
outer rectangle
xx−1=0.75≤logx=1.386≤x−1=3. The curved area lies between the two rectangles over [1, x].
What to notice
Each doubling adds exactly log2≈0.693: log2n=nlog2. The strips over [1,2], [2,4], [4,8] are stretched copies of one another, which also explains the crude bound log2n≥n/2 of the last lesson.
Worked examples and exercises
Exercise●●○Hardy: Examples LXXXIII, 2 (v)
Prove that 2x+12<logxx+1<2x(x+1)2x+1 for x>0.
Hint
By the functional equation, logxx+1=log(x+1)−logx=∫xx+1dt/t, an area over an interval of length 1.
Hint
The curve 1/t is convex (its second derivative 2/t3 is positive): it lies below each chord and above each tangent.
Solution
Upper bound. A convex curve lies below its chord. The chord from (x,1/x) to (x+1,1/(x+1)) bounds a trapezium of area 21(x1+x+11)=2x(x+1)2x+1, which therefore exceeds the area under the curve.
Lower bound. A convex curve lies above its tangent. Take the tangent at the midpoint m=x+21. The area under a straight line over [x,x+1] is its height at the midpoint times the width 1, that is, 1/m=2x+12. The curve lies above the tangent, so its area is larger.
Both inequalities are strict because curve and line meet at only one or two points. These are the midpoint and trapezium rules of Chapter VII, and the inequality says the true value lies between them.
Exercise●●○Hardy: Examples LXXXIV, 2
Show that a differentiable function f satisfying
f(x)+f(y)=f(1−xyx+y)(xy=1)
must be Carctanx for some constant C.
Hint
Write z=(x+y)/(1−xy) and compute ∂z/∂x and ∂z/∂y.
Hint
You should find ∂z/∂x=(1+y2)/(1−xy)2. Differentiate the equation in x and in y and eliminate f′(z).
Hence (1+x2)f′(x)=f′(z)(1−xy)2(1+x2)(1+y2)=(1+y2)f′(y). As before this common value is a constant C, so f′(x)=C/(1+x2) and f(x)=Carctanx+C′. Putting x=y=0 gives 2f(0)=f(0), so f(0)=0 and C′=0. The equation is the addition formula arctanx+arctany=arctan1−xyx+y, valid near 0.
ExerciseHalving the work●○○Hardy: §206
Given only log2=0.693147 and log3=1.098612, find log6, log12, log89 and log3.
Hint
Write each number as a product of powers of 2 and 3.
Solution
log6=log2+log3=1.791759. log12=2log2+log3=2.484907. log89=2log3−3log2=2.197225−2.079442=0.117783. log3=21log3=0.549306. This is exactly how tables of logarithms were built: compute the logarithms of the primes and add.
ExerciseA wrong base point●●○Hardy: §206
Let L(x)=∫axdt/t for a fixed a>0. Find the functional equation satisfied by L, and explain why the lower limit 1 is the natural choice.
Hint
L(x)=logx−loga.
Solution
L(x)=∫1x−∫1a=logx−loga. Then L(xy)=logx+logy−loga=L(x)+L(y)+loga. The extra constant loga vanishes only when a=1. In the picture: stretching the region over [a,x] by y gives the region over [ay,xy], which starts at ay, not at a or at y, so the areas no longer add up neatly.
Check yourself
Check yourselfEnter a number
Given log2=0.6931 and log3=1.0986, what is log6 (to 4 decimal places)?
Why
log6=log(2⋅3)=log2+log3=1.7917, or 1.7918 with the more accurate values 0.693147+1.098612=1.791759. Either answer is accepted.
Check yourselfTrue or false?
log(x+y)=logx+logy for all positive x, y.
Why
False. The logarithm turns products into sums. For x=y=1 the left side is log2>0 and the right side is 0. The correct statement is logxy=logx+logy.
Check yourselfChoose one
In the stretching argument, the region over [1,x] is stretched horizontally by the factor y. What happens to the curve’s height over the stretched region?
Why
At the new position yt the curve has height 1/(yt)=(1/y)(1/t). Width times y and height divided by y leave every area unchanged. For a curve like 1/t2 the height would be divided by y2 and areas would shrink by 1/y, which is why only 1/t gives a function that turns products into sums.
Check yourselfChoose one
If we had defined L(x)=∫2xdt/t, then L(xy) would equal
Why
L(x)=logx−log2, so L(x)+L(y)=logxy−2log2=L(xy)−log2. Hence L(xy)=L(x)+L(y)+log2. Only the base point 1 gives the clean equation.
Hardy’s language
Summary
Summary
logxy=logx+logy: split ∫1xy at y and substitute t=yu in the second part.
Geometrically, stretching sideways by y and squashing by 1/y maps the hyperbola y=1/t to itself and preserves area.
Consequences: log(x/y)=logx−logy and logxr=rlogx for every rational r.
The differentiable solutions of f(xy)=f(x)+f(y) are exactly Clogx; the lower limit 1 is what makes the extra constant vanish.