How many answers

Every rational gear ratio has a degree

Mesh a gear on each crank of a five-bar and the pin where its couplers meet draws a closed curve at every rational ratio. Its degree is 6 at 1 to 1, 16 at 3 to 2, 68 at 13 to 8 and 178 at 34 to 21: four times the larger term of the ratio plus twice the smaller, read off the span of one polynomial in one variable. Along the golden ratio's convergents the degree grows by the golden ratio at each step, and at the golden ratio itself no fit finds any.

Assumes One freedom, and a motion that never repeats and Nine times through each circular point.

One freedom, and a motion that never repeats put a gear on each crank of a five-bar and asked whether the machine ever comes home. At a ratio of 3 to 2 it is back after two input turns; at 37 to 23 after twenty-three; at the golden ratio never. Its closing section asked the next question about the same machine. When the motion does close, the pin where the two couplers meet draws a closed curve, and that curve is algebraic, the zero set of some polynomial. What degree does the polynomial have, and how does it grow with the ratio?

That essay proposed answering it with fits of rising degree. A fit is one of three instruments used here, and the weakest. The answer comes from counting, twice over, and it turns out to be a formula: at ratio p : q in lowest terms the pin’s curve has degree 4·max(p, q) + 2·min(p, q).

The closed path of a geared five-bar's pin at four gear ratiosA five-bar with two cranks of length 1 on pivots 3 apart, couplers 3 and 2.5, and a gear on each crank, drawn over one whole cycle at ratios 1 : 1, which closes after 1 input turn; 2 : 1, which closes after 1 input turn; 3 : 2, which closes after 2 input turns; 5 : 3, which closes after 3 input turns. Both assembly branches of the coupler pin are drawn, one in each colour. The curves they make together have degree 6, 10, 16, 26.1 : 1degree 62 : 1degree 103 : 2degree 165 : 3degree 26
Fig. 1 The geared five-bar’s pin over one whole cycle at ratios 1 : 1, 2 : 1, 3 : 2 and 5 : 3, with both assembly branches drawn. The curves have degree 6, 10, 16 and 26.

One turn of a smaller angle

The machine is the one the closing essay built: two cranks of length 1 on pivots 3 apart, couplers of 3 and 2.5 meeting at a pin, and gears that make the second crank turn k times as fast as the first, the other way. With k = p/q in lowest terms, the input turns q times while the output turns p times, and then the machine is home.

That suggests the variable to write it in. Let the input angle be qφ and the output angle be a fixed offset less pφ. As φ goes once round from nought to a full turn the input makes q turns and the output p, so one turn of φ is exactly one cycle, and every configuration of the cycle is reached once. The crank pins’ coordinates are cosines and sines of qφ and pφ, which are polynomials in cos φ and sin φ of degrees q and p. The pin is fixed by two circle conditions about the crank pins. Everything is a polynomial in four unknowns, cos φ, sin φ and the pin’s two coordinates, with the identity cos2φ+sin2φ=1\cos^2\varphi + \sin^2\varphi = 1 tying the first two together.

So the curve is algebraic at every rational ratio, and the question of its degree is well posed. At an irrational ratio there is no such variable, since no angle turns a whole number of times while both cranks do, and the motion never closes.

Both of the pin’s positions are drawn in the figure, one per colour. For each pair of crank angles the two couplers can meet on either side of the line joining the crank pins, and a polynomial cannot choose between the two, so the curve whose degree is being asked is both branches together, exactly as a four-bar’s coupler sextic is both assemblies’ ovals.

A tracker that stops at five to three

The first instrument is the one the curve nobody eliminates used on a six-bar: cut the curve with a random complex line and count where the pin can be. The four polynomial equations and the line condition are handed to homotopy continuation, which tracks one path for each solution of a start system with the same degrees.

The degrees are worth keeping small. Written naively, the circle about the first crank pin has degree 2q, because the pin’s squared distance from its pivot comes out as a polynomial of that degree even though it is always 1. On the unit circle it is 1, so it can be replaced by 1 before the system is written, and likewise for the second crank. That leaves equations of degree 2, q + 1, p + 1 and 1, and a Bézout number of 2(p + 1)(q + 1): 8 paths at 1 : 1, 24 at 3 : 2, 252 at 13 : 8.

