Skip to main content

A vortex that doesn’t rotate

math
vector-calculus
The field ⟨−y,x⟩/(x²+y²) swirls around the origin, but a wheel dropped in it never spins. So why isn’t it conservative?
Published

November 30, 2026

In 2017, Math Stack Exchange user Rax Adaam asked about the textbook example \[ \mathbf{F}(x,y) = \left< \frac{-y}{x^2+y^2},\, \frac{x}{x^2+y^2} \right>. \] Every textbook says it is not conservative. But \(\phi(x,y) = \arctan(y/x)\) satisfies \(\nabla\phi = \mathbf{F}\). So what does “conservative” actually mean? My answer (original on Math.SE) was that a potential has to have the same domain as the field, and \(\arctan(y/x)\) doesn’t.

I wrote Visualizing nonconservative vector fields to include a visualization of conservative and non-conservative plane vector fields and their effect on objects. That post had a field with no visible circles that nevertheless rotates. This one has the opposite: a field that is all circles, but doesn’t rotate.

Revolution without rotation

The arrows of \(\mathbf{F}\) circle the origin counterclockwise, getting shorter as you move out. (Its length is \(1/r\), where \(r = \sqrt{x^2+y^2}\).) Yet with \(P = -y/r^2\) and \(Q = x/r^2\), \[ \frac{\partial Q}{\partial x} = \frac{y^2 - x^2}{(x^2+y^2)^2} = \frac{\partial P}{\partial y}, \] so the scalar curl \(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\) is zero at every point where \(\mathbf{F}\) is defined.

Here is physical demonstration. The wheel below is carried by the flow, and its spin is measured from how the flow pushes on its rim, the same way as in the earlier demo. Watch the highlighted spoke.

The wheel orbits the origin, but the highlighted spoke keeps pointing up, the way a compass needle would. Now switch the menu to \(\left< -y, x \right>\), which is rigid rotation: the whole plane turning like a record. There the wheel orbits and turns, once per orbit, always showing the same face to the origin, like the Moon. Its curl is \(2\), and the wheel spins with a rate of half that: \(\omega = 1\).

Why the difference? Two effects compete on a wheel going around in a circular flow:

  • Being carried around a circle turns the wheel counterclockwise, just as with the Moon.
  • If the flow is faster on the inside of the wheel than on the outside, that shear turns the wheel clockwise.

In rigid rotation the speed is \(r\), so the outside is faster and nothing cancels the first effect. In \(\mathbf{F}\) the speed is \(1/r\), so the inside is faster, and the two effects cancel exactly. In fact, for a circular flow with speed \(v(r)\), the curl is \[ \frac{v}{r} + \frac{dv}{dr} = \frac{1}{r}\frac{d}{dr}\bigl(r\,v(r)\bigr), \] which is zero exactly when \(r\,v(r)\) is constant. So \(v = c/r\) is the only circular flow that doesn’t rotate. Fluid dynamicists call it an irrotational vortex; it is the textbook model of water swirling down a drain.

Still not conservative

