Pick a field and place the circle with the sliders, or drag it across the graph. The readouts compare the two line integrals around the circle with the double integrals over the disk inside it. Green’s theorem says each pair should agree, and the vortex shows what happens when one of its conditions fails.
You can also drag the circle or tap the graph to move its center. Longer arrows in fuller color mean a stronger field.
- Circulation around the circle
- 6.2832Equals 2π
- Integral of the curl over the disk
- 6.2832Equals 2π
- Outward flux across the circle
- 0.0000Equals 0
- Integral of the divergence over the disk
- 0.0000Equals 0
- Curl at the center
- 2
- Divergence at the center
- 0
Each line integral equals its double integral, as Green's theorem says.
Things to try
- Start with the rotation field and the unit circle at the origin. The circulation is , and so is the integral of the curl, because the curl is everywhere and the disk has area . Move the center anywhere and nothing changes. Set the radius to and both become .
- Switch to the radial field . Now the circulation is and the outward flux is , which is the divergence times the area. The sink gives the same numbers with the sign flipped.
- Try the shear field . Every arrow points left or right, yet the circulation around the unit circle is . Above the axis the arrows point right and below it they point left, so along both the top and the bottom of the circle they push against the counterclockwise direction. The curl is everywhere.
- Pick the gradient of and move the circle around. The circulation stays for every center and radius, because the field is conservative and its curl is . The radial field is a gradient too, of , and its circulation is also always .
- With the polynomial field the curl is and the divergence is , so the numbers depend on where the circle sits. At the origin both integrals are even though the field is not. Move the center to with radius . The circulation becomes and the flux becomes , which is the area times the curl and the divergence at the center.
- Choose the vortex and keep the circle at the origin. The circulation is , but the integral of the curl is because the curl is wherever the field is defined. Move the center to or change the radius, and the circulation stays as long as the origin is inside.
- Now move the vortex circle to the center with radius . The disk no longer contains the origin, the circulation drops to and the two sides agree again. A circle through the origin, such as center with radius , makes the line integrals undefined.
What you are seeing
The circle with center and radius is traced counterclockwise,
The circulation adds up the part of along the circle and the flux adds up the part pointing out of it. Green’s theorem turns each into a double integral over the disk , once with the scalar curl and once with the divergence.
The theorem needs and to have continuous partial derivatives on an open region that contains the whole disk. The vortex field
has curl at every point except the origin, where it is not defined at all. On a circle of radius around the origin it points along the circle with length , so
When the disk contains the origin, the condition fails and the theorem says nothing, which is why the two sides can differ. The flux of the vortex is on both sides, but not because of the theorem. For this field , and returns to its starting value after one trip around any circle that does not pass through the origin, even one that encloses it. When the disk misses the origin, the field is smooth on it and Green’s theorem gives a circulation of .
The explorer computes the line integrals numerically with the trapezoid rule in , using more points the closer a circle in the vortex field comes to the origin. For a smooth periodic integrand this rule is accurate to many digits. The double integrals use the exact curl and divergence formulas in polar coordinates around the center, with a Gauss rule in the radius and equally spaced angles. The note under a value writes it as a multiple of , except where the vortex needs a warning there instead.
Each arrow sits at the middle of a grid cell and points in the direction of there. Its length and the strength of its color both grow with the magnitude up to a cap, so short faint arrows mark a weak field. The cap sits where most arrows stay below it. The few very strong vectors, such as those close to the center of the vortex, are drawn at the cap so they do not shrink all the others.
The theorem with all its hypotheses is in the lesson on Green’s theorem, the formulas are collected on the multivariable reference sheet, and the whole course is on the Multivariable and Vector Calculus course page.