Light and mirrors

The ball stands at a focus

A ball on a floor casts an ellipse, and the point where the ball touches the floor is a focus of it — not near a focus, on one, to two parts in ten thousand million million. That is Dandelin's theorem arriving somewhere nobody puts it, and it is the only thing about the lamp that the shadow gives away.

Worth reading first: The shadow of a ball is a conic · The circle whose centre moves · A shadow is a second projection.

A ball is resting on a floor, and a lamp is on somewhere above it. The shadow is an ellipse.

There is exactly one point of that arrangement a person could mark without doing any geometry at all: the place where the ball meets the floor. Reach under it with a pencil and there it is.

That point is a focus of the ellipse.

The ball is standing on a focusA ball of 35 cm radius on a floor, and its shadow from a lamp 2.6 m up. The point where the ball meets the floor is a focus of the ellipse, to 2e-16 m — not near it, on it. The eccentricity here is 0.828.the other focuscorrect from 19 cm, at 160 mm widecontact 5e-15 m from the focus
Fig. 1 A ball of thirty-five centimetres, a floor, and a lamp. The circle marked on the floor inside the shadow is the ball’s own contact point; the second mark is the ellipse’s other focus, with nothing standing on it.
The shadow, from directly aboveThe ellipse, its centre, its two foci and the point the ball touches. The contact is on a focus to 2e-16 m — Dandelin's theorem, with the tangent cone from the lamp as the cone, the ball as the inscribed sphere and the floor as the cutting plane. The other focus is 1.21 m away and nothing is standing on it.the ball stands herethe other focuse = 0.686contact 5e-15 m from the focus
Fig. 2 The same shadow from directly overhead, with the ellipse’s centre, its major axis and both foci drawn. The contact point and the near focus are the same point.

Not approximately. The distance between the contact point and the nearer focus, computed for a range of lamp positions, is a couple of parts in ten thousand million million of a metre, which is the arithmetic saying zero.

The ball is standing on a focusA ball of 35 cm radius on a floor, and its shadow from a lamp 4.4 m up. The point where the ball meets the floor is a focus of the ellipse, to 2e-15 m — not near it, on it. The eccentricity here is 0.631.the other focuscorrect from 19 cm, at 160 mm widecontact 2e-15 m from the focus
Fig. 3 A higher lamp. The shadow has shrunk and rounded — its eccentricity has fallen — and the contact point has not moved, because the ball has not moved.

Where it comes from, which is a theorem about ice cream

The result is Dandelin’s, from 1822, and it is normally met in a completely different room.

A cone is cut by a plane and the section is a conic. Germinal Dandelin’s construction inscribes a sphere in the cone, on one side of the cutting plane, large enough to touch that plane — and shows that the point where it touches is a focus of the section. It is the proof that the two definitions of a conic agree: the one that says slice a cone and the one that says the sum of the distances to two fixed points is constant. Every textbook draws it with a cone and a plane through it, and the spheres go by the name Dandelin spheres.

Now look at the ball on the floor again and read the same picture.

The lamp is a point. The rays from it that graze the ball form a cone — the tangent cone, with the lamp at its apex. The floor is a plane cutting that cone. And the ball is a sphere inscribed in the cone, touching the plane.

Every element of Dandelin’s construction is present, and the sphere is not an auxiliary object dropped in to make the proof work. It is the ball. So its point of contact with the floor is a focus of the section, and the section is the shadow’s edge.

The shadow of a ball, under a lamp 2.40 m upThe lamp's tangent cone cuts the ground in an ellipse. The top of the ball is at 0.84 m and the lamp at 2.40 m: above that height the shadow closes, below it the shadow reaches the horizon, and the ball's distance from the lamp appears nowhere in the condition.the lamp is above the top of the ball — an ellipsecorrect from 22 cm, at 160 mm wideaxis ratio 0.5418 · discriminant -1.14e+0
Fig. 4 The tangent cone, drawn. Its apex is the lamp, its rays graze the ball along a circle, and its intersection with the floor is the shadow’s outline — computed as a conic from the cone’s own quadratic rather than traced from the drawn silhouette.

That the geometry is available at all is the point of this site’s habit of computing both routes. The shadow’s outline can be arrived at by casting the silhouette circle point by point, or by writing the tangent cone as a quadratic form and intersecting it with the plane. This site does both, and the first is what draws and the second is what the foci come out of.

