Out of the plane

When the link lengths are angles

Put every axis of a four-bar through one point and the mechanism lives on a sphere. Its bars become arcs, its lengths become angles, and every planar result carries over with a sine where a length used to be — including Grashof's condition, which still predicts exactly which link goes all the way round.

Assumes Six freedoms, not three and The joint that is not constant velocity.

The universal joint has been on this site since the expansion phase, described as a closed loop of four revolute joints whose axes all pass through one point. Kutzbach counts it at minus two; it turns; and its output angle runs ahead of and behind its input in a way that has been quietly costing driveline engineers effort for two centuries.

It was introduced as a curiosity of the spatial count. It is not a curiosity. It is a member of a family — arguably the family, since it is the only one of the classical spatial linkages that requires no special condition at all — and this essay is about the family.

A spherical four-bar: 90°, 40°, 100°, 80°Four revolute axes, all through one point, so the linkage lives on a sphere. Its link "lengths" are the angles between consecutive axes — 90°, 40°, 100°, 80° — and the arcs drawn between the axis directions measure 40.00°, 100.00°, 80.00°, 90.00°. The whole planar four-bar theory carries over with sines where lengths were, including Grashof's condition: sorted, the arcs give s + l = 140° against p + q = 170°, so the shortest arc does turn all the way round — and swept, the input reaches 36 of 36 positions over a driveable range of 360°. This is the mechanism a universal joint is a special case of, with two of the four arcs at 90°.arcs 40°, 100°, 80°, 90°every axis through the centre
Fig. 1 A spherical four-bar with arcs of 90, 40, 100 and 80 degrees. Every axis passes through the centre, so the joints live on a sphere and the bars between them are great-circle arcs. Drag the input: the four arcs are the link lengths and they hold at every position, which is what the figure checks before it draws anything.

What is fixed and what is free

Take four revolute axes and make them all pass through one point. Every joint then rotates about a line through that point; every link is a rigid body one of whose points is pinned to the centre; and the whole mechanism is confined to spherical motion.

That is a subgroup of the rigid displacements, and by the previous essays’ argument the consequences follow without further work. The screw system is the three-dimensional space of rotations about the centre, at every position, for every set of dimensions. The reciprocal is three pure forces through the centre. The redundancy is three, the mobility is one, and the count is wrong by exactly as much as the planar four-bar’s is.

The interesting part is what “link length” means now.

A link joins two joints. In the plane it is a bar of some length, and the length is the distance between the pins. Here the two joints are two lines through the centre, so what separates them is not a distance — it is an angle, the arc between the two axis directions measured on the unit sphere.

So a spherical four-bar has four arcs where a planar four-bar has four lengths, and everything downstream follows the same pattern with an angle in place of a length. That is not an analogy; it is a substitution that works, and the reason it works is that the sphere is a metric space in which the arcs play exactly the role lengths play in the plane.

Grashof, with sines

The planar Grashof condition says that a four-bar has a link that rotates fully exactly when

s+lp+qs + l \le p + q

— the shortest plus the longest, against the other two. On this site that condition is not quoted; it is predicted from the four lengths and then measured by sweeping the crank through a full turn and asking whether every position assembled.

The spherical form is the same inequality on the arcs. Sorted:

s+lp+q,arcs in degreess + l \le p + q, \qquad \text{arcs in degrees}

and the site does the same two things with it. The hero figure’s arcs sorted are 40, 80, 90, 100, so s+l=140s + l = 140 against p+q=170p + q = 170: the condition holds, the shortest arc should turn fully, and sweeping the input through 36 positions reaches all 36.

Change the arcs to 80, 60, 95, 70 — sorted 60, 70, 80, 95 — and s+l=155s + l = 155 against p+q=150p + q = 150. The condition fails. Swept, the input reaches 33 of 36 positions and refuses three of them, because there is no configuration of those four arcs with the input there.

