Vectors, covectors, and tensorsVectors, covectors, and tensors
Describe a displacement, change the axes, and work out which numbers must change with them.Describe a displacement, change the axes, and work out which numbers must change with them.
1 worked example in this chapter
Before you begin
How can components change while the physical object stays the same?
- Differentiate, integrate, and use the chain rule ↗For f(x,y)=x²y along x=t, y=2t, find df/dt at t=1.
- Multiply matrices and read a bilinear form ↗For G=diag(1,4) and v=(3,2), calculate vᵀGv.
By the end: Transform a vector and a covector and check that their pairing is unchanged.
2.1 Vectors and their components#2.1 Vectors and their components
A drone must move three metres east and four metres north. You can draw that displacement as an arrow from its starting point to its destination. Rotating the map changes the arrow’s horizontal and vertical components on the screen, but the destination stays the same.A drone must move three metres east and four metres north. You can draw that displacement as an arrow from its starting point to its destination. Rotating the map changes the arrow’s horizontal and vertical components on the screen, but the destination stays the same.
We need to distinguish the displacement from the numbers used to describe it. Choose two basis vectors: , one metre east, and , one metre north. Any displacement in this plane can be written as a unique combination of these two arrows. Our drone’s displacement is
The numbers 3 and 4 are its components in this basis. The basis vectors need not have unit length or meet at right angles. In a plane, they must be nonparallel and nonzero, so that they can describe both independent directions.The numbers 3 and 4 are its components in this basis . The basis vectors need not have unit length or meet at right angles. In a plane, they must be nonparallel and nonzero, so that they can describe both independent directions.
For a general vector, write the components as and :
The superscripts 1 and 2 label components; they are not powers. The last expression uses Einstein summation: when an index appears once upstairs and once downstairs in a term, sum over its allowed values. Here takes the values 1 and 2. The index is an instruction to add the two contributions.
Now keep the drone’s destination fixed but choose a longer first basis vector:Now keep the drone’s destination fixed but choose a longer first basis vector:
A prime labels the new description. How many copies of the new first arrow do we need? Each copy covers twice the distance, so we need half as many:A prime labels the new description. How many copies of the new first arrow do we need? Each copy covers twice the distance, so we need half as many:
Thus and . The vector has stayed the same while its components have changed. This compensating behavior is called contravariant transformation. We will calculate more general changes in §2.4.
Changing the basis while keeping fixed is a passive transformation. Rotating the actual displacement while keeping the basis fixed is an active transformation. In the first case the drone reaches the same place; in the second it generally does not.
2.2 Linear maps and matrices#2.2 Linear maps and matrices
A linear map takes a vector as input and gives a vector as output, respecting addition and scaling:A linear map takes a vector as input and gives a vector as output, respecting addition and scaling:
Here and are numbers. Knowing what does to the basis vectors determines what it does to every vector. Suppose
For the drone’s vector, linearity givesFor the drone’s vector, linearity gives
The matrix stores the components of and in its first and second columns:
Index notation expresses this same multiplication asIndex notation expresses this same multiplication as
The summed index selects the input components. The unsummed index selects the output component: setting gives , while setting gives . We call a dummy index and a free index.
The identity map leaves each basis vector unchanged. Its matrix has ones on the diagonal and zeros elsewhere. Its components have a special name, the Kronecker delta:The identity map leaves each basis vector unchanged. Its matrix has ones on the diagonal and zeros elsewhere. Its components have a special name, the Kronecker delta :
A matrix can also represent a rule with a different job. The matrix in §0.6 accepted two vectors and returned a dot product. The matrix here accepts one vector and returns another vector. When a matrix appears, identify its inputs and output before using it.A matrix can also represent a rule with a different job. The matrix in §0.6 accepted two vectors and returned a dot product. The matrix here accepts one vector and returns another vector. When a matrix appears, identify its inputs and output before using it.
2.3 Covectors measure vectors#2.3 Covectors measure vectors
Suppose a measuring rule takes a vector’s first component and adds twice its second component:Suppose a measuring rule takes a vector’s first component and adds twice its second component:
For , it returns . If we double the vector, the answer doubles. If we add two vectors, their answers add. A linear rule of this kind, taking a vector and returning one number, is called a covector.
More generally, writeMore generally, write
The coefficients and specify the rule in this basis. In our example they are 1 and 2. This operation is called the pairing of a covector with a vector. It does not require an angle or a length.
There is a useful covector for each component: the rule that extracts just that component. Call these rules and . Then and . Applied to the basis vectors themselves, they obey
These component extractors form the dual basis. Any covector can be assembled from them:These component extractors form the dual basis . Any covector can be assembled from them:
In particular, : the coefficient tells us what the rule returns for one basis vector.
Now reuse the longer basis vector . The same rule returns , so its new first coefficient is . The drone’s first component halved, but the measuring rule’s coefficient doubled:
The answer is unchanged. Lower indices mark this transformation behavior of covector components. The dual basis changes too: , because its job is to extract the new, halved component.
A scalar field assigns one value to each point: for example, the temperature at each position on a plate. For this example, and are dimensionless labels counting steps on the plate’s grid. The first-order temperature change under a displacement with components is
The measuring rule , called the differential of , is a covector. It is exactly linear in its input. Its prediction of a finite temperature change is an approximation when the temperature field varies nonlinearly.
In Cartesian calculus we also arrange these partial derivatives into a gradient arrow. Converting a covector into that arrow uses the lengths and angles of the axes. Chapter 4 develops this conversion; a covector by itself only supplies the measuring rule.In Cartesian calculus we also arrange these partial derivatives into a gradient arrow. Converting a covector into that arrow uses the lengths and angles of the axes. Chapter 4 develops this conversion; a covector by itself only supplies the measuring rule.
2.4 Changing coordinates with the chain rule#2.4 Changing coordinates with the chain rule
Consider a path whose position is described by and , with a dimensionless parameter marking progress along the path. Its tangent vector has components and : the rates at which the position labels change along the path.
Relabel the same positions using and . The chain rule gives and . This is the longer-first-basis example again, expressed as a change of coordinates.
For a general smooth, invertible change, each new coordinate can depend on several old ones. We will use Greek indices for general coordinates. In a two-dimensional example their range has two values; in spacetime it will be . The chain rule reads
The Jacobian is the matrix of first partial derivatives. Differentiating the inverse coordinate change gives its inverse matrix :
For , , these are and . The notation lists the diagonal entries; the other entries are zero.
To find how a covector transforms, require it to give the same answer on the same vector. Substitute into its pairing:
Since this must hold for every input vector, the new coefficients areSince this must hold for every input vector, the new coefficients are
The vector uses ; the covector uses . This is how their changes compensate.
For a scalar field , the value at a given point is unchanged by relabeling: . Applying the chain rule to its derivatives gives the same covector law:
The differential is writtenThe differential is written
Here denotes a coordinate component extractor: . This connects two familiar uses of . Along a path, is a tangent component; the covector measures exactly that component when applied to the tangent. In the illustration below, counts the change in the label as we follow a vector through planes of constant .
For a nonlinear coordinate change, and vary from point to point. The transformation rules above still work at each point. Chapter 6 will examine the extra term that appears when we differentiate components while the Jacobian itself changes.
An arrow meets a family of planes
A covector measures how many level intervals a displacement crosses. Rotate the scene to see that this is a pairing, not a length.
Read the scene. The numbers label the level sets of in three-dimensional Euclidean space. Small rings mark the exact intersections the arrow has reached. The control follows as the displacement fraction runs from zero to one. Starting at level zero, three level intervals give ; the ring count is not a Euclidean length. At full extent, the arrow ends at .The labels on the planes are x-coordinate values in ordinary three-dimensional Euclidean space.
Change the coordinates. Keep the measurement.Change the coordinates. Keep the measurement.
If both the vector components and the measuring rule change, how can their answer stay the same?If both the vector components and the measuring rule change, how can their answer stay the same?
See the idea
A moving sensor follows one path through a scalar field. One map uses ; another uses and . The second map bends its coordinate grid, but it cannot change the sensor reading. We will calculate the same rate of change twice. All coordinates, the path parameter , and the scalar reading in this example are dimensionless.
Work it out
- Give the experiment a point and a direction
At , let the path have tangent components . The scalar field is . Its differential is the covector that measures the first-order change along any tangent.
Why this step works The multivariable chain rule multiplies each partial derivative by the corresponding coordinate rate.
- Convert the tangent using the local map
The new address is . Differentiate the coordinate change at the original point. The Jacobian is the matrix of these derivatives; it acts on the tangent, not on the point itself.
Why this step works The first new coordinate has the original horizontal rate. The second also includes the derivative of the squared horizontal coordinate.
- Convert the measuring rule using the inverse map
Solve for the old coordinates: , . The same scalar field now has the formula . At its partial derivatives are .
Why this step works A scalar keeps its value at each point. Substituting the inverse coordinate map gives its new formula before differentiating.
- Let the two changes cancel
Pair the new covector components with the new tangent components. The lists changed; the measured rate did not. No lengths or angles entered this calculation.
Why this step works Vector and covector transformation laws compensate because they describe the same directional derivative.
Go deeper
With vector components written as a column and covector components as a row, the transformation is and . Thus . If you store covectors as columns instead, the rule is ; the transpose comes from that storage convention. This is an exact algebraic proof for any invertible Jacobian. Here the inverse map exists on all of and everywhere. The coordinate change is nonlinear even though its action on each tangent space is linear.
Test the idea Test the idea
FIRST, PREDICTFIRST, PREDICT
A classmate transforms the column of covector components with , just as for a vector, and obtains a different sensor rate. What needs repairing?
Compare the reasoningCompare the reasoning
Multiply the final rate by .
A directional derivative is a scalar, not a coordinate area. In this example , so this would not even repair the error.
Accept the new rate: a nonlinear map changes the physical experiment.Accept the new rate: a nonlinear map changes the physical experiment.
This is a change of labels for the same path and field. An active physical deformation would be a different experiment.This is a change of labels for the same path and field. An active physical deformation would be a different experiment.
Use the inverse transpose for covector columns.Use the inverse transpose for covector columns.
Yes. A covector consumes a vector; its transformation must undo the vector’s transformation inside the pairing.Yes. A covector consumes a vector; its transformation must undo the vector’s transformation inside the pairing.
A hintA hint
Write the desired identity , then substitute .
NOW CHANGE THE EXAMPLENOW CHANGE THE EXAMPLE
Keep , , but use . At , a path has . Find using the new coordinates.
A hintA hint
First obtain . Rewrite in terms of before finding its derivatives.
Work through the solutionWork through the solution
The new formula is . At , , so . Directly, as well.
A vector and a covector change their component lists together so that the measurement they make together stays fixed.A vector and a covector change their component lists together so that the measurement they make together stays fixed.
2.5 Tensors, products, and contractions#2.5 Tensors, products, and contractions
Chapter 0 introduced a bilinear form: a rule that takes two vectors and returns a number, linear in each input separately. Write it asChapter 0 introduced a bilinear form: a rule that takes two vectors and returns a number, linear in each input separately. Write it as
There are two independent sums. The components are the values on pairs of basis vectors: .
Change coordinates in each input, using and . Then
so the new components areso the new components are
Each lower index contributes one inverse Jacobian. For the linear map in §2.2, the output vector contributes a forward Jacobian and the input contributes an inverse Jacobian:Each lower index contributes one inverse Jacobian. For the linear map in §2.2, the output vector contributes a forward Jacobian and the input contributes an inverse Jacobian:
These are examples of tensors. A tensor of type has upper and lower indices in its component description, transforming with one for each upper index and one for each lower index. Equivalently, it can be viewed as a multilinear rule taking covectors and vectors and returning a number. A bilinear form is type . A linear map is type : apply it to a vector, then let a covector measure its output.
The total number of indices, , is sometimes called tensor rank. This differs from matrix rank, the number of independent output directions of a linear map. A two-index tensor can have a matrix of rank one.
A tensor product builds a rule with separate inputs. For two covectors,A tensor product builds a rule with separate inputs. For two covectors,
For example, let and in our two-dimensional basis. If and , the result is . Exchanging the inputs gives . The order of the inputs matters.
Contraction sums a matching upper and lower index. For a linear map, contracting its two indices gives its trace:Contraction sums a matching upper and lower index. For a linear map, contracting its two indices gives its trace :
The matrix in §2.2 has trace . Under a basis change, the and factors cancel in this sum, leaving the same answer. More generally, contraction removes one upper and one lower index and produces another tensor.
The indices also help check an equation before calculating:The indices also help check an equation before calculating:
| Expression | How to read it |
|---|---|
| Sum over ; the result is a number. | |
| Sum over ; one equation remains for each value of . | |
| The free labels differ, so this does not state a consistent component equation. | |
| Two upper indices do not form an Einstein contraction. A rule for pairing two vectors is additional information. | |
| All three labels are summed; the result is a number. |
A dummy index can be renamed without changing the sum: . Free indices must match on both sides of an equation. A label must not appear three times in one product under this convention.
Finally, any two-input bilinear form can be split into a symmetric part and an antisymmetric part:Finally, any two-input bilinear form can be split into a symmetric part and an antisymmetric part:
Parentheses denote symmetrization; square brackets denote antisymmetrization. Swapping the inputs leaves the first part unchanged and reverses the sign of the second. Adding the two parts recovers . For example, entries and give symmetric entry 3 and antisymmetric entry 2.
2.6 Approximations and oriented area#2.6 Approximations and oriented area
The same notation lets us write Taylor’s formula for several inputs:The same notation lets us write Taylor’s formula for several inputs:
Here stands for the full coordinate list and for a small change in that list. Repeated indices add the contributions from every direction. For near , the expansion is
In this example the expression is exact. For a general smooth function, more terms remain. The notation means that the omitted remainder is bounded in magnitude by a constant times as the chosen small parameter approaches zero, within the specified regime.
A small function need not have small derivatives. For dimensionless , consider . Its magnitude is at most , but . If and , the function never exceeds 0.001 in magnitude while its slope can reach 10. This distinction will matter when we approximate fields and then differentiate them.
Further example: oriented area and differential formsFurther example: oriented area and differential forms
The antisymmetric ruleThe antisymmetric rule
computes the signed coordinate area of the parallelogram spanned by two vectors. The symbol is called the wedge product. For and , the area is . Swapping the vectors gives ; parallel vectors give zero. This is the two-by-two determinant from linear algebra, now written as a rule for two inputs.
A smoothly varying antisymmetric covariant tensor is called a differential form. A one-form assigns a covector smoothly to each point; a two-form has two antisymmetric vector inputs, as in this area rule. Chapter 21 develops how these objects are integrated over curves and surfaces.A smoothly varying antisymmetric covariant tensor is called a differential form . A one-form assigns a covector smoothly to each point; a two-form has two antisymmetric vector inputs, as in this area rule. Chapter 21 develops how these objects are integrated over curves and surfaces.
For now, practice expanding an indexed expression into its ordinary sums, and checking that a change of basis leaves a completed measurement unchanged. These operations will let us compare moving observers in the next chapter. David Tong’s differential-geometry notes provide a further formal treatment of vector and dual spaces.For now, practice expanding an indexed expression into its ordinary sums, and checking that a change of basis leaves a completed measurement unchanged. These operations will let us compare moving observers in the next chapter. David Tong’s differential-geometry notes provide a further formal treatment of vector and dual spaces.
The idea to keepThe idea to keep
A tensor describes a multilinear relationship. Components are its values in chosen bases, and transform to preserve that relationship.A tensor describes a multilinear relationship. Components are its values in chosen bases, and transform to preserve that relationship.
If one basis vector doubles, what happens to that vector component of a fixed arrow?If one basis vector doubles, what happens to that vector component of a fixed arrow?
It halves. A coordinate coefficient measures how much of a basis vector you need; a larger basis vector requires less of it.It halves. A coordinate coefficient measures how much of a basis vector you need; a larger basis vector requires less of it.