The pin's degree at each convergent, by the tracker and by the roots of one polynomial. For the golden ratio's convergents, the geared five-bar's pin curve cut by one random complex line. The homotopy tracker, with Bézout number 2(p + 1)(q + 1), and the roots of the one Laurent polynomial F left after eliminating the pin. 1 : 1: 8 paths, 0 stalled, 6 points; 6 roots of F. 2 : 1: 12 paths, 0 stalled, 10 points; 10 roots of F. 3 : 2: 24 paths, 0 stalled, 16 points; 16 roots of F. 5 : 3: 48 paths, 22 stalled, 24 points; 26 roots of F. 8 : 5: 108 paths, 67 stalled, 31 points; 42 roots of F. 13 : 8: 252 paths, 181 stalled, 40 points; 68 roots of F. 21 : 13: not tracked; 110 roots of F. 34 : 21: not tracked; 178 roots of F. The roots of F number 4·max(p, q) + 2·min(p, q) at every ratio; the tracker agrees to 3 : 2 and counts short from 5 : 3, where its paths start to stall.
Fig. 2 The pin curve’s degree at each convergent of the golden ratio, from the homotopy tracker and from the roots of one polynomial in one variable, both on the same random complex line, beside 4·max(p, q) + 2·min(p, q).

At 1 : 1 the tracker’s 8 paths give 6 points. At 2 : 1, 12 paths give 10, and at 3 : 2, 24 give 16; every path either arrives or leaves for infinity, and none stalls. From 5 : 3 on it does not finish. Of 48 paths, 22 stall, and the arrivals give 24 points. At 8 : 5, 67 of 108 stall and the count is 31; at 13 : 8, 181 of 252 stall and the count is 40.

A stalled path is one whose step size shrank below its floor before it reached the end, and a count made with stalled paths is a lower bound, since every missing path could have been a meeting. The tracker has run out of reach, and the paths that leave explained the likely reason: surplus paths heading for solutions at infinity of high multiplicity approach them slowly and look, to a step-size rule, exactly like paths in trouble. From 5 : 3 on, the tracker alone cannot say what the degree is.

One polynomial in one variable

The second instrument removes the tracking altogether, and it comes from the coordinates nine times through each circular point used to explain circularity.

Write positions as Z = x + iy and Z̄ = x − iy, treated as independent, and write the angle as w=eiφw = e^{i\varphi}. The first crank pin is then r1wqr_1 w^{q} and its partner coordinate is r1wqr_1 w^{-q}; the second crank pin is the pivot’s position plus a constant times wpw^{-p}, and its partner has wpw^{p}. Every pin coordinate is a Laurent monomial in the single variable w, a power that may be negative.

The pin is on both circles. Each circle condition is a product of a Z-difference and a Z̄-difference, and subtracting one from the other cancels the pin’s own ZZ̄ and leaves an equation linear in Z and Z̄. A line is another linear equation, aZ + bZ̄ + c = 0. Two linear equations fix Z and Z̄ by Cramer’s rule, each as a ratio of Laurent polynomials in w, and putting them back into the first circle condition leaves one Laurent polynomial F(w) whose roots are the configurations with the pin on the line.

A polynomial in one variable has exactly as many roots as its degree, and they can be found all at once. The Aberth iteration takes every root of F simultaneously, with no deflation. Each root is then checked against the machine rather than against F: the pin it gives is put back into both circle conditions and the line, and the worst relative residual over every root at every ratio is 3.9 × 10⁻¹³. Every root is a configuration, and at a random line every configuration gives a distinct point.

The roots agree with the tracker at 1 : 1, 2 : 1 and 3 : 2, where it finished, and go on where it could not: 26 at 5 : 3, 42 at 8 : 5, 68 at 13 : 8, 110 at 21 : 13 and 178 at 34 : 21. The largest is a polynomial of degree 178 in one variable, and every one of its roots gives a pin on the line.

The span is the degree

A Laurent polynomial that runs from wmw^{-m} to wnw^{n} is wmw^{-m} times an ordinary polynomial of degree m + n, so it has m + n nonzero roots. The degree of the curve is therefore the span of F’s exponents, and the span can be read off the pieces F is built from without solving anything.

