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

The circular functions without geometry

§224 35 min

Four ways to found trigonometry rigorously, and Hardy's choice: define arctan⁡x\arctan x as ∫0xdt/(1+t2)\int_0^x dt/(1+t^2) and π\pi as twice the whole area, then build tan⁡\tan, cos⁡\cos and sin⁡\sin from it, as exp⁡\exp was built from log⁡\log.

Why this matters

Throughout the book Hardy has used sin⁡x\sin x, cos⁡x\cos x and tan⁡x\tan x freely, taking school trigonometry on trust. But school trigonometry measures angles by arc length, and the length of a curved arc is a subtle notion (§163). §224 closes this gap. Hardy lists four ways of founding the circular functions on analysis alone, then carries out the one that copies the treatment of the logarithm: an integral defines the inverse function, and the function itself is obtained by inversion. The next lesson derives the addition formulae from these definitions alone.

The idea

The logarithm was the area under 1/t1/t; the exponential was its inverse. Do the same with the curve 1/(1+t2)1/(1+t^2). Its area from 00 to xx,

y(x)=∫0xdt1+t2,y(x) = \int_0^x \frac{dt}{1+t^2},

is what we have always called arctan⁡x\arctan x (§163, §221). The new step is to take it as the definition and to read everything else off it. Unlike the area under 1/t1/t, this area stays bounded as x→∞x \to \infty: the curve falls off like 1/t21/t^2. Twice its total is a number we have met before.

Explore An area that never exceeds a fixed bound

Try this. Drag the upper limit xx far to the right, then far to the left. Read off the area F(x)F(x) in the lower plot.

F(x)=∫ax11+t2 dtF(x) = \int_{a}^{x} \frac{1}{1+t^2}\,dt, a=0a = 0
tf(t)
xF(x)
  • f(t)
  • counts +
  • counts −
  • F(x)
  • x (drag)
F(2)=∫0211+t2 dt=1.1071F(2) = \int_{0}^{2} \frac{1}{1+t^2}\,dt = 1.1071. Slope of FF at xx: F′(x)=f(x)=0.2F'(x) = f(x) = 0.2.
What to notice

F(x)F(x) is odd, increasing and continuous, and it creeps up towards about 1.57081.5708 without reaching it, however far you go. That limit is 12π\tfrac12\pi, and Hardy now takes it as the definition of π\pi. Because FF is strictly increasing and continuous, every value between −12π-\tfrac12\pi and 12π\tfrac12\pi is reached at exactly one xx: there is an inverse function.

Precise statements

First, the four possible foundations Hardy surveys:

  1. Geometric. Translate the textbook definitions into analysis. One genuine difficulty remains: to attach a number to an arc (its length) or to a sector (its area). Hardy chose areas in §163.
  2. Power series. Define cos⁡x=1−x22!+x44!−…\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \dots and sin⁡x=x−x33!+…\sin x = x - \frac{x^3}{3!} + \dots, prove the addition formulae by multiplying series (as for exp⁡\exp in §223), and define 12π\tfrac12\pi as the unique zero of cos⁡\cos in (0,2)(0, 2). Natural for complex variables (Chapter X).
  3. Infinite product. Define sin⁡x=x(1−x2π2)(1−x24π2)(1−x29π2)⋯\sin x = x\bigl(1 - \frac{x^2}{\pi^2}\bigr)\bigl(1 - \frac{x^2}{4\pi^2}\bigr)\bigl(1 - \frac{x^2}{9\pi^2}\bigr)\cdots. Elegant, but it needs the theory of infinite products.
  4. Inverse functions by integrals. Hardy’s choice, carried out below.
Definition The inverse tangent, π\pi, and the tangent Hardy: §224 (1)–(3)

For every real xx let

y=arctan⁡x=∫0xdt1+t2,and define π by 12π=∫0∞dt1+t2.y = \arctan x = \int_0^x \frac{dt}{1+t^2}, \qquad \text{and define } \pi \text{ by } \quad \tfrac12\pi = \int_0^\infty \frac{dt}{1+t^2}.

The function x↦yx \mapsto y is continuous and strictly increasing from (−∞,∞)(-\infty, \infty) onto (−12π,12π)(-\tfrac12\pi, \tfrac12\pi). Its inverse is written x=tan⁡yx = \tan y.

Definition Cosine and sine Hardy: §224 (4)–(6)