The shadow of a ball, under a lamp 2.90 m upThe lamp's tangent cone cuts the ground in an ellipse. The top of the ball is at 0.84 m and the lamp at 2.90 m: above that height the shadow closes, below it the shadow reaches the horizon, and the ball's distance from the lamp appears nowhere in the condition.the lamp is above the top of the ball — an ellipsecorrect from 22 cm, at 160 mm wideaxis ratio 0.6314 · discriminant -1.56e+0
Fig. 5 The same cone from a little higher up. Its half-angle is narrower and its section is nearer a circle; the ball is still inscribed in it and still tangent to the floor.

Why it is worth more than a curiosity

Because it is the whole of what the shadow says.

Take the ellipse alone — the shape on the floor, with no ball and no lamp visible. What can be recovered? The instinct is that the shadow of a ball is highly informative: it is a conic, it has an eccentricity, it has a size and an orientation, and all of that came from somewhere.

It came from six numbers: where the lamp is, in three; where the ball’s contact point is, in two; and how big the ball is, in one. Six numbers went in and a conic in a plane is five. So the map from arrangements to shadows loses one dimension, and there is a one-parameter family of arrangements behind every shadow ellipse.

The theorem says which parameter. The contact point is pinned: it is a focus, and the two foci of an ellipse are computable from the ellipse. Everything else is loose. And the loose part turns out to be one of the tidiest curves in the subject.

The shadow, from directly aboveThe ellipse, its centre, its two foci and the point the ball touches. The contact is on a focus to 1e-15 m — Dandelin's theorem, with the tangent cone from the lamp as the cone, the ball as the inscribed sphere and the floor as the cutting plane. The other focus is 0.66 m away and nothing is standing on it.the ball stands herethe other focuse = 0.650contact 1e-15 m from the focus
Fig. 6 The plan at the higher lamp. The two foci have closed toward each other and toward the centre, and the contact is on the nearer one to the same accuracy as before.

The lamps that would have done it

Fix the shadow ellipse. Which lamps could have cast it, with a ball of the appropriate size resting at the focus?

The answer is a hyperbola, in the vertical plane through the ellipse’s major axis:

u2c2y2b2=1\frac{u^2}{c^2} - \frac{y^2}{b^2} = 1

where u runs along the major axis from the ellipse’s centre, y is height above the floor, b is the ellipse’s semi-minor axis and c is its focal distance. Its vertices are the ellipse’s two foci. Its own foci are the ellipse’s two vertices. This is the classical focal pair of a conic, and it has arrived here as the answer to a question about lamps.

Every lamp that casts this shadowThe vertical plane through the shadow's major axis, with the floor along the bottom. The shadow's two foci are marked, and the lamps consistent with the ellipse are exactly the hyperbola through them — u²/c² − y²/b² = 1, whose vertices are the ellipse's foci and whose own foci are the ellipse's vertices. Running out along a branch grows the ball; the asymptote is a sun at 34.12° of altitude. One ball's shadow fixes where the ball stands and says nothing else about the lamp.every lamp on this curve casts the same ellipse — to 2e-13 mone branch per focusasymptote = a sun at 34.1°
Fig. 7 The vertical plane through the shadow’s major axis. The floor runs along the bottom, the ellipse’s two foci are marked on it, and the curve through them is every lamp position consistent with the shadow. Beside several of them is the ball each one needs.

One branch sits over each focus, which is the second half of the theorem: the two Dandelin spheres of a cone touch the plane at the two foci, one from above and one from below, and here the branch over a focus is the family of lamps for which the ball rests there.

Running out along a branch, the lamp gets further away and the ball must grow to keep the shadow the same. A lamp twenty-five centimetres up needs a ball of eleven and a half centimetres. A lamp at sixty metres needs one of forty and a half. Every one of them casts precisely the same ellipse — the largest departure across that whole ladder is a few parts in a thousand million million of a metre, which is again the arithmetic saying they are identical.

So a photograph of a ball’s shadow, on its own, does not say how big the ball is or where the light is. It says where the ball is standing, exactly, and it draws a curve through space and says the lamp is somewhere on this.

The ball is standing on a focusA ball of 50 cm radius on a floor, and its shadow from a lamp 3.4 m up. The point where the ball meets the floor is a focus of the ellipse, to 2e-15 m — not near it, on it. The eccentricity here is 0.754.the other focuscorrect from 19 cm, at 160 mm widecontact 2e-15 m from the focus
Fig. 8 A larger ball under the same lamp. Everything in the argument is a ratio, so nothing about the theorem depends on the size — but the family below does, and this is one member of it.
A 35 cm source, an edge, and the band betweenThe penumbra is 17.5 cm wide by the projection — the source's width times the receiver-to-occluder distance over the source-to-occluder distance — and 17.4 cm by counting how much of the source each point can see. The two routes share no arithmetic.source, 35 cmthe occluder's edgefraction of the source visiblepenumbra 17.5 cmprojection: 17.50 cmsampled: 17.41 cm
Fig. 9 The edge above is a point lamp’s edge. A source of real size makes a band instead, whose width is the source imaged through the grazing point — so a contact point marked on a photograph is marked in the middle of a soft strip.