The powers of w in each piece of the condition, at 3 : 2. At gear ratio 3 : 2, with w = exp(iφ) running once round the cycle, the lowest and highest power of w carried by each piece of the condition that a pin on a random complex line satisfies. crank pin A: w^2 to w^2; its conjugate Ā: w^-2 to w^-2; crank pin B: w^-3 to w^0; its conjugate B̄: w^0 to w^3; determinant: w^-3 to w^3; Z − A, times the determinant: w^-3 to w^5; Z̄ − Ā, times the determinant: w^-5 to w^3; l₁² times the determinant squared: w^-6 to w^6; the condition F: w^-8 to w^8. F runs from w^-8 to w^8, a span of 16, and so has 16 nonzero roots, each a place the pin is on the line.
Fig. 3 The lowest and highest powers of w in each piece of the condition at gear ratio 3 : 2, on a random complex line: the crank pins and their partners, the determinant, the two factors and the determinant’s square, and the condition F.

At 3 : 2, the first crank pin is w2w^{2} and its partner w2w^{-2}; the second is a constant plus w3w^{-3} and its partner a constant plus w3w^{3}. The determinant of the two linear equations mixes both and runs from w3w^{-3} to w3w^{3}. The first factor of F, the pin’s Z less the crank pin’s, multiplied through by the determinant, runs from w3w^{-3} to w5w^{5}, and the second from w5w^{-5} to w3w^{3}. Their product runs from w8w^{-8} to w8w^{8}, while the determinant’s square only reaches w6w^{-6} to w6w^{6} and cannot cancel the ends. F spans sixteen.

The same bookkeeping in general, with q the larger of the two: the first factor reaches w2qw^{2q} through the crank pin times the determinant and wpw^{-p} through the second pin, the second factor mirrors it, and the product spans 2(2q + p). That is 4·max(p, q) + 2·min(p, q), and at every one of the eight ratios the roots found number exactly that. The argument needs the two extreme coefficients not to vanish, which a special machine could arrange and a random line does not; the eight counts are the check that this machine is not special.

The formula makes the growth along the golden ratio’s convergents explicit. Each convergent’s numerator and denominator are consecutive Fibonacci numbers, so each degree is four times one Fibonacci number plus twice the one before, and the sequence 6, 10, 16, 26, 42, 68, 110, 178 is itself a Fibonacci sequence. Each degree is the sum of the two before it, and the ratio of successive terms is 1.618 by 110 to 178. The motion that comes nearest to closing at those turns does so on curves whose degree grows without bound.

The real roots are the drawing

The roots of F live in the complex w-plane, and the drawing lives on its unit circle, since a real angle φ is a w of modulus one. A real line across the drawn curve should therefore meet it at exactly the roots that lie on that circle.

A real line across the 3 : 2 curve, and the same meetings as roots of F. Left: the 3 : 2 curve, both branches, crossed by the real line cos 0.3 · x + sin 0.3 · y = 1.8 at 8 points, 4 on one branch and 4 on the other. Right: the 16 roots of F in the complex plane of w, with the unit circle. 8 lie on the circle, where w = exp(iφ) with φ real, and those are the real configurations; the other 8 are complex meetings no drawing shows.
Fig. 4 Left: the 3 : 2 curve, both branches, crossed by a real line, with its crossings marked. Right: the roots of F for the same line in the complex w-plane, with the unit circle; the roots on the circle are marked the same way.

The line cos 0.3 · x + sin 0.3 · y = 1.8 crosses the 3 : 2 curve at eight places, four on each branch. F for that line has sixteen roots, the degree, and eight of them lie on the unit circle to seven decimal places. The other eight are scattered inside and outside it, at complex angles, and are the meetings no drawing shows.

The same line was checked at five ratios. At 1 : 1 it crosses twice on each branch and F has four roots on the circle; at 2 : 1, four and two crossings and six roots; at 3 : 2, eight and eight; at 5 : 3, six and eight crossings and fourteen roots; at 8 : 5, ten and ten and twenty. Every count of roots on the circle equals the crossings of both branches together, found separately by stepping along the traced curve and watching for a change of side. The polynomial’s roots and the machine’s drawing are the same set, and neither branch alone accounts for them.

What a fit can see, and at the golden ratio