For −12π<y<12π-\tfrac12\pi < y < \tfrac12\pi, with x=tan⁡yx = \tan y and the positive square root,

cos⁡y=11+x2,sin⁡y=x1+x2;\cos y = \frac{1}{\sqrt{1+x^2}}, \qquad \sin y = \frac{x}{\sqrt{1+x^2}};

and cos⁡12π=0\cos\tfrac12\pi = 0, sin⁡12π=1\sin\tfrac12\pi = 1. For all other yy, the three functions are defined step by step by

tan⁡(y+π)=tan⁡y,cos⁡(y+π)=−cos⁡y,sin⁡(y+π)=−sin⁡y.\tan(y + \pi) = \tan y, \qquad \cos(y + \pi) = -\cos y, \qquad \sin(y + \pi) = -\sin y.

The rules in the last line extend the definitions from (−12π,12π](-\tfrac12\pi, \tfrac12\pi] to (12π,32π](\tfrac12\pi, \tfrac32\pi], then to (32π,52π](\tfrac32\pi, \tfrac52\pi], and so on, and backwards to (−32π,−12π](-\tfrac32\pi, -\tfrac12\pi] and beyond.

Theorem What the definitions give Hardy: §224

cos⁡\cos and sin⁡\sin are defined and continuous on the whole real line, and have period 2π2\pi. tan⁡y\tan y is defined except at the points (k+12)π(k + \tfrac12)\pi, has period π\pi, and tends to +∞+\infty as yy approaches such a point from below and to −∞-\infty from above. Moreover cos⁡2y+sin⁡2y=1\cos^2 y + \sin^2 y = 1 everywhere, and tan⁡y=sin⁡y/cos⁡y\tan y = \sin y/\cos y wherever cos⁡y≠0\cos y \neq 0.

Explore From one area to three functions

Try this. Choose sin, and move yy slowly from 00 past 12π\tfrac12\pi and on to 3π3\pi. Watch the shaded area in the top plot and the dot in the bottom plot. Then switch to cos and to tan.

t1/(1+t²)
ysin
  • area ∫0xdt1+t2=y0\int_0^x \frac{dt}{1+t^2} = y_0
  • defined directly, −12π<y≤12π-\tfrac12\pi < y \le \tfrac12\pi
  • obtained from (6)
Function
y=2=y0+πy = 2 = y_0 + \pi with y0=−1.142y_0 = −1.142 in (−12π,12π](-\tfrac12\pi, \tfrac12\pi]. The area up to x=−2.185x = −2.185 is y0y_0, so tan⁡y0=−2.185\tan y_0 = −2.185, cos⁡y0=1/1+x2=0.4161\cos y_0 = 1/\sqrt{1+x^2} = 0.4161, sin⁡y0=−0.9093\sin y_0 = −0.9093. By (6) applied 1 time, sin⁡y=−sin⁡y0=0.9093\sin y = −\sin y_0 = 0.9093.
What to notice

Only the blue piece, over (−12π,12π](-\tfrac12\pi, \tfrac12\pi], comes from the integral. Every ochre piece is a copy of it shifted by a multiple of π\pi, with the sign flipped for sin and cos (definition (6)). As yy passes 12π\tfrac12\pi the upper limit xx runs off to +∞+\infty and reappears from −∞-\infty; yet sin and cos join up continuously at the seams, while tan jumps from +∞+\infty to −∞-\infty.

Proofs

Proof The definitions make sense
Strategy

Show that the integral defines an odd, continuous, strictly increasing function with limits ±12π\pm\tfrac12\pi, so that the inverse tan⁡\tan exists. Then check that the extension by (6) produces continuous cos⁡\cos and sin⁡\sin, the only delicate points being the seams (k+12)π(k+\tfrac12)\pi.

12π\tfrac12\pi is a finite number

The integrand is positive, and ∫0∞dt1+t2≤∫01dt+∫1∞dtt2=2\int_0^\infty \frac{dt}{1+t^2} \le \int_0^1 dt + \int_1^\infty \frac{dt}{t^2} = 2. A positive integrand with bounded integrals has a convergent infinite integral (§184), so π\pi is well defined (and π≤4\pi \le 4).

y(x)y(x) is odd, continuous and strictly increasing

