Rolling Disks and “Invisible” Corners

What is a corner, after all?

Ask anyone to draw the graph of a function on the plane with a corner, and they’ll likely draw something like this:

y=|x|

A sharp point, a sudden change of direction at (0,0). The tangent line jumps discontinuously. If you tried to drive a car along it, you’d have to stop, turn the wheel, and start again (or fly off the road).

That’s the intuitive picture. Technically, it translates as the function whose graph we are considering failing to be of class C^1. In the previous example, f:x\to |x| belongs to (C^0\setminus C^1)(\mathbb{R}).

Let us attempt at a different description of a corner. At a corner like the one in y=|x|, if we roll a disk along the graph in such a way that it remains tangent to the graph and above it at all points, the disk will get stuck no matter how small its radius r is. The disk cannot negotiate the vertex: as it rolls toward the corner, there comes a point where its lower arc would dip below the graph on the other side. If we think of the graph as a wall, the disk will get stuck at some point, preventing it from reaching the corner. See graph below.

If we round off the corner, by considering the graph of f_1:\mathbb{R}\to\mathbb{R} defined as f_1(x)=|x| if |x|\ge\sqrt{2}/2 and f_1(x)=\sqrt{2}-\sqrt{1-x^2} if |x|\le\sqrt{2}/2, then any disk of radius r\le 1 can be rolled along the graph without losing contact with it. (Larger disks clearly do not work). Notice that f_1 is in (C^1\setminus C^2)(\mathbb{R}), as the curvature jumps at the points of transition between the circle and the straight parts of the graph.

Thus it seems reasonable to adopt the following definition: a corner is a point where an arbitrarily small rolling disk gets stuck, in the sense that it cannot remain both tangent to the graph and on the epigraph at all times. For such definition to make sense, however, we need our graph to be at least C^1 so the tangent is well defined at each point. But wait a minute…we shouldn’t expect corners to appear on a C^1 graph, should we?

The goal of this post is to show that under the above slightly relaxed definition of “corner”, we can indeed have corners on C^1 graphs. In other words, our “rolling disk” definition is strictly weaker than the lack of C^1-regularity.

More precisely, assume we have a smooth function f of class C^1. Imagine a disk of radius r>0 rolling along the graph of f, always tangent to it and always contained in the epigraph. As the disk rolls, its center sits on the normal line at distance r from the point of tangency (the normal is well defined for a C^1 graph).

Rolling a disk along a smooth curve

Now we ask ourselves: given a C^1 graph, can we choose a sufficiently small radius r>0 in such a way that a disk of radius r can roll along the graph without getting stuck at some point?

Rolling the disk along the concave sections of the curve where f' is decreasing is clearly possible for some small value of r. However, convex sections of the curve pose a challenge. To start, let us assume that f\in C^2, so the curvature and the osculating circle are well defined at all points. It can be easily proved that a disk, tangent to the graph at a point where f is locally convex, must lie inside the osculating disk. Therefore, to be able to roll a disk of radius r along the graph, we need r not to exceed the minimum of the radius of curvature. For a C^2 curve, the curvature at a point is

