Field

Analysis — page 5

Limits, curves, and what happens when the going does not stop.
Where the samples go matters more than how many. n=10: trap -2.65, simp -1.70, cc -1.74, gauss -2.07; n=20: trap -3.69, simp -3.35, cc -3.89, gauss -4.21; n=40: trap -4.31, simp -7.10, cc -8.16, gauss -8.51; n=80: trap -4.93, simp -8.28, cc -14.49, gauss -15.26

Where to take the samples

Every numerical integral is a weighted sum of samples of the curve. Spacing the samples evenly gives errors that shrink like a power of their number; choosing where they go, as Gauss did in 1814, makes six samples exact for every polynomial up to degree eleven and turns the power into a geometric rate. The surprise is that the humble trapezoid rule, evenly spaced and exact only for straight lines, does the same thing on any smooth curve that goes once round a circle — and that a single corner defeats every one of them.

Three angles with one tripled sine. roots of 4x^3 - 3x + sin3°: 0.017452406437, 0.857167300702, -0.874619707139.

The sine of one degree

Every table of sines ever made by hand needed the sine of one degree, and no construction with ruler and compass can produce it: one degree is a third of three, and thirds are what the constructions cannot make. Ptolemy fenced it in with an inequality and got it right to the precision his table carried. Thirteen centuries later Jamshīd al-Kāshī wrote the triple-angle formula as a rule for improving a guess and let it run, gaining almost three decimal places at every turn — a cubic solved without Cardano, by doing the same thing again.

Two thinned harmonic series that never stop growing. every n: 10d 23.603067, 40d 92.680619, 120d 276.887427; no digit 9: 10d 15.109789, 40d 22.589564, 120d 22.920604; as many 7s as 3s: 10d 11.327995, 40d 24.391523, 120d 43.428896; digit sum a prime: 10d 7.156214, 40d 21.096266, 120d 51.331792

A rule that counts lets the sum escape

Strike out every number containing a 9 and the harmonic series converges, to 22.92. Keep only the numbers with as many 7s as 3s and it diverges — slowly, like the square root of the number of digits. Ask for two such balances and it still diverges; ask for three and it converges. The dividing line is Pólya's theorem that a random walk comes home in one and two dimensions and not in three.

A set's share of a shrinking window, at three points. a point of the set x=0.33155689: density at r=1e-1 0.5633, 1e-3 0.9885, 1e-5 0.99695; the middle of a gap x=0.07812500: density at r=1e-1 0.6250, 1e-3 0.0000, 1e-5 0.00000; the end of a gap x=0.07031250: density at r=1e-1 0.6250, 1e-3 0.4971, 1e-5 0.49998

No set fills half of every interval

A fat Cantor set has length one half and contains no interval, so every interval holds some of it and some of its gaps. Look closely at any one point, though, and the window around it ends up almost all set or almost all gap. Lebesgue proved in 1910 that this is forced for every set with a length: the share of a shrinking window is 0 or 1 almost everywhere. So no set can fill exactly half of every interval, however it is built.

Three series for Catalan's constant and how fast they arrive. Log10 errors after 1 to 60 terms: plain series -4.46, Euler transform -18.53, Ramanujan series -39.46.

The sum after Leibniz's, made geometric

Leibniz's series adds the reciprocals of the odd numbers with alternating signs and gives π/4. Square the odd numbers and the same pattern gives Catalan's constant, 0.915965…, about which almost nothing is known — not even whether it is a fraction. A formula of Ramanujan's turns its slow series into one whose terms shrink by a factor of four, which makes a thousand decimals cheap, and the decimals and continued fraction then say exactly how much digits can settle and where they stop.

The cost of running a computation backwards with a few stored states. Minimal recomputation to reverse chains of length up to 200 with 1, 2, 3, 4, 6 slots; at length 200: 1: 19900, 2: 2470, 3: 1305, 4: 948, 6: 680.

Running a computation backwards with little memory

The reverse sweep that gives a whole gradient for the price of a few evaluations needs the computation's intermediate states in reverse order, and storing them all can cost more memory than the machine has. Keep only a few and recompute the rest, and the cheapest schedule has an exact answer found by Andreas Griewank in 1992: with c stored states and no step run more than r times, the longest chain that can be reversed is the binomial coefficient C(c + r, c). Pascal's triangle is the table of what memory buys.

Which powers can reach x. Square-integral distance from x to the span of chosen powers, by count of powers: even 5.607e-9; primes 1.165e-4; squares 9.053e-2; powers 3.497e-2; limit for squares 0.090525.

Which powers of x are enough

Every continuous function on an interval is nearly a polynomial, and it seems that all the powers of x should be needed for that. They are not. The even powers will do, and so will the primes, though the primes run out at a rate of one number in ln n. The squares will not: however many are combined, they stay 0.0905 away from x itself. The dividing line, found by Müntz in 1914, is whether the reciprocals of the powers add up to infinity.

Four walls that stop every line through a square. Opaque barriers for the unit square, all verified over 1440 directions: three sides 3.00000; two diagonals 2.82843; Steiner tree on all four 2.73205; three corners and a stub 2.63896.

The shortest wall that stops every line

A straight cable runs somewhere under a square field, and a trench has to find it for certain. Three sides of the field will do, at length 3. Two diagonals cost 2.83, and a Steiner tree 2.73. The best trench known has length 2.6390 and comes in two pieces that do not touch. Averaging over lines proves nothing shorter than 2 can work, and in over a century the gap between the two numbers has hardly moved.

Root two, raised to itself for ever. The cobweb of x to the power of root two from 1: 1.00000, 1.41421, 1.63253, 1.76084, 1.84091, 1.89271, 1.92700, settling on 2; the other solution 4 repels, with slope ln 4.