The third instrument is the one the closing essay proposed: trace the curve, fit polynomials of rising degree, and see where a null space opens. A null space of fifteen is not noise set out what such a fit reports and when to believe it, and one of its findings matters here: one piece of a curve decides far less than the whole. So both branches are traced.

What an implicit fit finds on the geared pin's curve, and at the golden ratio. Implicit fits in a Chebyshev basis to points traced on both branches of the pin's curve, at degrees below, at and above the degree the roots of F give, and at the golden ratio over twenty input turns. 1 : 1, 1442 points: degree 5, null space 2 behind 2.8, degree 6, null space 1 behind 4.9·10¹², degree 7, null space 3 behind 5·10¹¹; 2 : 1, 1442 points: degree 9, null space 1 behind 3.1, degree 10, null space 1 behind 10¹⁰, degree 11, null space 3 behind 3.1·10⁹; 3 : 2, 2882 points: degree 14, null space 2 behind 5.3, degree 16, null space 1 behind 3.9·10⁶; golden, 20 turns, 3602 points: degree 6, null space 2 behind 2, degree 10, null space 2 behind 2.6, degree 14, null space 2 behind 3.4. Each rational curve is named at its degree and its three multiples at the next; at the golden ratio no drop reaches one decade.
Fig. 5 Implicit fits to both branches of the pin’s curve at degrees below, at and above the degree the roots give, for 1 : 1, 2 : 1 and 3 : 2, and at the golden ratio over twenty input turns.

At 1 : 1, 1,442 points on both branches give nothing at degree five, whose largest drop is 2.8; one curve at degree six behind a drop of 4.9 × 10¹²; and three at degree seven behind 5.0 × 10¹¹, the sextic times the three polynomials of degree one. At 2 : 1 the fit finds nothing at nine, one at ten behind 1.0 × 10¹⁰, and three at eleven. At 3 : 2, with 2,882 points, degree fourteen gives nothing and degree sixteen gives one curve behind 3.9 × 10⁶.

The drops fall as the degree rises, twelve decades at six, ten at ten, six at sixteen, and that is the fit approaching its reach rather than the curve changing character. At 5 : 3 the fit would need 378 coefficients, and the figure does not attempt it. The Stephenson arm curve was out of a fit’s reach at degree eighteen, with every real configuration traced; this curve is still inside it at sixteen, and two degrees and two different curves are not enough to say where the reach ends or what sets it.

At the golden ratio the fit is given 3,602 points over twenty input turns, both branches. At degree six its largest drop is 2.0, at ten it is 2.6, and at fourteen it is 3.4. No polynomial of degree fourteen or less comes anywhere near vanishing on the pin’s path. That is what the counting predicts: there is no finite degree to find, since the convergents’ degrees already pass fourteen at 3 : 2, and the pin’s path over many turns fills an area, as the closing essay measured, rather than lying on any curve.

A gear passes the circular points less often than a pin

The circularity essay found that every curve drawn by a machine made only of pins passes through each circular point half its degree times, and gave the reason: every bar is a Z-difference times a Z̄-difference, and nothing in such a machine mixes the two otherwise. A slide broke the rule by tying a pin’s Z to its own Z̄. A gear ties something too, and the same instrument, a line through a circular point, measures what.

How often a geared curve passes through the circular points. The geared five-bar's pin curve cut by a line through each circular point, counted by the genuine roots of F. 1 : 1: degree 6, 4 and 4 finite meetings, circularity 2, half the degree 3; 2 : 1: degree 10, 6 and 6 finite meetings, circularity 4, half the degree 5; 3 : 1: degree 14, 8 and 8 finite meetings, circularity 6, half the degree 7; 3 : 2: degree 16, 10 and 10 finite meetings, circularity 6, half the degree 8; 5 : 2: degree 24, 14 and 14 finite meetings, circularity 10, half the degree 12; 5 : 3: degree 26, 16 and 16 finite meetings, circularity 10, half the degree 13; 8 : 5: degree 42, 26 and 26 finite meetings, circularity 16, half the degree 21. The circularity is 2·max(p, q) at every ratio, short of half the degree by min(p, q). On these lines F also has p + q roots that give no pin, where the two crank pins coincide. The homotopy tracker counts the same finite meetings at 1 : 1, 2 : 1, 3 : 1, 3 : 2.
Fig. 6 The geared five-bar’s pin curve cut by a line through each circular point, at seven ratios: the degree, the finite meetings through each point, the circularity, half the degree, and the roots of F that give no pin.