spherical-linkage asserts the agreement of the two before it draws anything: the prediction from the arcs must match whether the sweep reached every position. It is the same assertion the planar field has carried since the foundation, moved to the sphere.

A spherical four-bar: 80°, 60°, 95°, 70°Four revolute axes, all through one point, so the linkage lives on a sphere. Its link "lengths" are the angles between consecutive axes — 80°, 60°, 95°, 70° — and the arcs drawn between the axis directions measure 60.00°, 95.00°, 70.00°, 80.00°. The whole planar four-bar theory carries over with sines where lengths were, including Grashof's condition: sorted, the arcs give s + l = 155° against p + q = 150°, so the shortest arc does not turn all the way round — and swept, the input reaches 33 of 36 positions over a driveable range of 327°. This is the mechanism a universal joint is a special case of, with two of the four arcs at 90°.arcs 60°, 95°, 70°, 80°every axis through the centre
Fig. 2 The non-Grashof case, at 40°. Sorted, its arcs give 155 against 150, so the condition fails and the input cannot turn all the way round: swept, it reaches 33 of 36 positions. The figure’s drag range stops short of the full turn for that reason — a slider that ran through the missing positions would be asking the solver for configurations the mechanism has not got.
A spherical four-bar: 90°, 40°, 100°, 80°Four revolute axes, all through one point, so the linkage lives on a sphere. Its link "lengths" are the angles between consecutive axes — 90°, 40°, 100°, 80° — and the arcs drawn between the axis directions measure 40.00°, 100.00°, 80.00°, 90.00°. The whole planar four-bar theory carries over with sines where lengths were, including Grashof's condition: sorted, the arcs give s + l = 140° against p + q = 170°, so the shortest arc does turn all the way round — and swept, the input reaches 36 of 36 positions over a driveable range of 360°. This is the mechanism a universal joint is a special case of, with two of the four arcs at 90°.arcs 40°, 100°, 80°, 90°every axis through the centre
Fig. 3 The opening linkage carried round to 150°. The four arcs are unchanged — they are the lengths — and what moves is the one angle the loop leaves free, exactly as a planar four-bar’s does.

The one thing that must not drift

A spherical linkage is defined by every axis passing through one point, and nothing in the solver knows that.

SpatialLoop closes a loop by Newton–Raphson on the logarithm of its closure transform. It has no concept of a sphere, a centre, or concurrency. It is handed four axes and told to close the loop, and if the solve wandered off the sphere it would return joint angles that closed a loop perfectly well while drawing a mechanism that is not the one asked for.

The figure would look fine. Four bars, four pins, moving plausibly. This is the failure mode the whole site is built against, arriving in a new place.

So assertSphericalStaysOnItsSphere measures it: over 36 positions, the perpendicular distance from the centre to every joint axis, worst case. It comes out at exactly zero — not near zero — because the loop is constructed from axes through the origin and every transform in the walk is a rotation about an axis through the origin, so the property is preserved by construction rather than by convergence.

That is the right outcome and it is worth saying why the check is kept anyway. The claim being tested is not “the arithmetic is accurate” but “nothing in the construction lets this slip”, and the second is a claim about the code that a future change could falsify without touching the arithmetic. A check that currently returns exactly zero is a check that will report the day it stops.

The arcs are the lengths, and they hold

The second thing the figure checks is the one that makes it a figure about a linkage rather than about four lines.

At any position, the angle between consecutive axis directions is the arc of the link between them. Those four angles are the mechanism’s dimensions and they cannot change — a bar does not stretch. So the figure measures them from the drawn directions and compares against what the placement asked for, at every drag frame.

This catches an ordering mistake that is easy to make and invisible once made. The construction takes the arcs ground-first, and the walk round the loop starts at the crank, so the arc measured at step i is arcs[i + 1] rather than arcs[i]. The first version of the check compared them in the wrong order and failed on a correct figure — reporting 60 where 80 was expected, which is exactly the off-by-one it was. Had the shift gone the other way, or had the four arcs happened to be more nearly equal, it would have passed while comparing the wrong pairs.

