Differentiating vector fieldsDifferentiating vector fields
A fixed arrow can have changing numbers. Repair the derivative by accounting for the moving basis.A fixed arrow can have changing numbers. Repair the derivative by accounting for the moving basis.
1 worked example in this chapter
Before you begin
What is missing when we differentiate vector components?
- Use a metric to turn components into measurements ↗Find a speed from radial and angular coordinate rates.
- Transform vectors and covectors ↗Change coordinates in a directional derivative and recover the same scalar.
By the end: Explain the connection correction and why lower indices acquire a minus sign.
6.1 A fixed arrow with changing components#6.1 A fixed arrow with changing components
Draw an arrow pointing east on a flat sheet. At each point of a circle around the origin, describe that same eastward direction using two local unit arrows: one pointing outward and one pointing around the circle. At the rightmost point, east is outward. At the top, east is opposite the direction of increasing angle. The direction stayed fixed, but its components changed.Draw an arrow pointing east on a flat sheet. At each point of a circle around the origin, describe that same eastward direction using two local unit arrows: one pointing outward and one pointing around the circle. At the rightmost point, east is outward. At the top, east is opposite the direction of increasing angle. The direction stayed fixed, but its components changed.
A vector field assigns a vector to each position. A velocity field, for example, tells you the direction and speed of flow at every location. Its arrows are instructions about motion at those locations; they are not a photograph of separate particles. Start with the uniform eastward field below. Move P and Q around the circle and compare their component readouts. Then bring the two physical arrows to the same origin, where their difference is easy to see.A vector field assigns a vector to each position. A velocity field, for example, tells you the direction and speed of flow at every location. Its arrows are instructions about motion at those locations; they are not a photograph of separate particles. Start with the uniform eastward field below. Move P and Q around the circle and compare their component readouts. Then bring the two physical arrows to the same origin, where their difference is easy to see.
Compare two nearby arrows.
Each arrow gives the velocity at its tail. Compare two positions, P and Q. The thin gold directions point outward and around the circle at each position.
Velocity arrows share one scale. Gold arrows mark unit directions, not velocities.
The pink and blue velocity arrows coincide when brought to one origin. The field is unchanged. The two pairs of polar components differ because “outward” and “around” point in different directions at P and Q.
Separate the component change from the frame change
First change the two component numbers while keeping P’s frame. Then turn that frame into Q’s frame, keeping the new numbers. The gold and blue arrows below show these two contributions, added head to tail. Their sum is the actual change in velocity.
For a uniform field, the two contributions cancel. Try rotation: its polar components are constant, so the entire change comes from the turning frame.
(-0.17, -0.56) + (0.17, 0.56) = (0.00, 0.00) m/s
Reduce the separation to approach a derivative. We will next divide these changes by the angular step and let that step approach zero.
To check the construction, collect the two unit directions as the columns of a matrix , and the two component numbers into a column . Then . Adding and subtracting gives the exact finite identity
The second term uses Q’s component numbers because the first step has already changed the numbers. No small-step approximation is needed for this decomposition.
The fields and their limits
The uniform flow has velocity metres per second. The other fields are for expansion, for rotation, and for shear, with . P and Q lie on a circle of radius 1.8 metres. Every velocity arrow in the field uses the same length scale; the comparison plot has its own labeled velocity axes.
These are prescribed, steady velocity fields in a flat plane. The arrows are samples of the field, not moving particles, and no fluid force law is being solved. Bringing them to one origin uses ordinary translation in a Euclidean plane. On a curved surface we must specify how to transport a vector first.
The gold frame consists of the unit vectors . The polar coordinate basis is different: its angular vector is . The readouts here use the unit frame, so both component numbers have velocity units.
The uniform field and the rotating field give opposite surprises. A fixed physical arrow can have changing components. A turning physical arrow can have constant components. In both cases, the missing information is how the local frame changes. Our derivative must keep track of the whole arrow.The uniform field and the rotating field give opposite surprises. A fixed physical arrow can have changing components. A turning physical arrow can have constant components. In both cases, the missing information is how the local frame changes. Our derivative must keep track of the whole arrow.
We can check the eastward example with the unit basis from §4.8. For the algebra, let denote the unit direction of the eastward flow. In fixed Cartesian components,
The eastward unit vector can therefore be written as
Differentiating its two coefficients gives and . If we stop there, we predict a changing vector. But the basis vectors also change:
Apply the product rule to the whole expression for :
The cancellation agrees with the drawing. A useful derivative must account for changes of basis as well as changes of components.The cancellation agrees with the drawing. A useful derivative must account for changes of basis as well as changes of components.
This example used unit vectors. The polar coordinate basis is , : its angular vector also changes length with radius. We now work in coordinate bases and use the chain rule to identify the general problem.
Let a vector field have components in coordinates . Under new coordinates , define the Jacobian and its inverse by
Then . Apply the chain rule and the ordinary product rule:
The first term is exactly how a tensor with one upper and one lower index should transform. The second term is the trouble: it involves derivatives of the coordinate transformation itself. A tensor transformation changes the description of an object using the Jacobian at the point; it does not need second derivatives of the map.The first term is exactly how a tensor with one upper and one lower index should transform. The second term is the trouble: it involves derivatives of the coordinate transformation itself. A tensor transformation changes the description of an object using the Jacobian at the point; it does not need second derivatives of the map.
Notice when the trouble disappears. A Cartesian rotation or a Lorentz transformation has a constant Jacobian, so the extra term vanishes. For these transformations, differentiating the components already gives a tensor. A position-dependent change of coordinates requires the extra correction.Notice when the trouble disappears. A Cartesian rotation or a Lorentz transformation has a constant Jacobian, so the extra term vanishes. For these transformations, differentiating the components already gives a tensor. A position-dependent change of coordinates requires the extra correction.
The solution is to differentiate the geometric vector, accounting for the changing local basis. We call the resulting operation the covariant derivative.The solution is to differentiate the geometric vector, accounting for the changing local basis. We call the resulting operation the covariant derivative .
6.2 What a derivative must be able to compare#6.2 What a derivative must be able to compare
There is a subtlety even before the algebra. A vector at event belongs to , the tangent space at . A vector at a neighboring event belongs to . These are different vector spaces. Subtracting their component lists does not, by itself, define a geometric subtraction.
On the plane we could compare arrows using one fixed Cartesian basis. A general manifold does not come with that common basis. A connection supplies a rule for comparing vectors at neighboring points. Repeating the comparison along a path will let us transport a vector from one point to another; different paths can give different results.On the plane we could compare arrows using one fixed Cartesian basis. A general manifold does not come with that common basis. A connection supplies a rule for comparing vectors at neighboring points. Repeating the comparison along a path will let us transport a vector from one point to another; different paths can give different results.
In a coordinate basis , define connection coefficients by
Here means differentiation along coordinate direction using the chosen comparison rule. The coefficients describe the resulting change of basis vector . They generalize the basis derivatives we just calculated on the plane.
Apply the product rule to :
ThereforeTherefore
The first term measures changing components. The second corrects for the comparison of local bases. Neither term separately has to be a tensor; their sum does.The first term measures changing components. The second corrects for the comparison of local bases. Neither term separately has to be a tensor; their sum does.
The derivative index is a lower index because differentiation asks for a direction as its input. If specifies that direction, then is a vector. Before choosing , is a tensor with an extra covector slot waiting to receive it.
An unchanged arrow can have changing componentsAn unchanged arrow can have changing components
Can a vector have a nonzero component derivative while the vector itself stays fixed?Can a vector have a nonzero component derivative while the vector itself stays fixed?
See the idea
Carry a little radial-and-angular frame around the flat plane. Keep a unit arrow pointing east in the fixed Cartesian picture. The frame rotates beneath it, so its two component readings change. A derivative of the whole arrow must include both changes: the component readings and the basis vectors that give those readings meaning.Carry a little radial-and-angular frame around the flat plane. Keep a unit arrow pointing east in the fixed Cartesian picture. The frame rotates beneath it, so its two component readings change. A derivative of the whole arrow must include both changes: the component readings and the basis vectors that give those readings meaning.
Work it out
- Make the moving rulers explicit
The hats mark unit vectors. The angle is in radians, and these basis vectors are written in a fixed Cartesian frame. They are perpendicular and have length one.
Why this step works The radial unit vector points outward; rotating it by a right angle gives the angular unit vector.
- Describe the fixed eastward arrow
Take in the Cartesian frame. Dot products with the two unit rulers give its moving-frame components. At , east is the negative angular direction.
Why this step works In an orthonormal frame, each component is the dot product with its unit basis vector.
- Differentiate the basis as well as the numbers
Direct differentiation gives and . The product rule now contains four terms.
Why this step works The apparent component change cancels exactly against the change of the moving rulers.
- Recognize the correction a connection must supply
For any vector with unit-frame components and , the corrected derivative includes the same basis terms. Our eastward arrow makes both corrected components zero.
Why this step works Collect the product-rule terms along each unit basis vector. This is the flat-plane connection written in a moving frame.
Go deeper
These are orthonormal-frame components, not polar coordinate components. The coordinate basis satisfies and for , so but . This scale factor matters when comparing the formulas with Christoffel symbols. The calculation above is an exact product-rule proof in the Euclidean plane. On a general manifold, a connection supplies the comparison between neighboring tangent spaces; an ambient Cartesian frame need not exist. A nonzero connection coefficient can describe changing rulers in a completely flat geometry. Curvature asks whether consistent local comparisons fail to agree around a loop.
A STATE YOU CAN CHECK
At an angle of 45°, the polar unit basis has rotated, but the Cartesian vector still points east.
- Polar components
- Cartesian vector
The worked steps explain these measurements. Interactive controls appear when available.
Open the reference diagramOpen the reference diagram
Test the idea Test the idea
FIRST, PREDICTFIRST, PREDICT
The eastward arrow is examined at . Which description is correct?
Compare the reasoningCompare the reasoning
Its components are , proving that the vector field is turning.
A changing component list can come entirely from changing rulers. Include the basis derivative before concluding that the field changes.A changing component list can come entirely from changing rulers. Include the basis derivative before concluding that the field changes.
Its unit-frame components are and its geometric derivative is zero.
Exactly. At that position points west, so the unchanged arrow has angular component . The changing basis cancels its component derivative.
Its components are because the arrow stayed fixed.
Those are its Cartesian components. The local radial-and-angular frame has rotated.Those are its Cartesian components. The local radial-and-angular frame has rotated.
A hintA hint
Evaluate both moving basis vectors at , then express east using them.
NOW CHANGE THE EXAMPLENOW CHANGE THE EXAMPLE
At and , a particle’s Cartesian velocity is . What is the coordinate rate ?
A hintA hint
Project onto to obtain the physical angular velocity component, then divide by .
Work through the solutionWork through the solution
The unit-frame component is . The coordinate component is , or one radian per second. Mixing these two components would lose a factor of .
The covariant derivative combines changing components with the comparison of local bases so that an unchanged vector has zero derivative.The covariant derivative combines changing components with the comparison of local bases so that an unchanged vector has zero derivative.
6.3 Why covectors acquire a minus sign#6.3 Why covectors acquire a minus sign
A covector assigns a scalar to a vector . In components,
A scalar has no moving basis indices to correct, so . We also require a derivative to obey the product rule and respect contractions:
Substitute the vector derivative. The final term contributes . There is no corresponding connection term in the ordinary derivative of the scalar on the left. The covector derivative must cancel it, for every possible vector. Thus
The opposite signs keep differentiation of the scalar pairing consistent: the vector correction and covector correction cancel.The opposite signs keep differentiation of the scalar pairing consistent: the vector correction and covector correction cancel.
For a general tensor, every upper index gets a plus correction and every lower index gets a minus correction. For example,For a general tensor, every upper index gets a plus correction and every lower index gets a minus correction. For example,
Each correction replaces exactly one index with a summed index. Every term retains the same free indices . Checking those free indices helps catch an incorrectly placed index.
Respecting contractions means, for example,Respecting contractions means, for example,
The two connection corrections cancel after a dummy-index relabeling. However, raising an index is an additional operation involving the metric. Commuting differentiation with raising and lowering requires metric compatibility, , which we will impose and examine in §7.2. Compatibility with vector–covector contraction and compatibility with the metric are related ideas, but are not identical assumptions.
6.4 Taking a second derivative of a scalar#6.4 Taking a second derivative of a scalar
For a scalar field ,
After one differentiation, the result is the covector , with components . Its derivative therefore needs the covector correction:
This is the covariant Hessian. The metric connection derived in §5.5 has , so this Hessian is symmetric in . Section 7.2 will explain the name torsion-free for that symmetry in a coordinate basis. Ordinary second partial derivatives are symmetric too, but generally lack the correction needed to transform as a tensor.
There is one useful special case. At a critical point, where , the correction vanishes. The Hessian computed there with ordinary second derivatives has a coordinate-independent meaning as a bilinear form. This is why classifying a stationary point as a maximum, minimum, or saddle can be done intrinsically despite using coordinate derivatives.
A related distinction: , with components , is a covector defined without a metric. The gradient vector is
and does require a metric. In Euclidean space these objects are often merged into one mental image. For example, in Cartesian Minkowski coordinates, . The covector and gradient vector therefore need different component lists even in this simple frame.
6.5 Divergence and physical volume#6.5 Divergence and physical volume
The divergence contracts the derivative index with the vector index. It extends the net-outflow calculation from Chapter 0 to general coordinates:The divergence contracts the derivative index with the vector index. It extends the net-outflow calculation from Chapter 0 to general coordinates:
Use the Christoffel formula obtained from the free-particle action in §5.5. We will derive it again from geometric requirements in §7.3. In its trace , the first and third metric-derivative terms cancel after relabeling their summed indices. The remaining term gives
Here is the metric determinant, which is negative for our spacetime signature. The logarithmic derivative is shorthand for ; equivalently one can take the logarithm of the ratio to a fixed reference with the same units.
To see the matrix identity behind this step, perturb an invertible matrix by a small amount :
Why does the trace appear? In the determinant of , a first-order contribution chooses one diagonal perturbation and leaves every other diagonal entry equal to one. Their sum is . Terms involving off-diagonal entries require at least two perturbations. Thus the fractional change of is to first order. Taking its square root supplies the factor used above.
Combining the two terms by the product rule givesCombining the two terms by the product rule gives
Why should the determinant appear? A coordinate box of side lengths represents physical four-volume . A flow can have changing coordinate components merely because the coordinate boxes expand or shrink. Divergence measures net outflow per physical volume, so it must include that change in the measuring boxes.
In an -dimensional Riemannian space, replace by ; the general expression uses . The idea is the same.
We can now take the divergence of a gradient. In spacetime this combination is called the wave operator, written (read “box”):
In Cartesian Minkowski coordinates, the metric and its determinant are constant. The inverse metric supplies one minus sign; gives . Therefore
In the simplest scalar wave model, the field obeys the wave equation . As in Chapter 2, a scalar field assigns one coordinate-independent value to each event. We can see why this equation describes waves by constructing a solution. Choose a smooth profile and set , with no or dependence. The profile moves to the right at speed : after time , the same value of its argument occurs a distance farther right. Differentiating gives
The primes here mean derivatives of with respect to its one argument. We have verified a traveling-wave solution. The curved-spacetime formula above includes the metric and volume factors needed to state the same scalar-field law in other geometries. Other kinds of field can have different equations; this is the scalar example.
A tensor with two upper indices has a second basis index to correct. Contracting one with the derivative index does not remove the other. ThusA tensor with two upper indices has a second basis index to correct. Contracting one with the derivative index does not remove the other. Thus
The volume factor accounts for the contracted index ; the final connection term accounts for the remaining index . We will need both terms when differentiating the stress-energy tensor in Chapter 11.
6.6 When the order of two flows matters#6.6 When the order of two flows matters
A vector field can tell a point how to move: at every instant, follow the arrow at the point’s current location. The resulting motion is called the field’s flow. A velocity field uses time as its parameter; a mathematical flow can use another curve parameter.A vector field can tell a point how to move: at every instant, follow the arrow at the point’s current location. The resulting motion is called the field’s flow . A velocity field uses time as its parameter; a mathematical flow can use another curve parameter.
Consider two instructions on a flat plane. The field moves a point horizontally at unit rate. The field moves it vertically at rate , so its arrows get longer farther to the right. Follow each instruction for a small parameter step . The coordinates and the parameter are dimensionless in this example.
Starting from , does X followed by Y reach the same place as Y followed by X? The Lie bracket—pronounced “lee”—measures the leading difference between these orders. First watch the two routes.
Try the other order.
Move right into a stronger upward flow. Now reverse the order of those instructions. The two dots start together; watch where they finish.
Faint arrows show the Y field. Farther right, the same flow step carries you farther upward.
Why the endpoints differ
Both dots start at . X changes x at unit rate, leaving y fixed. Y changes y at rate x, leaving x fixed. Follow each field for the same parameter step .
For A, X first takes the point to . The Y step then raises it by . For B, the Y step happens while x is still one, so it raises the point only by . X then changes only its horizontal position. The final vertical gap is
The coordinates and h are dimensionless. This is a mathematical flow parameter, not a physical clock. The circles marked A and B indicate the final endpoints even during playback; filled dots track progress. Both paths use exact flow solutions. The faint field arrows use one shared scale.
The plane is flat. The gap records the fact that Y’s instruction changes with position. It is a difference between endpoints of two flows; the parallel-transport experiment compares directions after a vector follows a specified path.
For X then Y, the horizontal step first changes to . The vertical flow is now stronger, and its step raises by . For Y then X, the vertical step happens while is still one, so it raises only by . The endpoints are
Their difference is . A smaller step makes the gap smaller, but dividing the gap by always gives the same upward vector . This remaining vector is for these fields.
Why does the square of the step appear? The first move changes where the second instruction is sampled. Over a small X step, the component changes by to first order. Following that changed field for another step contributes . Reversing the order gives instead. The other second-order terms occur in both routes and cancel. Thus, for smooth fields, the leading endpoint difference is , where
The index labels the component of the resulting vector; is summed over the coordinate directions. In our example, and . Only contributes, so .
We can also recognize this vector by its action on a scalar function. Recall from §4.3 that means the directional derivative of along . The ordinary product rule gives
The mixed second derivatives of the smooth function cancel. In this operator language, the bracket is a commutator: one composition minus the reversed composition. A bracket of zero means the flows agree through this leading comparison; constant coordinate directions such as and have zero bracket.
The plane in the experiment has remained flat throughout. The endpoint gap comes from position-dependent instructions. In §7.2, subtracting this effect will be essential to defining torsion without confusing it with the behavior of the chosen vector fields.The plane in the experiment has remained flat throughout. The endpoint gap comes from position-dependent instructions. In §7.2, subtracting this effect will be essential to defining torsion without confusing it with the behavior of the chosen vector fields.
Check the distinction in a polar frameCheck the distinction in a polar frame
On a regular polar patch with , the coordinate fields and commute. Their components in their own coordinate basis are constant. The unit angular direction is instead , while . Its factor changes with position:
The nonzero bracket belongs to this choice of unit frame on an ordinary flat plane. It does not indicate curvature or torsion. This is why a formula stated for a coordinate basis cannot always be copied unchanged into a moving unit frame.The nonzero bracket belongs to this choice of unit frame on an ordinary flat plane. It does not indicate curvature or torsion. This is why a formula stated for a coordinate basis cannot always be copied unchanged into a moving unit frame.
The idea to keepThe idea to keep
A derivative must compare geometric objects, not just their changing coordinates. The connection supplies that comparison.A derivative must compare geometric objects, not just their changing coordinates. The connection supplies that comparison.
Why does a constant eastward field have varying polar components?Why does a constant eastward field have varying polar components?
The radial and angular directions rotate from place to place. The changing components compensate for the changing basis; the covariant derivative cancels the two.The radial and angular directions rotate from place to place. The changing components compensate for the changing basis; the covariant derivative cancels the two.