Irrotationality is a sufficient but not a necessary condition for a vector field to be conservative. If \(\mathbf{F} = \nabla\phi\) on its whole domain, then the work done by \(\mathbf{F}\) along a path is \(\phi(\text{end}) - \phi(\text{start})\), so the work around any closed loop is zero. For \(\mathbf{F}\) that fails on the unit circle \(\mathbf{r}(t) = \left< \cos t, \sin t \right>\): \[ \mathbf{F}(\mathbf{r}(t))\cdot\mathbf{r}'(t) = \left< -\sin t, \cos t \right> \cdot \left< -\sin t, \cos t \right> = 1, \qquad \oint \mathbf{F}\cdot d\mathbf{r} = \int_0^{2\pi} 1\,dt = 2\pi. \]

The demo keeps a running total of the work done along the wheel’s path. Drop the wheel anywhere and let it go around once: it comes back to where it started, yet the work has gone up by \(2\pi \approx 6.28\). Every lap adds another \(2\pi\), no matter how big the orbit is. (In rigid rotation the work also keeps growing, but that field isn’t even irrotational, so that is no surprise.)

So where did the potential go?

Turn on the level curves of \(\arctan(y/x)\). They are rays from the origin, and \(\arctan(y/x)\) does what a potential should: as the wheel moves, the work done equals the change in \(\arctan(y/x)\). Until the wheel crosses the dashed line. There, on the \(y\)-axis, \(\arctan(y/x)\) isn’t defined, and on the far side its value has jumped by \(\pi\) while the work went on smoothly.

That’s what my answer meant. \(\nabla \arctan(y/x) = \mathbf{F}\), but only on the plane minus the \(y\)-axis. \(\mathbf{F}\) is defined on the plane minus only the origin, and on that bigger domain nothing works.

You can do better than \(\arctan(y/x)\). The polar angle \(\theta\) is a potential on the plane minus one ray from the origin. Some math programming libraries have an atan2 function, which takes a point \((x,y)\) in the plane and returns an angle \(\theta\) such that \(\cos\theta = \frac{x}{\sqrt{x^2+y^2}}\) and \(\sin\theta=\frac{y}{\sqrt{x^2+y^2}}\).

But it can’t be extended any further: going once around the origin increases \(\theta\) by \(2\pi\), so a function defined all the way around would need two values at the same point. The atan2 function cannot be continuous. Usually it is defined to overlap with \(\arctan(y/x)\) when \(x > 0\), so that it’s discontinuous along the negative \(x\)-axis, and has image \(-\pi < \theta \leq \pi\).

The work tally in the demo is really just \(\theta\) unwound: it is exactly \(2\pi\) times the number of laps.

So the answer to “is \(\mathbf{F}\) conservative?” depends on the domain:

  • On any region that doesn’t wrap around the origin (a half-plane, a disk that misses the origin, the plane minus a ray), \(\mathbf{F}\) is conservative. All of these are simply connected, which is the additional hypothesis the textbooks attach to “zero curl implies conservative.”
  • On the punctured plane, which isn’t simply connected, it isn’t.

Escher’s staircase

You may have seen M. C. Escher’s 1960 lithograph Ascending and Descending (you can often find it on the dorm room wall of a college math major, yours truly included). On the roof of a monastery, a staircase runs around a courtyard. One line of monks climbs it forever, and another descends it forever, yet both keep coming back to where they started. Escher based it on the Penrose stairs of Lionel and Roger Penrose.

The staircase and \(\mathbf{F}\) have the same kind of impossibility. Think of a potential as a height, so that the work \(\int \mathbf{F}\cdot d\mathbf{r}\) is the height you gain along a path. Cover any small piece of the staircase with your hand, and what’s left is an ordinary flight of stairs: every step is a consistent height above its neighbors. That is zero curl: near every point \(\mathbf{F}\) has a potential, and the rays in the demo are its stair treads. Walking counterclockwise around the origin you cross them going up, like the climbing monks; walking clockwise you go down.

The trouble only shows when you go all the way around. You have climbed \(2\pi\) and arrived where you started, so there is no single height function for the whole staircase. Escher’s drawing has no visible seam where the heights stop matching up, because there isn’t one: any place you choose to cut it is as good as any other. That is just like \(\theta\), which works on the plane minus any ray. Roger Penrose later made the connection precise in “On the cohomology of impossible figures” (Leonardo 25, 1992): the impossibility of a figure like this is measured by a cohomology class, and \(\mathbf{F}\) is the standard example of a nonzero one, a field that is closed (curl zero) but not exact (not a gradient). Turned around, fields like this are a way to detect holes: if a domain carries a field with zero curl that isn’t conservative, the domain can’t be simply connected. I made that point in another old answer, which also uses \(\mathbf{F}\) as its counterexample.

The physicist’s way out

There’s still a puzzle. The curl is zero everywhere \(\mathbf{F}\) is defined, and yet the circulation around the unit circle is \(2\pi\). Green’s theorem says the circulation around a loop equals the total curl inside it. So all of it must be hiding at the origin, the one point where \(\mathbf{F}\) isn’t defined. (Physicists write \(\operatorname{curl}\mathbf{F} = 2\pi\,\delta\).) Any loop around the origin picks up the same \(2\pi\) (try it with different orbits), and any loop that doesn’t go around it picks up nothing.

To see it, check Pin the axle. Now the wheel is fixed in place, like a paddle wheel on a post, and only spins. Click anywhere away from the origin and it stays still. Click on the origin itself so that the rim surrounds it, and it spins counterclockwise. The demo’s spin is the circulation around the rim divided by \(2\pi R^2\) (twice the wheel’s area), so here it is \(1/R^2 \approx 4.94\) for the wheel’s radius \(R = 0.45\). That’s the whole vortex, concentrated in a single point.