It is an integral of a continuous positive function, so it is continuous, with derivative 1/(1+x2)>01/(1+x^2) > 0. Since the integrand is even, y(−x)=−y(x)y(-x) = -y(x). As x→±∞x \to \pm\infty, y→±12πy \to \pm\tfrac12\pi, and no value ±12π\pm\tfrac12\pi is attained.

The inverse exists

A continuous strictly increasing function has a continuous strictly increasing inverse (§110). So tan⁡y\tan y is defined, continuous and increasing on (−12π,12π)(-\tfrac12\pi, \tfrac12\pi), with tan⁡y→±∞\tan y \to \pm\infty as y→±12πy \to \pm\tfrac12\pi. Hence cos⁡\cos and sin⁡\sin, defined by (4), are continuous there.

Continuity at the seam y=12πy = \tfrac12\pi

From the left: as y→12π−0y \to \tfrac12\pi - 0, x→+∞x \to +\infty, so cos⁡y=1/1+x2→0\cos y = 1/\sqrt{1+x^2} \to 0 and sin⁡y=x/1+x2→1\sin y = x/\sqrt{1+x^2} \to 1, matching (5). From the right: for yy slightly above 12π\tfrac12\pi, (6) gives cos⁡y=−cos⁡(y−π)\cos y = -\cos(y - \pi) with y−π→−12π+0y - \pi \to -\tfrac12\pi + 0, where x→−∞x \to -\infty, so cos⁡(y−π)→0\cos(y - \pi) \to 0; similarly sin⁡y=−sin⁡(y−π)→−(−1)=1\sin y = -\sin(y - \pi) \to -(-1) = 1. Both one-sided limits equal the values at 12π\tfrac12\pi.

All other seams, and periodicity

Rule (6) only shifts by π\pi and changes sign, so continuity at every (k+12)π(k + \tfrac12)\pi follows from continuity at 12π\tfrac12\pi. Applying (6) twice gives cos⁡(y+2π)=cos⁡y\cos(y + 2\pi) = \cos y, sin⁡(y+2π)=sin⁡y\sin(y + 2\pi) = \sin y. Finally cos⁡2+sin⁡2=1+x21+x2=1\cos^2 + \sin^2 = \frac{1 + x^2}{1+x^2} = 1 and sin⁡/cos⁡=x=tan⁡\sin/\cos = x = \tan on the defining piece, and both identities survive (6), since (6) changes the signs of sin⁡\sin and cos⁡\cos together.

Hardy notes that the roles could be reversed: start from arcsin⁡x=∫0xdt1−t2\arcsin x = \int_0^x \frac{dt}{\sqrt{1-t^2}} on (−1,1)(-1, 1), define sin⁡\sin by inversion and 12π=∫01dt1−t2\tfrac12\pi = \int_0^1 \frac{dt}{\sqrt{1-t^2}}. Exercise 4 shows that this gives the same π\pi. The tangent is slightly more convenient because its integral is over the whole line and has no singular endpoint.

Worked examples and exercises

Exercise Even and odd ●○○ Hardy: §224

From the definitions, show that tan⁡\tan and sin⁡\sin are odd and cos⁡\cos is even on (−12π,12π)(-\tfrac12\pi, \tfrac12\pi), and that cos⁡(−12π)=0\cos(-\tfrac12\pi) = 0 and sin⁡(−12π)=−1\sin(-\tfrac12\pi) = -1, as evenness and oddness at the endpoint require.

Hint
arctan⁡\arctan is odd, so its inverse is odd. Then look at (4). For the endpoint use (6) with y=−12πy = -\tfrac12\pi.

Solution

Since y(x)y(x) is odd, so is its inverse: if tan⁡y=x\tan y = x then tan⁡(−y)=−x\tan(-y) = -x. In (4), replacing xx by −x-x leaves 1/1+x21/\sqrt{1+x^2} unchanged and changes the sign of x/1+x2x/\sqrt{1+x^2}, so cos⁡\cos is even and sin⁡\sin is odd on the open interval. At the endpoint, (6) with y=−12πy = -\tfrac12\pi gives cos⁡12π=−cos⁡(−12π)\cos\tfrac12\pi = -\cos(-\tfrac12\pi) and sin⁡12π=−sin⁡(−12π)\sin\tfrac12\pi = -\sin(-\tfrac12\pi); with (5) this means cos⁡(−12π)=0=cos⁡12π\cos(-\tfrac12\pi) = 0 = \cos\tfrac12\pi and sin⁡(−12π)=−1=−sin⁡12π\sin(-\tfrac12\pi) = -1 = -\sin\tfrac12\pi. Applying (6) repeatedly, the same symmetries hold on the whole line.