The sun is the asymptote

A hyperbola has asymptotes, and running the lamp out along a branch approaches one. A lamp infinitely far away in a fixed direction is the sun, and the direction the asymptote points is therefore the direction of a sun that casts the same ellipse.

Its altitude is arctan(b/c) — the ratio of the ellipse’s semi-minor axis to its focal distance — and that is a number a reader can take off the shadow with a ruler.

It checks. A sun set at a stated altitude, its shadow ellipse computed, the asymptote’s angle read back out: the two agree to within a hundred-millionth of a degree across every direction tried. The shadow’s own shape names the sun’s altitude and says nothing whatever about how far away the sun is, which is right, because the sun’s distance is exactly the quantity a parallel projection has thrown away.

This is worth pausing on, because the site has spent several essays on the difference between a lamp and the sun and this is the sharpest form of it. A light far enough away measures the distance at which a lamp becomes indistinguishable from a sun, by watching the shadow lines’ meeting point run off to the horizon. Here the sun is not a limit that is approached and never reached; it is a point of the same curve, the point at infinity of one branch, and the quantity the shadow supplies at that point — an altitude — is exactly the quantity the family still has when the position has gone.

The lamp's circle opens to a great circle only at infinityThe curve where a ball's surface turns away from a lamp is the circle at acos(R/d) from the lamp's direction. At two radii it is 60.0°, at ten radii 84.3°, and at a hundred 89.43°. The 90° everybody draws belongs to the sun.2040608051015distance from the ball's centre, in radiiangular radius of the lit cap (degrees)a great circle — the sun's answeracos(R/d)never reached by a lamp in the room
Fig. 10 Why the radius closes it. The circle where the ball turns away from the lamp depends on the lamp’s distance in radii, so a stated radius and a stated shadow between them fix that distance.
The shadow of a ball, under a lamp 2.40 m upThe lamp's tangent cone cuts the ground in an ellipse. The top of the ball is at 0.84 m and the lamp at 2.40 m: above that height the shadow closes, below it the shadow reaches the horizon, and the ball's distance from the lamp appears nowhere in the condition.the lamp is above the top of the ball — an ellipsecorrect from 22 cm, at 160 mm wideaxis ratio 0.5418 · discriminant -1.14e+0
Fig. 11 The cone at the height the figures use throughout, for reference: apex at the lamp, tangency along a circle of the ball, section on the floor.
The lamp is the second eyeOne camera, one lamp, one point. The camera's ray through the point's image fixes it on a line; the image of its shadow fixes where the lamp's ray through it meets the floor; and two lines that are not parallel meet. The point comes back at 1e-15 m of closest approach and 9e-16 m from where it was put — depth out of a single photograph, with no second camera and nothing assumed about the object. The rays cross at 28.5°, and that angle is what the measurement is worth.horizonthe pointits shadowcorrect from 22 cm, at 160 mm widerays cross at 28.5° · recovered to 9e-16 m
Fig. 12 The lamp used as a second eye. A shadow supplies a second ray to a point, which is the other way a single picture and a single light give a position.

What breaks the tie

One number closes it: the ball’s radius.

Knowing the radius picks a single point of the branch, because the radius is a strictly increasing function of the lamp’s height along it. So ball of a known size, plus its shadow, gives the lamp — which is a single-view metrology result of the kind the metrology field is made of, and it needs no post, no vertical, no calibrated camera and no measurement in the picture except the ellipse.

Two things are worth saying about that, and the second is the awkward one.

First, the recovery is a choice of focus. An ellipse has two, and each carries a branch, so the same shadow with the same ball radius admits a lamp on the left and a lamp on the right — mirror arrangements that produce the identical mark on the floor. Nothing on the floor separates them. What separates them is the ball: it is standing on one focus and not the other, and a person in the room can see which.

Second, the conditioning is worst where the ellipse is nearly a circle. A lamp almost straight overhead gives an ellipse with the two foci nearly coincident, and then “which focus” is a question about a difference of a few millimetres and the branch is nearly vertical, so the radius pins the height loosely. This is not a defect of the method. It is the geometry saying that a shadow directly under a ball carries little information about where the light is, which is also what a reader would say from the doorway.