What spherical four-bar carries. The mechanism at 45°, with the wrench system reciprocal to its joint screws drawn on it. It carries three forces: a force is drawn as its line of action, because that is all a force of zero pitch is, and a couple as a ring about its direction, because a couple has no line of action at all and acts the same about every point. Everything here comes from the 3-dimensional screw system the joints span; the wrenches are its orthogonal complement under the reciprocal product.
Fig. 4 What a spherical mechanism carries: three pure forces, all through the centre, and no couple at all. The derivation is one line — every joint screw is [ω ; 0], so reciprocity requires ω·m = 0 for every ω, hence m = 0 — and it says that a spherical linkage transmits force to its centre and no moment about it. That is why a universal joint’s yoke is loaded in bearing rather than in torsion.

The universal joint, placed

A Hooke joint is a spherical four-bar with two of its four arcs at exactly 90 degrees.

The input shaft and the first pin of the cross are perpendicular; the second pin and the output shaft are perpendicular; the two pins of the cross are perpendicular to one another. Three right angles, and the fourth arc — between the two shafts — is the shaft angle β, the one quantity a driveline designer actually chooses.

That places every property of the joint the earlier essay measured. Its arcs sorted are β, 90, 90, 90, and for any β below 90 the condition s+lp+qs + l \le p + q reads β+90180\beta + 90 \le 180, which holds. So the input turns fully, always, at every shaft angle — which is a thing everybody knows about universal joints and which arrives here as a special case of a general condition rather than as a fact about universal joints.

And the non-constant velocity ratio has the same standing. A spherical four-bar’s output angle is a nonlinear function of its input angle in general, exactly as a planar four-bar’s is; the universal joint’s particular relation tanϕ=tanθ/cosβ\tan\phi = \tan\theta / \cos\beta is that general nonlinearity with three right angles substituted in. The joint is not special for being non-constant. It would have been special for being constant, and the reason people expect constancy is that the mechanism looks symmetric, which it is — just not in the way that would help.

The two branches, and what they mean here

The ±\pm in the construction above is not a detail of the arithmetic. It is the same two-branch structure the planar four-bar has, and it means the same thing.

For most input angles a planar four-bar has two assembly configurations: the coupler and rocker reflected about the diagonal. A built mechanism is in one of them and cannot reach the other without being taken apart, which is why every sweep on this site carries the previous solution forward rather than re-solving from scratch — re-solving would let a figure jump branches mid-animation and show a machine that dismantled itself between frames.

On the sphere the two branches are the two intersections of the two cones, reflected in the plane through the two ground axes. Everything that is true of the planar branches is true of these: a physical linkage sits on one, the change from one to the other happens only where the two coincide, and the place they coincide is a dead centre — a configuration where the coupler and rocker arcs lie along one great circle and the mechanism momentarily has an extra instantaneous freedom.

That is the same list of consequences the planar field spends several essays on, and it is worth stating that the transport is not partial. Dead centres, branch defects, the transmission angle and its worst value all have spherical forms obtained by the same substitution. What this site has built is the linkage, the condition and the check that the arcs hold; the rest of the transported theory is named here and not drawn.

Why the family matters beyond the joint

Three reasons, and the third is the one that made this worth a rung of its own.

It is a whole planar theory, transported. Coupler curves, transmission angles, dead centres, cognates, the branch and circuit defects of a synthesis: every one has a spherical form, obtained by the same substitution of arcs for lengths. This site has not built them, and saying so is more useful than implying otherwise — what it has built is the linkage and the condition, which is the entrance.

It is the mechanism for redirecting a shaft. Any application that needs rotation about one axis converted to rotation about another, with the two axes meeting, is a spherical linkage problem. That includes the universal joint, the constant-velocity joints designed to fix its ratio, most steering couplings, and the wrist of a great many robot arms.