A line through a circular point is aZ + c = 0 or bZ̄ + c = 0, and the polynomial route handles it with one extra care. With b nought, F acquires a factor of the second crank pin’s coordinate less the first’s, and its p + q roots are the angles at which the two crank pins’ Z-coordinates coincide, where subtracting the circles decides nothing and no pin is given. Those roots fail the check against the machine and are set aside: exactly p + q of them at every ratio, through either point.

The genuine roots then number 2(p + q) through each circular point: 4 at 1 : 1, 6 at 2 : 1, 8 at 3 : 1, 10 at 3 : 2, 14 at 5 : 2, 16 at 5 : 3 and 26 at 8 : 5. The tracker, run on the same lines at the first four ratios, gives 4, 6, 8 and 10, with three and six paths stalled at 3 : 1 and 3 : 2 and the counts unaffected. So the circularity is the degree less 2(p + q), which is 2·max(p, q): 2 at 1 : 1 where half the degree would be 3, and 16 at 8 : 5 where half would be 21. The curve falls short of half its degree at each circular point by min(p, q).

The reason is visible in the Laurent monomials. The first crank pin’s Z is a positive power of w, and the second crank pin’s Z is a negative power. As w grows, the first pin’s Z runs off while its Z̄ shrinks, which is the pin behaviour, but the second pin does the opposite at the same time: its Z̄ grows and its Z settles. The mesh has tied the Z-side of one crank to the Z̄-side of the other, which is exactly the separation the pin argument depended on. Some of the curve’s meetings with the line at infinity are then pulled away from the circular points, and min(p, q) of them at each.

Eight ratios, one machine, external gears

The degree formula is argued from the exponents and checked at eight ratios on one machine. The argument assumes F’s two extreme coefficients are nonzero. For a machine with special lengths, or a gear offset that puts the crank pins in a special phase, they could vanish and the degree drop; no such machine is surveyed.

The circularity 2·max(p, q) is measured, not derived. Seven ratios agree with it and the reason given is a direction, not a count. Why the shortfall is exactly min(p, q) is not shown.

Only external gears. The cranks here turn in opposite senses. An internal gear, or a belt, turns them the same way, which changes the signs of the exponents on the second crank pin, and neither the degree nor the circularity of that machine is measured.

The tracker’s stalls are not diagnosed. They are consistent with slow paths to solutions at infinity, and a projective formulation or an endgame at the end of each path might reach 13 : 8. That would be a better tracker, not a different answer: the roots of F already give the count.

What comes next: the same gears turning the same way

The same gears turning the same way. With an internal mesh the second crank’s angle is the offset plus pφ, its pin’s Z carries wpw^{p} and its partner wpw^{-p}, so both crank pins’ Z-coordinates would grow together as w does, as a pin machine’s do. The span argument gives that machine’s degree from its pieces in a few lines, and the circularity instrument would say whether a co-rotating gear keeps the half that a counter-rotating one loses.

How many double points the geared curve spends at infinity. A curve of degree 16 passing six times through each circular point uses thirty of its double points there. The configuration curve here is a double cover of a circle, since each φ has two branches, and its genus is set by where the two branches meet. Counting those branch points, as never three circuits did for the six-bars, would give the genus and so the number of finite double points the 3 : 2 curve must have, a number the drawing can partly check by its visible crossings.

The fit’s reach, measured on one family. The drops at the true degree were twelve, ten and six decades at 6, 10 and 16. A family whose degree can be dialled in steps of one would show the reach of a double-precision fit as a single number, the degree at which the drop stops reaching rounding, and whether that number depends on the curve or only on the count of coefficients.

What this makes readable

Essays that name this one as a prerequisite.

About the same objects

Not linked from either essay — found by the objects both name.

What links here

Essays that link to this one from their own argument.

The objects this essay names

Each one links to every other essay that touches it.

Circular pointsContinued fractionDegreeGear ratioGeared five-barHomotopy continuationImplicit equationWitness set