Root two, raised to itself for ever

Stack √2 to the power √2 to the power √2 without end and the tower settles at exactly 2. Solve the equation for a tower equal to 4 and √2 appears again, and that answer is false. The bases that give a limit run from e^(−e) to e^(1/e), the slope at the crossing decides everything, and a sum over labelled trees turns out to be the same number.

A table with harmonic rows. The Hilbert table of size 8 and its largest stretch 1.6959390, against pi.

A table that never reaches π

Fill a square table with 1/1, 1/2, 1/3 along the rows, each row starting one place further on. Every row is a piece of the harmonic series, and yet the table stretches no vector by as much as π. At a thousand rows the stretch is 2.42, at a trillion it is near 2.94, and one integral explains both the number and the failure to arrive.

Rebuilding a ball at its own centre. Fourier inversion of the indicator of the unit segment, disc and ball, keeping frequencies below R, evaluated at the centre: at R = 8 the values are 0.9873, 0.9206, 0.9873; in three dimensions at R = 7.75 it is 1.6369.

A ball rebuilt everywhere but its centre

Rebuild a solid ball from its frequencies, keeping those below a cut-off, and read the result at the centre, where the ball is perfectly smooth. In the plane the answer settles on 1. In space it swings between 0.36 and 1.64 for ever, because the whole surface of the ball is the same distance from the centre and its jump arrives there in step.

The curve whose bending grows with its length. Euler's spiral, curvature equal to arc length, for s from −7 to 7, winding into ±(0.88623, 0.88623).

The curve that bends as far as it has gone

Say how sharply a curve bends at each distance along it, and the curve is fixed. Bending in proportion to distance gives Euler's spiral, whose arms are infinitely long and end a finite distance away. Bending that repeats decides at once whether the curve ever closes, and taken in steps the spiral is a Gauss sum.

Hilbert's polygons, stage by stage. Hilbert's polygons at stages 1, 2, 3 and 6, each visiting the centres of 4, 16, 64 and 4,096 squares in order, from the bottom-left corner to the bottom-right.

A path that fills a square

A pen moving continuously for one unit of time can pass through every point of a square. Hilbert's polygons, each threading four times as many squares as the last, move no point more than 0.4507 × 2⁻ⁿ from where the previous one put it — and that one estimate, through the theorem that uniform limits stay continuous, is the whole proof. What the limit pays is exactness of a kind: it repeats some points four times, and its points can never be closer than the square root of their parameters allows.

4 bugs chasing one another. n=4: path length 0.999988 simulated, 1.000000 exact.

Four bugs, one side each, and infinitely many turns

Four bugs sit at the corners of a square and each walks straight at the next. They spiral into the centre, circling it infinitely often, and yet each walks exactly one side of the square — no more. A curve can turn through an infinite angle and still have a finite length, and the pursuit shows why: every quarter-turn is the same picture shrunk by a fixed factor, so the turns go on for ever while their lengths add up like a geometric series.

Two areas that are sums of n^(−n). int x^-x = 1.29128599706266; int x^x = 0.78343051071213

An area that is a sum of n to the minus n

The area under the curve x to the power minus x, between 0 and 1, is 1 + 1/4 + 1/27 + 1/256 + …, the sum of 1/n^n. Johann Bernoulli found it in 1697, and it is called the sophomore's dream because it looks like the mistake of a student who integrates term by term without checking — except that it is true. The proof expands the exponential into layers, each with an exact area, and every layer peaks at the same point, 1/e. The peaks hold Stirling's formula, and seven terms of the series beat a thousand samples of the curve.

Five hundred thousand terms of Leibniz's series. S = 3.141590653589793240462643383269502884197291399375103050974944; wrong at 6,17,18,29,40,41,42,51,52,53

The digits a slow series gets wrong

Leibniz's series 4(1 − 1/3 + 1/5 − …) is notoriously slow: after 500,000 terms it is off by two millionths, so its sixth decimal is wrong. But the seventh to sixteenth decimals are right, and so are most of the next forty; of the first sixty only ten are wrong, at isolated places. The error is 2/10⁶ − 2/10¹⁸ + 10/10³⁰ − 122/10⁴² + 2770/10⁵⁴ − …, and the numbers 1, 1, 5, 61, 1385 are the Euler numbers, the coefficients of the secant. The series has not become fast. Its error has a structure, a half-million is a round number, and an integral with a hyperbolic cosine in it explains both.

Every pair with x to the y equal to y to the x. curve through (e,e) slope -1.000; rational t=1,2,3: 2.0000/4.0000 2.2500/3.3750 2.3704/3.1605

Two to the four is four to the two

Exponentiation does not commute — 2³ is 8 and 3² is 9 — but 2⁴ and 4² are both 16. Every unequal pair with x^y = y^x lies on one curve, which crosses the diagonal at (e, e) and is traced by the two compound-interest approximations to e, one from below and one from above. Its rational points are exactly the whole values of the parameter, so 2 and 4 are the only whole numbers that commute, and the hump of ln t / t settles e^π against π^e in one line.

A square wheel on a road of arches. n=4: road -cosh x, arch half-width 0.88137, depth 0.41421; least clearance 0.0e+0

A square wheel rolls on a road of hanging chains

A square can roll as smoothly as a circle, its axle never rising or falling, if the road is right. The road is a row of upside-down hanging chains, each exactly one side long, because rolling without slipping is a statement about arc length. Two facts force that shape: the point of contact must lie straight below the axle, and the depth of the road must equal its own steepness. A triangle cannot roll on its version of the road, and four sides is the fewest that can.

All essays