Exercise Derivatives from the definitions ●●○ Hardy: §224

Show that ddytan⁡y=1+tan⁡2y\dfrac{d}{dy}\tan y = 1 + \tan^2 y, ddysin⁡y=cos⁡y\dfrac{d}{dy}\sin y = \cos y and ddycos⁡y=−sin⁡y\dfrac{d}{dy}\cos y = -\sin y for −12π<y<12π-\tfrac12\pi < y < \tfrac12\pi, and explain why the last two then hold for all yy.

Hint
dy/dx=1/(1+x2)dy/dx = 1/(1+x^2), so by the inverse-function rule dx/dy=1+x2dx/dy = 1 + x^2. Then differentiate (4) with the chain rule.

Solution

Since dy/dx=1/(1+x2)>0dy/dx = 1/(1 + x^2) > 0, the inverse function has dx/dy=1+x2=1+tan⁡2ydx/dy = 1 + x^2 = 1 + \tan^2 y. Next,

ddysin⁡y=ddx(x1+x2)⋅dxdy=1(1+x2)3/2 (1+x2)=11+x2=cos⁡y,\frac{d}{dy}\sin y = \frac{d}{dx}\Bigl(\frac{x}{\sqrt{1+x^2}}\Bigr)\cdot\frac{dx}{dy} = \frac{1}{(1+x^2)^{3/2}}\,(1 + x^2) = \frac{1}{\sqrt{1+x^2}} = \cos y,

and ddycos⁡y=−x(1+x2)3/2(1+x2)=−sin⁡y\frac{d}{dy}\cos y = -\frac{x}{(1+x^2)^{3/2}}(1 + x^2) = -\sin y. Rule (6) shifts by π\pi and changes the signs of both sin⁡\sin and cos⁡\cos, so the relations persist on every interval ((k−12)π,(k+12)π)((k-\tfrac12)\pi, (k+\tfrac12)\pi). At the seams, sin⁡\sin and cos⁡\cos are continuous and their derivatives have matching one-sided limits, so (by the mean value theorem) the derivatives exist there too and the formulas hold.

Exercise The series route: cos⁡\cos changes sign in (0,2)(0, 2) ●●○ Hardy: §224 (ii)

With cos⁡x\cos x defined by 1−x22!+x44!−…1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \dots, show that cos⁡2<0\cos 2 < 0. (Together with cos⁡0=1\cos 0 = 1 and continuity, this gives a zero in (0,2)(0, 2), the starting point of method (ii).)

Hint
Group the series after the first two terms as (244!−266!)+(288!−21010!)+…\bigl(\frac{2^4}{4!} - \frac{2^6}{6!}\bigr) + \bigl(\frac{2^8}{8!} - \frac{2^{10}}{10!}\bigr) + \dots, or use the alternating series test.

Solution

The terms 22n/(2n)!2^{2n}/(2n)! are 1,2,23,445,2315,…1, 2, \frac23, \frac4{45}, \frac{2}{315}, \dots; from the second one on they decrease, since the ratio of consecutive terms is 4(2n+1)(2n+2)<1\frac{4}{(2n+1)(2n+2)} < 1 for n≥1n \ge 1. So cos⁡2=1−2+23−445+…\cos 2 = 1 - 2 + \frac23 - \frac4{45} + \dots is an alternating series whose terms decrease from 22 on, and its sum lies between consecutive partial sums: cos⁡2<1−2+23=−13<0\cos 2 < 1 - 2 + \frac23 = -\frac13 < 0. (In fact cos⁡2≈−0.416\cos 2 \approx -0.416.)

Exercise The sine route gives the same π\pi ●●● Hardy: §224 (end)

Show that the substitution t=u/1+u2t = u/\sqrt{1+u^2} turns ∫0xdt1−t2\int_0^x \frac{dt}{\sqrt{1-t^2}} into ∫0x/1−x2du1+u2\int_0^{x/\sqrt{1-x^2}} \frac{du}{1+u^2} for 0≤x<10 \le x < 1. Deduce that ∫01dt1−t2=∫0∞du1+u2\int_0^1 \frac{dt}{\sqrt{1-t^2}} = \int_0^\infty \frac{du}{1+u^2}, so that both routes define the same π\pi.