Six posts in sunlight from 34°The shadows are parallel in the world, so in the picture they meet at one point on the horizon — found from the drawn shadows to 3e-13 px.horizonshadows meet at x = -58, off the frameon the horizon, as it must be
Fig. 13 The other kind of light. Under the sun the shadow lines of parallel posts converge on the horizon rather than under a lamp, which is the statement that becomes an asymptote below.

The round trip, done both ways

The site’s habit is that a claim of this kind is not finished until the machinery has been made to give back what it was given. Here the round trip is short and the two halves are genuinely independent.

Forward: a lamp, a ball and a floor produce a tangent cone, and the cone’s intersection with the floor is written as a quadratic in two variables. Nothing in that route mentions a focus.

Backward: the quadratic is turned into a centre, two semi-axes and an angle, the focal distance follows from the semi-axes, and the two foci are placed. Nothing in that route mentions the ball.

The two meet at the contact point, and they meet there for every lamp tried — high, low, close in, far out to the side, and at eccentricities from a shadow that is very nearly a circle to one that is nearly a parabola. That is the check. A construction that produced the focus from the ball’s position would be restating its own input; these two do not share a line of arithmetic.

The same discipline gives the hyperbola its own test, and it is not the algebra. Take a point on the branch, work out the ball that goes with it — in the vertical plane the ball is the circle inscribed in the triangle whose apex is the lamp and whose base runs between the ellipse’s two vertices — and then cast that ball’s shadow from that lamp, forward, through the same tangent-cone machinery that drew the first one. The ellipse that comes back is the one the branch was derived from, to a few parts in a thousand million million of a metre, at every rung of the ladder.

The shadow, from directly aboveThe ellipse, its centre, its two foci and the point the ball touches. The contact is on a focus to 4e-15 m — Dandelin's theorem, with the tangent cone from the lamp as the cone, the ball as the inscribed sphere and the floor as the cutting plane. The other focus is 1.77 m away and nothing is standing on it.the ball stands herethe other focuse = 0.897contact 4e-15 m from the focus
Fig. 14 The same ball with the lamp lowered. The ellipse stretches, its eccentricity climbs and its far focus runs outward; the contact point does not move, and it is still a focus.
The lamp, from the shadows aloneThe two intersections are the light and the point below it. Nothing about the lamp was given to the construction — it is shown three posts, three shadow tips and the camera's own horizon — and the recovered position is 1e-12 mm from the truth. The light's foot sits 351 px below the horizon, which is what says it is a lamp and not the sun.the shadow lines meet below the horizon — a lamp in the roomhorizoncorrect from 25 cm, at 160 mm wide3 posts · foot 351 px below the horizon
Fig. 15 The construction this collection already had for finding a lamp: post tops to shadow tips meet at the lamp’s image, feet to tips at the image of its foot. It needs uprights, and the ball’s shadow does not.
The ball is standing on a focusA ball of 35 cm radius on a floor, and its shadow from a lamp 3.0 m up. The point where the ball meets the floor is a focus of the ellipse, to 3e-15 m — not near it, on it. The eccentricity here is 0.781.the other focuscorrect from 19 cm, at 160 mm widecontact 3e-15 m from the focus
Fig. 16 An intermediate lamp height, for a reader following the eccentricity down from the low lamp to the high one.

The other cases

An ellipse has foci. A parabola has one. A hyperbola has two, one on each branch.

The shadow of a ball is not always an ellipse, and the shadow of a ball is a conic settles when it is which: the shadow closes if and only if the lamp is above the top of the ball, and that condition contains no distance at all. So take a lamp and lower it. The ellipse grows, its eccentricity climbs, its far focus runs away — and at the moment the lamp is level with the top of the ball the shadow is a parabola, the far focus has gone to infinity, and the near one is still the contact point.

Lower the lamp further and the shadow is a hyperbola. The branch that reaches the floor is the shadow; the other branch is the region the ball’s cone would light if the cone were extended backwards through the lamp. The contact point remains a focus of the whole conic, and it is the focus of the branch the ball is standing in.

None of that needed re-deriving. Dandelin’s theorem is about a cone cut by a plane, and it does not care whether the section closes.

