Method
Orthogonal curvilinear coordinates
Adapted
Builds the orthonormal tangent frame and the scale factors of a curvilinear coordinate system, gives the line, area and volume elements they produce, and derives the four general formulas for grad, div, curl and the Laplacian, with a fully worked example in parabolic cylindrical coordinates.
Prerequisites: Divergence, curl and the Laplacian, Gradient and directional derivative, Vector differential identities, Multiple integrals and change of variables, Implicit and inverse function theorems
Let be open and let
be of class , injective, with a inverse — a curvilinear coordinate system on the image . (Riley, Hobson and Bence ask only for continuity, differentiability and a single-valued inverse; is assumed here because the proof below differentiates twice.) Both of our sources allow the conditions to break down on a few exceptional points and curves, such as the origin or the polar axis; here those sets are simply removed from .
- The coordinate surfaces through a point are the three level sets ; each pair of them meets in a coordinate curve, along which only one coordinate varies.
- The tangent vectors are , tangent to the -curve in the direction of increasing . We assume throughout .
- The scale factors are their lengths, and the unit basis is . A coordinate need not be a length; carries whatever dimension makes one.
- The system is orthogonal when for at every point of , so that is an orthonormal basis at each point. Equivalently, in Arfken's notation the metric coefficients form a diagonal matrix, . Throughout this unit the labelling is also chosen so that the frame is right-handed, .
A vector field is written in the unit basis as ; the are its physical components, and they carry the dimensions of itself. The frame rotates from point to point, so the must be differentiated along with the whenever an operator is applied to .
Let be an orthogonal curvilinear system on as above. Then, at every point of :
- Displacement.
- Arc length. Since the are orthonormal, with no cross terms; a line integral of along a curve is .
- Area. On a coordinate surface , the patch spanned by and has area and unit normal , so the flux of through it is ; the two other faces are obtained by cycling .
- Volume. The infinitesimal box spanned by has volume The scalar triple product on the left is the determinant whose columns are the , so this says that the Jacobian factor of the map is (change of variables) — orthogonality is what lets the determinant be read off from the three lengths alone.
With the hypotheses of the definition, let be a scalar field (a one for the Laplacian) and a vector field on . Writing :
The determinant is expanded along its first row, the entries of the middle row acting as operators on the entries of the last; explicitly its component is , and the other two follow by cycling. Setting all recovers the Cartesian formulas of Divergence, curl and the Laplacian.
Only the gradient has to be computed from scratch, and it comes straight from comparing two expressions for the same differential : the chain rule gives it in terms of , and the definition of the gradient gives it as , where carries the scale factors. Applying that one formula to yields the key relation , which turns each basis vector into a gradient: and also . The divergence and the curl then follow from the two vanishing identities and : each kills the awkward term of a product rule and leaves a single gradient, which the first formula evaluates. The Laplacian is the divergence formula fed with the gradient formula.
Throughout, the frame is orthonormal and right-handed, so , , , and the component of any vector along is its dot product with .
1. The gradient. Fix a point and let the coordinates change by . The chain rule for a function of three variables gives . On the other hand is a field on , so by the defining property of the gradient, . Expand both factors in the unit basis: writing and using from the element statement, orthonormality kills every cross term and leaves . The three increments are independent, so the coefficients must agree one by one: . Since we may divide, which is the gradient formula.
2. The reciprocal relation. First, the coordinate functions are twice differentiable as functions of position. The columns of are the three tangent vectors , which are mutually orthogonal and have lengths , hence linearly independent; so at every point of . Since is with nowhere-vanishing Jacobian determinant, the inverse function theorem (Implicit and inverse function theorems) makes it a local diffeomorphism; as it is also injective, is open and is on it. In particular each coordinate function is a function of — a stronger conclusion than the inverse assumed in the definition, and one we need in steps 3 and 5.
Now apply step 1 to . Its partial derivatives are , so only one term survives:
Thus : in an orthogonal system the frame tangent to the coordinate curves and the frame normal to the coordinate surfaces coincide.
3. The divergence. Treat one term at a time; the divergence is linear. For the first term, use right-handedness and then step 2 twice:
Apply the product rule with and . The second term vanishes, because for any two scalars (Vector differential identities); this is where being is used, since by step 2 it is what makes and twice differentiable functions of position. Hence, using step 2 once more to rewrite ,
The dot product with picks out the first component of the gradient, which step 1 gives as . So . Cycling the labels — which preserves right-handedness — gives the other two terms, and adding them gives the divergence formula.
4. The Laplacian. By definition . Step 1 says that the physical components of are , which are when is . Substituting them into step 3 gives the stated formula at once. Note that no mixed derivative with can appear: orthogonality is exactly what removes them.
5. The curl. Again work one term at a time, now using from step 2, so that . The product rule with and loses its second term because for a scalar (Vector differential identities), leaving
Expand the gradient by step 1. Its part crosses with to zero, and the other two use and :
Cycling gives the contributions of and . Collect the three results: the terms along come from and and add up to
and cyclically for the other two. Multiplying and dividing by makes this , which is precisely the cofactor of in the stated determinant; the same holds for the other two entries, so the determinant is a compact way of writing the three components at once.
- Orthogonality enters three times: in step 1, to make separate into three independent terms; in step 3, through , which needs the frame to be orthonormal and right-handed, not merely orthogonal; and in the volume element, to make the determinant equal . Drop orthogonality and none of the four formulas survives: a non-orthogonal system has off the diagonal, the Laplacian acquires mixed derivatives , and the right language is tensor analysis with raised and lowered indices.
- , that is , is needed to divide by , to define at all, and (in step 2) to keep away from zero. It is exactly the condition that fails on the excluded sets: at in spherical polars vanishes, and on the polar axis vanishes. Equivalently is the Jacobian factor, and the coordinates degenerate where it vanishes.
- Right-handed labelling is a convenience in the proof but a real hypothesis only for the curl. Step 3 writes , which is false in a left-handed frame; but there the minus sign appears twice — once in and once in — and the two cancel in . So the gradient, divergence and Laplacian formulas hold whatever the handedness. The curl does not: swapping two coordinates, say , reverses the sign of the determinant and hence of . Spherical polars and cylindrical polars are both listed in right-handed order.
- The frame is not constant. Because varies, and need not vanish even though has constant length. For the same reason the vector Laplacian is not obtained by applying to each physical component separately; see Cylindrical and spherical coordinates.
- The non-orthogonal case. Riley, Hobson and Bence close §10.10 by pointing the reader to the general tensor treatment, which is where a system with off the diagonal has to be handled.
- What the divergence formula means. The combination is the flux of per unit through a face , and is the volume of the cell. So the formula is the net outflow per unit volume, computed face by face, and that is how Arfken derives it: the two opposite faces of a cell contribute evaluated at , and it is essential that as well as be evaluated on each face, since the two faces have different areas. The curl formula reads the same way with circulations around the faces instead of fluxes through them.
- A worked consequence. Putting , in the divergence formula gives , which is Arfken's Exercise 3.10.4(a) and quantifies the previous remark's point that the frame is not constant.
The same formulas in Riemannian language. For a Riemannian metric in arbitrary smooth local coordinates , Lee's Problem 16-11 states the divergence of a vector field with contravariant components as
and his Problem 16-13 states the Laplacian as . The minus sign is Lee's convention: he defines the geometric Laplacian as , the negative of the operator used here and throughout this handbook, so that its eigenvalues are non-negative; he warns explicitly that conventions differ between authors. Up to that sign the two statements contain ours. For an orthogonal system, gives and , while a physical component is related to the contravariant one by (the basis has length ). Substituting turns Lee's two formulas into the divergence and Laplacian stated above.
Given a candidate map :
- Differentiate. Compute the three tangent vectors in Cartesian components. Everything else is algebra on these.
- Test orthogonality by checking identically. If any product is non-zero the formulas of this unit do not apply.
- Read off the scale factors and record where they vanish; delete those sets from and state the surviving domain, together with the ranges of the on which is injective.
- Fix the orientation. Check ; if it comes out , swap two of the coordinates before using the curl.
- Write down the elements: , the three face areas and its cyclic partners, and . These are what integrals need.
- Substitute into the four formulas. Simplify , and its cyclic partners first; in most useful systems these collapse, which is what makes the Laplacian tractable.
- Check against a known field. Take a simple Cartesian field, express its physical components in the new frame, apply the formulas, and compare with the Cartesian answer. Two or three such tests catch almost every algebraic slip.
How it fails. Step 2 is the one that is skipped and should not be: elliptic, parabolic and bipolar systems are orthogonal, but many natural-looking maps (a sheared or a body-fitted grid) are not, and applying these formulas to them is simply wrong. Step 3 is the second: a formula that is correct on says nothing on the degenerate set, and a field that looks singular on the axis in these coordinates may be perfectly smooth there.
Define, for and and all real ,
- Geometry and injectivity. In complex notation , so the map is the squaring map applied to the open first quadrant of the -plane, whose image is the open upper half plane ; squaring is injective there because it doubles arguments lying in . The surfaces and are confocal parabolic cylinders with the -axis as common focal line, opening in the and directions.
- Tangent vectors. , , .
- Orthogonality. , and both are perpendicular to since their third components vanish. The system is orthogonal.
- Scale factors. and , so on the whole domain. The two transverse scale factors are equal — the map is conformal in the -plane, as the complex form predicts, with .
- Orientation. , so is already right-handed.
- Elements. and .
- The Laplacian. Here , and , so the general formula collapses to
- First check (step 7 of the method). Take , for which in Cartesian coordinates. In the new variables . Then and , whose sum is ; dividing by gives , as required.
- Second check: a vector field. Take the rigid-rotation field , for which and . Its physical components are so that and . The divergence formula gives For the curl, the and components vanish because and nothing depends on , while the component is So , matching the Cartesian value. Both checks are independent of the coordinate algebra that produced them, which is the point of step 7.
Separation of variables. The reason for cataloguing these systems is that the Laplacian above separates in a handful of them, and each separation names a family of special functions. The example's parabolic cylinder coordinates are the case behind diffraction at a straight edge. The edge lies along the -axis, the problem is two-dimensional, so put with no -dependence in the Helmholtz equation . The collapsed Laplacian of the example gives ; multiply by and the equation becomes
What makes this separate is that is a sum of a function of and a function of : once it has been cleared from the denominator, the 's and the 's sit in different terms. Setting the first group equal to a constant and the second to ,
two parabolic cylinder equations: the substitution sends the first to Weber's standard form with .
The straight-edge field is the elementary member of this family, . Then solves the first equation (indeed ), and writing reduces the second to , so that — a Fresnel integral. Since , the product is
a plane wave modulated by a Fresnel integral of the single parabolic coordinate , and it vanishes on , which is exactly the half-plane , . The modulus of that integral, traced across the geometric shadow boundary, is the fringe pattern at a straight edge. (If instead a propagating factor is kept, the same algebra goes through with replaced by the transverse wavenumber ; the separation is only useful when , since at the quadratic terms disappear and and are mere exponentials.) Cylindrical and spherical polars give Bessel functions and spherical harmonics in the same way (Cylindrical and spherical coordinates); prolate spheroidal coordinates give the functions used for a dipole antenna, and toroidal coordinates those used for the field of a current ring.
Conservative discretisation. In computational fluid dynamics and plasma simulation the grid is usually curvilinear, following the geometry of a nozzle, a blade passage or a tokamak flux surface. Finite-volume schemes discretise the divergence in exactly the form derived here: the flux through a face is times the face's coordinate extent, and the cell volume is . Summing over neighbouring cells then telescopes exactly, because each interior face is counted once with each sign, so the discrete scheme conserves mass and momentum to machine precision — a property that is lost if the operator is expanded out into partial derivatives of the components first.
Reading a field on the axis. The remark's warning about the degenerate set is a practical one. Spacecraft and tokamak diagnostics report vector data in the natural curvilinear frame, where the components of a perfectly smooth field blow up or become undefined where a scale factor vanishes. Interpolating such data near the axis without first transforming back to a frame that is continuous there is a standard source of spurious signals.