Hint
Compute dt/dudt/du and 1−t2\sqrt{1 - t^2} in terms of uu.

Solution

The map u↦t=u/1+u2u \mapsto t = u/\sqrt{1+u^2} is increasing from [0,∞)[0, \infty) onto [0,1)[0, 1), with inverse u=t/1−t2u = t/\sqrt{1-t^2}. We have dtdu=1(1+u2)3/2\frac{dt}{du} = \frac{1}{(1+u^2)^{3/2}} and 1−t2=11+u21 - t^2 = \frac{1}{1+u^2}, so 11−t2dtdu=1+u2⋅1(1+u2)3/2=11+u2\frac{1}{\sqrt{1-t^2}}\frac{dt}{du} = \sqrt{1+u^2}\cdot\frac{1}{(1+u^2)^{3/2}} = \frac{1}{1+u^2}. By the substitution rule the two integrals are equal. Letting x→1x \to 1, the upper limit x/1−x2→∞x/\sqrt{1-x^2} \to \infty, which gives the second statement. In the language of the definitions: arcsin⁡x=arctan⁡x1−x2\arcsin x = \arctan\frac{x}{\sqrt{1-x^2}}, as (4) predicts.

Check yourself

Check yourself Enter a number

Using only definitions (5) and (6), what is sin⁡32π\sin\tfrac32\pi?

Why

32π=12π+π\tfrac32\pi = \tfrac12\pi + \pi, so (6) gives sin⁡32π=−sin⁡12π\sin\tfrac32\pi = -\sin\tfrac12\pi, and (5) gives sin⁡12π=1\sin\tfrac12\pi = 1. Hence sin⁡32π=−1\sin\tfrac32\pi = -1.

Check yourself True or false?

Method (iv) still depends on the notion of the length of an arc of a circle.

Why

False. Method (iv) uses only an integral of a rational function, an infinite integral to define π\pi, inverse functions, and square roots. No length or area is mentioned. The connection with geometry (that the angle so defined is twice the sector area, or the arc length) is a theorem about the functions, not part of their definition.

Check yourself Choose one

Why must π\pi be defined in this approach, rather than simply used?

Why

Being irrational is no obstacle: so is ee. The integral converges (it is at most 22). The point is logical: the familiar definition of π\pi is geometric, and the whole aim is to found trigonometry without geometry. So π\pi gets an analytic definition, and the familiar properties of π\pi are then theorems.

Check yourself Choose one

Why does continuity of cos⁡\cos at 12π\tfrac12\pi need an argument at all?

Why

The definition is pieced together: formula (4) on the open interval, the value 00 at 12π\tfrac12\pi by decree, and shifted copies beyond. A function defined piecewise can jump at the joins, so one must check that the limits from both sides equal the assigned value. They do, which is why (5) is the right choice. tan⁡\tan is not continuous there; it is not even defined.

Hardy’s language

There is a fourth method which is preferable here, since it follows the same lines as our treatment of the logarithmic function earlier in this chapter.

— G. H. Hardy, §224

Summary

Summary
  • Trigonometry can be founded without lengths: define arctan⁡x=∫0xdt/(1+t2)\arctan x = \int_0^x dt/(1+t^2) and 12π=∫0∞dt/(1+t2)\tfrac12\pi = \int_0^\infty dt/(1+t^2).
  • tan⁡\tan is the inverse of arctan⁡\arctan on (−12π,12π)(-\tfrac12\pi, \tfrac12\pi); cos⁡y=1/1+tan⁡2y\cos y = 1/\sqrt{1+\tan^2 y}, sin⁡y=tan⁡y/1+tan⁡2y\sin y = \tan y/\sqrt{1+\tan^2 y} there.
  • The rules tan⁡(y+π)=tan⁡y\tan(y+\pi) = \tan y, cos⁡(y+π)=−cos⁡y\cos(y+\pi) = -\cos y, sin⁡(y+π)=−sin⁡y\sin(y+\pi) = -\sin y extend them to all yy; cos⁡\cos and sin⁡\sin stay continuous across the seams, tan⁡\tan jumps.
  • Other foundations (geometry, power series, infinite product, arcsin⁡\arcsin as an integral) give the same functions; Hardy’s choice mirrors log⁡\log and exp⁡\exp.