It is the second subgroup. Planar and spherical are the two three-dimensional subgroups of rigid motion that contain rotations, and between them they account for almost every overconstrained mechanism anyone builds on purpose. The overconstraint essay makes the general argument; this field supplies half of its evidence.

A universal joint at 45° input, shafts 30° apartTwo shafts meeting at 30°, joined by a cross whose two pins are at right angles to each other and each at right angles to the shaft it carries. That is the whole geometry, and everything else follows from it. This is a four-joint spatial loop with all four axes through one point: Kutzbach counts −2 and the screw system has rank 3, so it has one degree of freedom and turns. At this instant the output shaft is at 49.11° while the input is at 45°, and the output is turning 0.9897 times as fast — which is not 1, and never is except at the four points of each turn where the curves cross.inputoutputresidual 6.2e-17positioned by solving, not by drawing
Fig. 5 The special case, from the essay that introduced it. Two of the four arcs are right angles and the fourth is the shaft angle — 30° here. Read as a spherical four-bar, its arcs sorted are 30, 90, 90, 90, so s + l = 120 against p + q = 180 and the Grashof condition holds by a wide margin at any shaft angle short of a right angle. That is why it always turns.

What the construction had to solve

Building the linkage is a small piece of spherical trigonometry and it is worth writing down, because it is where the substitution stops being a slogan.

The planar construction places the crank pin on a circle and finds the coupler pin by intersecting two circles — one of coupler radius about the crank pin, one of rocker radius about the fixed pivot. Two intersections, which are the two assembly branches.

The spherical construction places the crank axis on a cone about the ground axis and finds the coupler axis by intersecting two cones — one of the coupler arc about the crank axis, one of the rocker arc about the far ground axis. Two intersections, which are the two assembly branches.

Concretely: the wanted direction z2z_2 satisfies z2z1=cosbz_2 \cdot z_1 = \cos b and z2z3=coscz_2 \cdot z_3 = \cos c, two linear equations in three unknowns with z2=1|z_2| = 1 closing the system. Solving gives

z2=k1z1+k2z3±k3(z1×z3)z_2 = k_1 z_1 + k_2 z_3 \pm k_3 (z_1 \times z_3)

with the $k$s from the two cosines and the angle between z1z_1 and z3z_3. The ±\pm is the branch. If the coefficient under the square root is negative the four arcs do not close at that input angle, and the construction says so rather than returning a complex direction — the same refusal the planar circle intersection makes.

This is the whole reason the substitution works: the sphere has a law of cosines, so the constructions transport. It also shows where it stops. The sphere is bounded, so an arc of 200 degrees is an arc of 160 degrees the other way round, and a “long” link is not a meaningful idea past 180.

A spherical four-bar: 100°, 45°, 95°, 90°Four revolute axes, all through one point, so the linkage lives on a sphere. Its link "lengths" are the angles between consecutive axes — 100°, 45°, 95°, 90° — and the arcs drawn between the axis directions measure 45.00°, 95.00°, 90.00°, 100.00°. The whole planar four-bar theory carries over with sines where lengths were, including Grashof's condition: sorted, the arcs give s + l = 145° against p + q = 185°, so the shortest arc does turn all the way round — and swept, the input reaches 36 of 36 positions over a driveable range of 360°. This is the mechanism a universal joint is a special case of, with two of the four arcs at 90°.arcs 45°, 95°, 90°, 100°every axis through the centre
Fig. 6 A third set of arcs, at an input angle past half a turn. Sorted they give 45 + 100 = 145 against 90 + 95 = 185, so the condition holds comfortably and the input goes all the way round. Nothing in the picture distinguishes this from the non-Grashof case at a glance, which is the argument for computing the condition rather than looking.
A spherical four-bar: 70°, 50°, 110°, 60°Four revolute axes, all through one point, so the linkage lives on a sphere. Its link "lengths" are the angles between consecutive axes — 70°, 50°, 110°, 60° — and the arcs drawn between the axis directions measure 50.00°, 110.00°, 60.00°, 70.00°. The whole planar four-bar theory carries over with sines where lengths were, including Grashof's condition: sorted, the arcs give s + l = 160° against p + q = 130°, so the shortest arc does not turn all the way round — and swept, the input reaches 25 of 36 positions over a driveable range of 251°. This is the mechanism a universal joint is a special case of, with two of the four arcs at 90°.arcs 50°, 110°, 60°, 70°every axis through the centre
Fig. 7 A third set of arcs, none of them a right angle. Nothing in the closure needs one: the sine condition that decides whether the input turns fully is a statement about four angles, and a right angle is only the case that makes it easy to see.