\displaystyle{\kappa(x) = \frac{|f''(x)|}{(1+f'(x)^2)^{3/2}}},


and the radius of curvature (the radius of the osculating circle) is R_c(x)=1/\kappa(x). A disk of radius r can stay tangent and contained in the epigraph along the curve only if r does not exceed the radius of curvature,

r\le R_c(x)

at every x. In terms of the curvature, the above condition reads \kappa(x)\le 1/r. If the curvature is bounded above, then a sufficiently small disk can roll along the entire curve. In particular, if the curve is of class C^2(a,b) then a sufficiently small disk can be rolled along the curve over any given closed interval [c,d]\in (a,b). The radius of the disk obviously depends on the upper bound of the curvature on [c,d]. Such upper bound exists as a consequence of the continuity of f'' on the closed interval [c,d].

An “invisible” corner

However, such choice of the radius may be impossible for curves which are merely C^1. As an example, consider the curve

y = |x|^{3/2}.

The function f: x\to |x|^{3/2} is differentiable everywhere, including the origin, where the derivative is zero. In fact, it is of class C^1: the first derivative

f'(x) = \tfrac{3}{2}\textrm{sgn}(x)|x|^{1/2}

is continuous at x=0, since |x|^{1/2}\to 0 as x\to 0.

So the curve has a well-defined tangent line at every point, including the origin where it is horizontal, y=0. There is no sharp point. If you zoom in, it looks smoother and smoother, flatter and flatter.

And yet, a disk of positive radius rolling along this curve cannot reach the origin. Why? Because a circle of radius r tangent at the origin behaves like y\sim x^2/(2r) as x\to 0. Since 3/2 < 2, we have

\displaystyle{|x|^{3/2} \gg \frac{x^2}{2r} \quad \text{for small } x\neq 0}.

The curve rises faster than any tangent circle. So any disk tangent at the origin dips below the graph, no matter how small its radius. Actually, any disk gets stuck before it ever gets to the origin. Indeed, we have

f''(x) = \tfrac{3}{4}|x|^{-1/2} \quad x\neq 0,

which blows up as x\to 0. The origin is a point of “infinite curvature” and any disk, no matter how small, will get stuck before reaching it, pretty much as in the case of y=|x| at x=0. Thus the origin is a corner according to the rolling disk definition. But it is invisible to the eye. There is no angle, no cusp, no discontinuity. Just a point where the curvature blows up. In other words, corners in the rolling disk sense can occur in places where the curve looks perfectly smooth. See the image below.

The previous analysis gives us a hierarchy of corners, depending on the smoothness of the associated function f:

  • f\in C^0\setminus C^1: a sharp corner, like y=|x|. The tangent line jumps. Obvious.
  • f\in C^1\setminus C^2: a corner can still occur, but it is invisible. The tangent line is continuous, but the curvature blows up. Examples: y=|x|^{3/2}, y=|x|\ln|x|, etc.
  • f\in C^2: no corners in the rolling-disk sense. A sufficiently small disk can roll along any compact portion of the graph, or anywhere if the curvature is globally bounded.

The middle category is the interesting one. These are curves that look smooth to the eye (no sharp points, no cusps, no “kinks”) but that a rolling wheel cannot traverse. They are invisible corners.

A physical picture

Imagine a train on a track shaped like y=|x|^{3/2}. The train has wheels of some fixed radius. As it approaches the origin, the track becomes flatter and flatter, but the rate at which it is becoming flatter increases. At some point, the wheels lose contact with the track, or the train derails, because the track’s curvature exceeds what the wheel geometry can accommodate.

The train cannot reach the origin. The track has a corner there. A corner that no passenger can see.


Asymptotes, tangents and backwards long division

A slant asymptote for a real function of one real variable f is a line y=ax+b with the property

f(x)=ax+b+g(x)\qquad\qquad (1),

where g(x)\to 0 as x\to\pm\infty. Geometrically, the graph of f comes closer and closer to the line for large positive/negative values of x. For the sake of simplicity, we will deal with asymptotes at +\infty, the other case being completely analogous. When a=0 we say that the asymptote is horizontal. A simple way to detect if a given function has a slant asymptote is by checking linearity at infinity, {\it i.e.} if the limit

\displaystyle{\lim\limits_{x\to\infty}\frac{f(x)}{x}}

is finite. If that is the case, the value of the limit is the slope of the asymptote, a. The free term b is then given by the limit

\displaystyle{\lim\limits_{x\to\infty}f(x)-ax},

if the latter exists (and is finite). For rational functions of the form

\displaystyle{f(x)=\frac{P(x)}{Q(x)}}

where P and Q are polynomials, the situation is much simpler. In order for f to be linear at infinity, we need {\rm deg}(P)-{\rm deg}(Q)\le 1 and, if that is the case, we perform long division which leads to

\displaystyle{f(x)=ax+b+\frac{R(x)}{Q(x)}}\qquad\qquad (2)

where {\rm deg}(R)<{\rm deg}(Q) and, therefore, the asymptote is just the quotient y=ax+b since

\displaystyle{\lim\limits_{x\to\infty}\frac{R(x)}{Q(x)}=0}

When {\rm deg}(P)-{\rm deg}(Q)> 1, the fraction is superlinear at infinity.

All this is well known and usually taught in high school.

On the other hand, students are taught to find tangents to a given curve at a given point by means of derivatives. It turns out, however, that finding the tangent to a rational function at x=0 does not require derivatives at all. In order to understand this, we notice that y=cx+d is a tangent to f(x) at x=0 precisely when

f(x)=cx+d+g(x)

with g(x)=o(x) as x\to 0. The last relation is very similar to (1) except for the fact that now we are looking at x\to 0 instead of x\to\infty. Thus, if we could somehow come up with a relation like (2) where now

\displaystyle{\lim\limits_{x\to 0}\frac{R(x)}{xQ(x)}= 0},

the quotient would be the tangent.

As it happens, that is perfectly possible. All we need to do is divide the polynomials starting with the lowest powers (backwards), until we reach a “partial remainder” whose lowest degree is two or higher. Observe that the lowest degree of the divisor Q is necessarily zero (otherwise f is undefined at x=0).

As an example, let us find the tangent to the graph of

\displaystyle{g(x)=\frac{2-2x+3x^2}{1+2x^2}}

at x=0. Starting with the lowest degree, we have 2=2\cdot 1, 2(1+2x^2)=2+4x^2 with first partial remainder R_1(x)=2-2x+3x^2-(2+4x^2)=-2x-x^2. In the next step, we add -2x to the quotient, with a partial remainder R_2(x)=-2x-x^2+2x(1+2x^2)=-x^2+4x^3. Since we are interested in the tangent line and x^2 is an infinitesimal of degree higher than one at zero, the division stops here and the equation of the tangent is y=2-2x. If we keep dividing, we get the Taylor polynomials of higher degree. For instance, the osculating parabola at x=0 is y=2-2x-x^2 and so on.

Long division is taught at school starting with the highest powers. A possible reason is that long division of numbers proceeds by reducing the remainder at each step. If we replace the base 10 in the decimal representation of numbers by x, we arrive at the usual long division algorithms of polynomials, reducing the degree at each step. I would call this procedure “division at infinity”. In contrast, the above is an example of “division at zero”.

Finding the tangent to a rational function at a point different from zero can be reduced to the previous case. If, say, we need to find the tangent to f(x)=P(x)/Q(x) at x=x_0, all we need to do is set x=x_0+z and express P and Q as polynomials in z and then finding the tangent at z=0 as before. Finally, we have to replace z back by x-x_0 in the found equation of the tangent.

The above reveals a perfect symmetry between the problems of finding the asymptote and that of finding the tangent at x=0. In some sense, we can say that an asymptote is a “tangent at infinity” and, I guess, that a tangent is an asymptote at a finite point. Both problems are algebraic in nature and can be solved without limit procedures, just by means of division (forward or backward).

More generally, for rational functions, being the simplest non-polynomial functions, finding their Taylor expansion at zero (and, by translation at any point) is a pure algebraic procedure. I believe this fact should be emphasized in high school and it could be used as a motivating example to introduce more general power expansions. As a matter of fact, Newton was inspired by the algorithm of long division for numbers to start experimenting with power series, not necessarily with integer powers. The image below shows a page from his “Method of Fluxions and Infinite Series”. The “backwards” long division of a^2 by b+x is performed in order to get the power series expansion.

The differential of a quotient

Here is yet another example of “division at zero”.

When students are exposed to the differentiation rules, those are derived from the definition of derivative as the limit of the differential quotient. Thus for example to prove the rule of differentiation of a product we proceed as follows.

\displaystyle{(fg)'(x)=\lim\limits_{h\to 0}\frac{(fg)(x+h)-(fg)(x)}{h}=}

\displaystyle{=\lim\limits_{h\to 0}\frac{f(x+h)g(x+h)-f(x)g(x)}{h}=\lim\limits_{h\to 0}\frac{f(x+h)g(x+h)-f(x+h)g(x)+f(x+h)g(x)-f(x)g(x)}{h}=}

\displaystyle{=\lim\limits_{h\to 0}f(x+h)\frac{g(x+h)-g(x)}{h}+\lim\limits_{h\to 0}g(x)\frac{f(x+h)-f(x)}{h}=}

\displaystyle{=f(x)g'(x)+f'(x)g(x)},

given that all the limits are assumed to exist. A similar computation can be done for the quotient. It should be noted, however, that a little algebraic trick has to be used in both cases to make the derivatives of the individual factors appear explicitly. No big deal, but a bit artificial. And, importantly, not the way the founders of Infinitesimal Calculus arrived at these rules.

To help intuition, the product rule is often presented in the form

d(uv)=(u+du)(v+dv)-uv=udv+vdu+dudv=udv+vdu,

and the last term is ignored in the last equality as being a quadratic infinitesimal (in Leibniz’ terminology, the last equality is actually an “adequality”, a term coined by Fermat). Without a doubt, the latter derivation, albeit not meeting the modern standards of rigor, reveals the reason for the presence of the “mixed” terms and the general structure of the formula. Moreover, no algebraic tricks are required. The formula follows in a straightforward manner.

A similar derivation of the quotient rule involves “division at zero”. Here is the derivation in the book “Calculus made easy” by Silvanus Thompson, from 1910.

Observe that the operation has been stopped when the remainder is a quadratic infinitesimal. The conclusion of the computation is the familiar rule

\displaystyle{d\left(\frac u{v}\right)=\frac{u+du}{v+dv}-\frac u{v}=\frac{du}v-\frac{udv}{v^2}=\frac{vdu-udv}{v^2}}.