The shadow of a ball, under a lamp 1.15 m upThe lamp's tangent cone cuts the ground in an ellipse. The top of the ball is at 0.84 m and the lamp at 1.15 m: above that height the shadow closes, below it the shadow reaches the horizon, and the ball's distance from the lamp appears nowhere in the condition.the lamp is above the top of the ball — an ellipsecorrect from 22 cm, at 160 mm wideaxis ratio 0.1951 · discriminant -1.47e-1
Fig. 17 A lamp below the top of the ball. The section is unbounded and the shadow reaches the horizon; the contact point is still a focus, of the branch that is drawn.
The shadow of a ball, under a lamp 1.15 m upThe lamp's tangent cone cuts the ground in an ellipse. The top of the ball is at 0.84 m and the lamp at 1.15 m: above that height the shadow closes, below it the shadow reaches the horizon, and the ball's distance from the lamp appears nowhere in the condition.the lamp is above the top of the ball — an ellipsecorrect from 22 cm, at 160 mm wideaxis ratio 0.1951 · discriminant -1.47e-1
Fig. 18 A lamp barely above the top of the ball. The section is on the point of opening, and the near focus is where it has been all along.

And for the sun the same statement is a different fact

For a sun the tangent “cone” is a cylinder — parallel rays grazing the ball — and Dandelin’s construction still applies, with one difference worth having.

A cone’s two inscribed spheres have different radii, which is why the two foci of a plane section are geometrically distinguishable once a sphere size is known. A cylinder’s inscribed spheres all have the same radius. So for the sun, the two Dandelin spheres are congruent, both of them exactly the size of the ball, and the shadow ellipse is symmetric between its two foci in a way that a lamp’s never is.

The consequence is small and clean: under the sun, the ball’s contact point is a focus, and a ball of the same size touching the plane at the other focus — from underneath, which is not a place a ball can be — would give the same ellipse. Under a lamp, the ball at the other focus is a different size. The lamp’s asymmetry is what makes the near focus recoverable at all.

Every lamp that casts this shadowThe vertical plane through the shadow's major axis, with the floor along the bottom. The shadow's two foci are marked, and the lamps consistent with the ellipse are exactly the hyperbola through them — u²/c² − y²/b² = 1, whose vertices are the ellipse's foci and whose own foci are the ellipse's vertices. Running out along a branch grows the ball; the asymptote is a sun at 31.87° of altitude. One ball's shadow fixes where the ball stands and says nothing else about the lamp.every lamp on this curve casts the same ellipse — to 6e-14 mone branch per focusasymptote = a sun at 31.9°
Fig. 19 The same family for a larger ball. The branch is the shadow’s own focal hyperbola whatever is standing on the focus, and the ball’s size chooses a point of it.

What this does not say

It says nothing about brightness. The edge of a shadow is a geometric boundary here, and a real one is a penumbra whose width is the lamp’s own image through the grazing point. A person marking the contact point on a photograph is marking the middle of a soft band, and the accuracy of that mark is set by the band’s width rather than by anything above.

It says nothing about what makes a shadow look like a shadow, and this site has no standing on that.

And it does not make the shadow a measuring instrument on its own. A shadow ellipse plus a known ball gives a lamp; a shadow ellipse alone gives a contact point and a curve. The distinction matters because the shadow looks informative — it is a whole conic, five numbers, drawn on the floor for anyone to measure — and five numbers is one short of what was needed.

The shadow, from directly aboveThe ellipse, its centre, its two foci and the point the ball touches. The contact is on a focus to 2e-15 m — Dandelin's theorem, with the tangent cone from the lamp as the cone, the ball as the inscribed sphere and the floor as the cutting plane. The other focus is 0.47 m away and nothing is standing on it.the ball stands herethe other focuse = 0.531contact 2e-15 m from the focus
Fig. 20 A lamp high enough that the shadow is nearly circular. The two foci are close together and the recovery of a lamp from this shadow is correspondingly ill-conditioned.

The transferable form

Every recovery on this site has ended with a statement of what it left free, and most of them left a free parameter that was awkward to describe: a one-parameter relief, a family of eyes, a scale nobody can supply. This one leaves a free parameter that is a named classical curve, and the reason is worth carrying:

When a family of arrangements produces one picture, the family is usually a curve or a group with a name, because the picture was made by a construction that already had one.

The lamps consistent with a shadow ellipse form the ellipse’s focal hyperbola because the thing that had to stay fixed was a right circular cone through a fixed conic, and the apexes of right circular cones through a conic are a classical locus that predates every question in this essay by a century and a half. The free parameter was not discovered by pushing numbers around until something stopped moving. It was recognised.

That is the same move the marks name the place, not the height makes about anamorphs, where the family of eyes explaining a set of floor marks turns out to be exactly the plane’s own projective group. Both times, the way to find out what a picture left free was to ask what group or curve the construction was already standing in.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

ConicDandelin sphereFocal conicFree parameterLight recoveryPoint lightShadow projectionsingle-view metrologyTangent coneUmbra