The plane is the small-arc limit

The substitution a length becomes an angle and a sine appears runs one way in this essay: planar results are carried up to the sphere. It runs the other way too, and reading it in that direction says which of the two subjects is the general one.

Shrink a spherical four-bar. Make its four arcs small — a little mechanism on a very large sphere — and sinaa\sin a \to a, so the spherical Grashof condition sins+sinlsinp+sinq\sin s + \sin l \le \sin p + \sin q becomes s+lp+qs + l \le p + q, which is the planar condition on the arcs read as lengths. Every other result goes the same way, because every one of them is the planar statement with sines in it.

So planar kinematics is the small-arc limit of spherical kinematics, not a separate theory that happens to have an analogue. The plane is what a sphere looks like locally, the four bars are what four arcs look like when they are short, and the reason every planar result has a spherical counterpart is that the planar result was the limiting case all along.

The departure is computable, which turns the observation into something usable. sina\sin a differs from aa by a3/6a^3/6, so the relative error in treating an arc as a length is about a2/6a^2/6: at arcs of 10° that is 0.5%, at 30° it is 4.6%, and at 90° the two quantities are 1 and 1.571 and there is nothing left of the approximation. A spherical mechanism with short arcs can be designed with planar tools and a correction; one with arcs near a right angle cannot be designed with them at all.

Which places the universal joint exactly where its behaviour says it should be. Two of its four arcs are at 90°, which is as far from the planar limit as the sphere goes, so it is the least planar member of the family — and its famous departure from a constant velocity ratio is the same statement. A Hooke joint at a small operating angle is nearly planar and nearly constant-velocity; the two nearlies are the same nearly.

It also settles a question the substitution invites. If the plane is the limit of the sphere, is the sphere the limit of something else? It is not, in this direction: planar and spherical are the two three-dimensional subgroups of the rigid displacements and neither contains the other. A spherical mechanism degenerates to a planar one as its arcs shrink, and a planar one does not degenerate to anything — which is the sense in which the sphere is the richer of the two and the plane is where the subject started for reasons of drawing rather than of generality.

What is not here

The solve. The construction above places the four axes in an assembled configuration, and then the loop’s own solver takes over — the site’s standing rule is that a drawn position is the output of a solve, not of a construction, and the construction is a seed.

That distinction has bitten this site before. The expansion phase recorded a check that seeded a solver with a closed form and then agreed with it, having never run: Newton moved the seeded angles by exactly zero at every position and the assertion passed on a solver that could have been broken. The figure here avoids that by construction rather than by care, because the drag frames are not seeded from the construction at all — each one is driven from the previous position, in small steps, exactly as a shaft turns.

That mattering is not hypothetical either. A spherical four-bar assembles near one input angle and the solve is asked for others; jumping straight to 180 degrees hands Newton a seed on the wrong side of the configuration space, and the loop that sweeps 36 of 36 positions perfectly well fails to close when asked for one of them directly. driveTo walks there in increments and carries each solution forward as the next guess — which is not a numerical convenience, it is what the machine does.

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.

Dead centreDisplacement subgroupFour-barGrashof's conditionGreat-circle arcOverconstraintRatioScrew systemSpherical linkageUniversal joint