Cylindrical Coordinates
Half of electromagnetism happens near a line. Currents flow in straight wires, charge rides on cables, solenoids and coaxial lines and optical fibers are all tubes around an axis — and for every one of them, Cartesian coordinates are the wrong language and spherical coordinates are the wrong shape. The natural grid is cylindrical: distance from the axis , angle around it , and height along it . It is plane-polar coordinates with a third dimension bolted on, and after the two-angle gymnastics of the sphere it will feel like a rest day — only one stretch factor to track instead of two. But that single factor does real work. Sweep the angle by and you travel an arc — farther out, farther traveled — so the volume element is , the gradient divides its -derivative by , and the divergence wraps its radial term into . That last structure is the axial twin of the sphere's , and it explains at a glance why the signature fields of this geometry — the line charge's and the straight wire's — are divergence-free and curl-free everywhere off the axis, with all their sources hiding in the line itself. One warning before the fun: notation. This track follows Griffiths in writing the axial distance as — because collides with the spherical radius and collides with charge density, and both collisions cause real accidents. Learn the triad , and translation to any other book is painless.
- Cylindrical coordinates locate a point by : perpendicular distance from the -axis, azimuth around it, and height; , , .
- The stretch factors are : only the angular sweep is stretched, giving and the volume element .
- The unit vectors and rotate with the point (, ); only is a genuine constant.
- The divergence packs the stretch factor into the radial term, , which is why fields are source-free off the axis.
- This is the coordinate system of wires, cables, solenoids, waveguides, and beams — anything with an axis.
- Key idea: cylindrical coordinates are plane polar plus height, with one stretch factor s converting angle sweeps into arc lengths; the lone factor generates the volume element s ds dφ dz and every operator formula of the system.
Cylindrical coordinates are plane-polar coordinates with height: the single stretch factor converts angular sweeps into arc lengths, and it alone generates the volume element and all the differential operators of the system.
Where this lives today
The world's data moves through cylindrical coordinates. An optical fiber is a glass cylinder a few microns across, and the light modes it carries are solutions of Maxwell's equations in exactly the system of this article — radial Bessel profiles, azimuthal phase windings , and a propagation factor along . When engineers design a fiber to carry more channels, they are choosing which of those cylindrical harmonics may propagate. The same mathematics, scaled up, runs the coaxial cables of every lab and the waveguides of every radar. At the big-machine frontier, cylindrical coordinates are the native language of confinement and acceleration. Particle-accelerator beam dynamics is written in around the beam axis; the superconducting solenoids of MRI scanners and collider detectors are engineered around the on-axis and off-axis field expansions in these coordinates; and tokamak plasma physics starts from cylindrical coordinates before bending the cylinder into a torus. Wherever there is an axis — and technology loves axes — this grid is already drawn.
The physical picture
Stand a wire vertically and ask where a point is relative to it. Three answers locate it completely: how far from the wire (), how far around (), how far up (). The coordinate surfaces are the natural furniture of axial problems — cylinders of constant wrap the wire like insulation, half-planes of constant fan out from the axis, and planes of constant slice across it. A field with the wire's symmetry depends on alone, and calculus in these coordinates collapses to one variable.
Lengths behave exactly as the sphere taught you, only simpler. Radial steps and vertical steps are honest lengths already: and . The angular step alone is stretched — sweeping at distance from the axis moves you along an arc . One stretch factor, in the one place symmetry demands it: near the axis, a degree of azimuth is a hair's breadth; at the rim of a tokamak it is meters.
The dictionary and the elements
The transformation to Cartesian is plane polar in the -plane with carried along unchanged:
where: is the distance to the axis (not to the origin — that is the spherical ; the two agree only in the plane), and is the same azimuth spherical coordinates use. The unit vectors follow by differentiating and normalizing:
where: the triad is right-handed, . Note who moves and who does not: and swing around with the azimuth — differentiating (2) gives the workhorse identities and — while is the one honest constant in the system. The position vector is , with the azimuthal information hidden inside , exactly as the sphere hid its angles inside . The general displacement collects the stretch factors :
where: each term is (stretch factor) × (coordinate change) × (direction). Multiplying perpendicular edges gives every element you will need: the volume ; the outward element on a cylinder of radius , (total side area — the circumference-times-length you learned in school, now derived); and the cap element . As a first audit, the cylinder's volume: . Correct — the machinery is calibrated.
The differential operators
The del operator divides each derivative by its stretch factor — only the azimuthal one is nontrivial:
where: the converts "per radian" into "per metre of arc". Try it on : — which is, up to constants, the field of a line charge, and the reason logarithmic potentials rule two-dimensional electrostatics. The divergence, as always, is flux-per-volume, and the derivation below shows the stretch factor forcing its way inside the radial derivative:
where: the inside is the area factor of the curved faces. Feed it the line-charge shape : , and the divergence vanishes for — all sources compressed into the axis, the cylindrical echo of the Coulomb-field story. The curl and the Laplacian follow the same scale-factor grammar (catalogued in the cheat sheet; generated mechanically in the curvilinear-coordinates article). One curl fact deserves its own sentence: for the wire field , the -component of the curl is off the axis — the magnetic field of a straight wire is curl-free everywhere except in the wire, where a delta function of current lives.
The goal is equation (5), and specifically the structure , derived from the coordinate-free meaning of divergence — net flux out per unit volume — applied to the brick of the second figure. The strategy repeats the spherical-cell argument with one stretch factor instead of two, which makes this the cleanest place to see the mechanism: the inner and outer curved faces of the brick have different areas, so even a constant radial field leaks net flux. Watch the product rule carry the geometry.
Step 1. Take the cell spanning . Its inner and outer curved faces have areas and — the outer face is longer in arc. Net radial outflow:
Why the product rule is physics: even with constant, more area faces outward than inward, so flux escapes — that geometric leak is the piece, and it is exactly what a field must fight to be source-free.
Step 2. The two flat -faces are congruent rectangles ; only the field difference contributes: . Likewise the caps give .
Step 3. Divide the total outflow by the cell volume :
Why enters undressed: the top and bottom caps are congruent — vertical geometry is Cartesian, and only the field difference drives flux.
Step 4. Payoff check: gives , so for , yet the flux through any cylinder around the axis is . The sources hide in the axis — a line of delta functions, the two-dimensional sibling of . Quick check: setting gives , which agrees with the Cartesian divergence of the field — a reassuring calibration of the formula.
Go deeper · Derivation B · 1 minGauss's law around a line charge — the coordinate system earning its keep
The goal is the electric field of an infinite line charge with linear density , the signature calculation of cylindrical coordinates, using the integral form of Gauss's law with a coaxial cylindrical surface. The strategy: let symmetry dictate the field's shape before any integral is written, then choose the one surface on which the flux integral is trivial. Watch how each piece of the Gaussian surface either catches the field head-on or dodges it entirely — that clean split is what "matching the coordinate system to the symmetry" means in practice.
Step 1. Symmetry first. Translation along and rotation in leave the line invariant, so can depend only on . Reflection through any plane containing the axis kills ; reflection through any plane perpendicular to the axis kills . Hence — pure radial fan. Why this step comes first: it converts a vector unknown into a single scalar function of one variable, before any calculus is spent.
Step 2. Choose the Gaussian surface to match: a coaxial cylinder of radius and length . On the curved side, and is constant over the face; on the two caps, and the flux is zero.
Step 3. Evaluate the flux: . Enclosed charge: . Gauss's law gives
Why and not : the field spreads over cylinders whose area grows like , not spheres growing like — dimensionality of the source sets the fall-off. The arbitrary length cancels, as it must for an infinite line.
Step 4. Consistency: this is exactly the shape shown divergence-free off the axis in the previous derivation — Gauss's law and the differential machinery agree everywhere they should. Consistency check: applying equation (4) to gives , confirming that the logarithmic potential and the radial field are mutually consistent.
Which formula answers which question
| you want | use | notes |
|---|---|---|
| convert points or fields | equations (1) and (2) | measures to the axis |
| any length, area, volume element | equation (3) | multiply the swept edges |
| side of a cylinder | , total | the Gauss-law workhorse |
| slope of a scalar field | equation (4) | only the term divides by |
| sources of a vector field | equation (5) | goes inside the radial derivative |
| line-symmetric fields | , | the two signature results |
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| ignored (2D problems) | plane-polar coordinates | electrostatics of long parallel systems is two-dimensional |
| on the axis () | , undefined | coordinate singularity; formulas need care numerically |
| far from a finite line () | field point-like | cylindrical symmetry is an approximation with a range |
| radial field | source-free requires | |
| azimuthal field | curl-free requires — the wire's | |
| spherical equator | the two systems agree in the midplane |
Worked examples
1 · Charge on a cylinder with density growing off the axis (confidence builder)
A solid cylinder of radius and length carries charge density with . Find the total charge.
Step 1. Set up with the cylindrical volume element — the density depends only on , so and integrate immediately: . Note the two powers of in the integrand: one from the density, one from the volume element — omitting the element's is the classic slip.
Step 2. Radial integral: , so .
Step 3. Numbers: .
Step 4. Check against the uniform case: a uniform would give C; our density averages over the cross-section (weighted by the element), and indeed C. The volume element's -weighting is doing exactly what the geometry demands.
2 · The field of a charged cable (exam level)
A long straight cable carries line charge density . Find at , verify the field is divergence-free there, and find the potential difference between cm and cm.
Step 1. From the Gauss-law derivation above, . Numbers: , pointing radially away from the cable.
Step 2. Divergence check with equation (5): is constant, so at cm — no sources off the axis, exactly as Gauss's differential law demands in vacuum.
Step 3. Potential difference along a radial path, using from equation (3): .
Step 4. Numbers: , and , so . The logarithm is the cable's signature: the potential of a line charge has no finite reference at infinity, which is why coaxial systems always quote potential differences — and why the capacitance per length of a coax cable carries a .
Origins · 1 minFriedrich Wilhelm Bessel and how this was discovered
Bessel left school at fourteen, apprenticed to an import-export firm, and taught himself astronomy from navigation manuals — by twenty-five he was director of Prussia's new Königsberg Observatory. The functions bearing his name are the natural harmonics of this coordinate system: solve Laplace's equation inside a cylinder — a drumhead, a waveguide, an optical fiber — and the radial profiles that emerge are Bessel functions, oscillations whose spacing the radial operator slowly stretches. Bessel met them studying planetary perturbations and, characteristically, tabulated them with a precision instrument-makers could use. His masterpiece came in 1838: the first measured distance to a star, the parallax of 61 Cygni — six hundred thousand times the Earth-Sun distance, announced from careful cylindrical-mount instruments he had recalibrated himself. Every fiber-optic mode profile computed today is drawn from his function tables' descendants.
Going further
References. Griffiths, Introduction to Electrodynamics, 4th ed., §1.4 (Curvilinear Coordinates) and Appendix A · Jackson, Classical Electrodynamics, 3rd ed., front-cover formulas and §3.7 (Cylindrical Coordinates, Bessel Functions) · Purcell & Morin, Electricity and Magnetism, 3rd ed., Appendix F · Zangwill, Modern Electrodynamics, §1.2 and Appendix on curvilinear coordinates · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 3 The divergence formula rests on and , obtainable by differentiating the explicit basis-vector expressions. The line-charge field , the coaxial capacitance per length , and the wire field are standard results. The cylinder volume integral evaluates to , and holds for the radial field off the axis. Worked-example numbers: nC for ; V/m and V for nC/m.
Builds on: Scalar and Vector Fields · The Del Operator (Nabla) · The Gradient Operator Leads to: The Divergence of a Vector Field · The Curl of a Vector Field · Second Derivatives and the Laplacian · Volume Integrals
Why does this track write the radial coordinate as s instead of r or ρ?
Pure accident-prevention, following Griffiths. Writing invites collision with the spherical radius — deadly in problems containing both a wire and a sphere, or when comparing the line charge's with the point charge's . Writing collides with volume charge density, so that Gauss's law would contain the same symbol meaning two different things in one line. The letter is unclaimed by anything nearby. When reading other books (Jackson uses , many engineering texts use ), translate at the door: identify which symbol measures distance-to-axis, and rewrite formulas in your own convention before computing.
How do I decide between cylindrical and spherical coordinates for a given problem?
Ask what the sources and boundaries look like. A distinguished point — charge, atom, star — wants spherical; a distinguished axis — wire, cable, solenoid, beam — wants cylindrical; rectangular boxes want Cartesian. The tell is which coordinates the answer will not depend on: line symmetry makes fields functions of alone (two coordinates ignorable), point symmetry makes them functions of alone. Mixed problems (a finite rod, a charged disk) genuinely need judgment: near a finite rod's middle it looks cylindrical, far away it looks spherical, and the honest answer interpolates — a theme the multipole expansion will make quantitative in E2.
What happens to the coordinate system on the axis itself?
The azimuth degenerates: at every value of labels the same point, so (and with it and ) is undefined there. This is a coordinate singularity — the geometry of space is perfectly smooth on the axis — but it has practical teeth: formulas carrying misbehave numerically near the axis, and any physical field that is smooth at must have special structure (its - and -components must vanish on the axis; only may survive). Simulation codes handle the axis with special stencils or by excising a thin core, precisely because the coordinates, not the physics, break there.
Where do the identities for the derivatives of s-hat and φ-hat come from, and why do they matter?
Differentiate the explicit forms in equation (2): and ; all other derivatives vanish. They matter because every dynamical statement in cylindrical coordinates threads through them: the velocity of a particle is — the term exists only because turns — and the operator formulas (4) and (5) encode the same derivatives. Forget that the basis moves and you lose the centripetal terms of mechanics and the structures of field theory in a single stroke.
Why do potentials in cylindrical problems always come with logarithms?
Because the field of a line source falls as , and the integral of is . This has a consequence that surprises everyone once: the potential of an infinite line charge cannot be referenced to infinity — diverges there — so one must pick a finite reference radius and quote . Nothing physical depends on the choice, since only potential differences matter, and the in every coaxial-cable capacitance formula is this same logarithm with both radii physical. The deeper reason: two-dimensional space is one dimension short of diluting a source's influence fast enough for infinity to be a clean zero.
What are Bessel functions and when will I actually need them?
They are to cylinders what sines and cosines are to boxes and spherical harmonics are to spheres: the natural vibration profiles of the radial coordinate. Solve Laplace's equation (or the wave equation) in cylindrical coordinates by separation of variables and the -dependence obeys Bessel's equation, whose solutions oscillate like slowly-stretching cosines. In this course they surface in E2 (boundary-value problems with cylindrical boundaries) and again for waveguides and fibers in E8. Nothing about them needs memorizing now — but when you meet a drumhead's vibration pattern or a fiber mode's ringed cross-section, recognize them as this coordinate system's home orchestra.
Can I mix cylindrical and Cartesian components in one calculation?
Only with explicit conversion at the seams. The safe workflow: choose one system for the calculation; if inputs arrive in the other, convert them first using equation (2) (for vectors, convert components, not just coordinates: , ). The one shortcut that is always legal: is shared by both systems, so purely axial quantities pass freely. The illegal move is adding values from points at different azimuths as if they were numbers on a common axis — they are components along different directions, and only a Cartesian intermediate step can add them honestly.