Exercises — Tensor analysis — scalars, vectors, rank-2 tensors
Before we begin, a one-line refresher on the notation this page uses, so no symbol appears unearned.
Level 1 — Recognition
Exercise 1.1
You are handed four grids of numbers. Which of them could be a rank-2 tensor and which cannot possibly be, based only on their definition?
- (a) The stress at a point in a solid.
- (b) A restaurant menu's price matrix (rows = dishes, columns = day of week).
- (c) The Kronecker delta .
- (d) The metric built from arc length .
Recall Solution
The test is not shape, it is behaviour. A grid is a tensor only if its entries carry a transformation law under a change of coordinates.
- (a) Tensor. Stress is defined by how forces act across surfaces; rotate the axes and the components obey . ✔
- (b) Not a tensor. "Dishes" and "days" are not coordinate axes; there is no rule telling the prices how to change when you rotate anything. It is just a table. ✘
- (c) Tensor (isotropic). — same in every frame. ✔
- (d) Tensor. is an invariant scalar and is contravariant, so is forced to be covariant rank 2 (quotient theorem). ✔
Exercise 1.2
Classify each object by rank and index type: (i) temperature , (ii) velocity , (iii) a gradient , (iv) the inertia tensor .
Recall Solution
- (i) — rank 0, a scalar. component.
- (ii) — rank 1, contravariant (upper index, transforms like ).
- (iii) — rank 1, covariant (lower index, transforms like a gradient with the inverse Jacobian).
- (iv) — rank 2, contravariant (two upper indices, components).
Level 2 — Application
Exercise 2.1
In flat 2D Cartesian coordinates a contravariant vector has components . Rotate the axes by using
Find the components in the new frame. See the figure.

Recall Solution
WHAT: we apply the contravariant rule , i.e. matrix times column . WHY and not : the new coordinates are obtained from the old by , and a contravariant (upper) index takes the forward Jacobian , which is exactly . At : , so .
WHAT IT LOOKS LIKE: the arrow itself never moved (amber in the figure); we only spun the axes a quarter-turn, so its readings change from to . The length is unchanged — a rotation preserves length.
Exercise 2.2
A covariant vector has components in the same Cartesian frame. Rotate by the same . Find and confirm it equals the contravariant answer only because the rotation is orthonormal.
Recall Solution
WHAT: covariant rule , which in matrix form is for orthonormal , since so .
WHY it matched: for a rotation the inverse Jacobian equals the transpose, so upper and lower vectors move identically. In a non-orthonormal (e.g. polar or skewed) frame they would differ — see Metric tensor and Riemannian geometry.
Level 3 — Analysis
Exercise 3.1
Take the symmetric stress tensor (MPa). Show explicitly that its trace is invariant under the rotation , by computing and taking its trace.
Recall Solution
WHAT: rotate both slots. . First . Then
Trace before: . Trace after: . ✔ Invariant. WHY: trace is a contraction ; contraction glues a forward and inverse Jacobian into , so the transformation factors cancel and the result is a genuine scalar. WHAT IT LOOKS LIKE: the off-diagonal (shear) vanished — we landed on the principal axes (see figure). The rotation only re-labelled; the physics (trace , eigenvalues ) is untouched.

Exercise 3.2
Split into its symmetric part and antisymmetric part , and verify .
Recall Solution
Use and .
Check: . ✔ WHY it matters: symmetry is coordinate-independent — a symmetric tensor stays symmetric in every frame, so this split survives any rotation.
Level 4 — Synthesis
Exercise 4.1
Prove the quotient theorem in a simple case: suppose is an unknown grid, but for every covariant vector the object is a genuine contravariant vector. Show must transform as a contravariant rank-2 tensor.
Recall Solution
WHAT we know: is contravariant, so , and is covariant, so . Write the same equation in both frames:
Rewrite using the inverse of the covariant rule. Since , the free index on the left already carries ; substitute on the left:
WHY the next step works: this holds for every , so we may strip from both sides (equate coefficients):
Solve for by hitting both sides with and summing; since (chain rule), the left collapses to :
That is exactly the contravariant rank-2 law. So was a tensor all along — we proved it without ever inspecting its entries. This is the litmus test referenced by the parent note.
Exercise 4.2
Compute the metric in polar coordinates starting from Cartesian , using (sum over Cartesian , with ).
Recall Solution
WHY this formula: flat space has ; expressing in terms of and collecting gives automatically. The Jacobian columns are the tangent vectors. Partial derivatives:
Now dot the columns:
WHAT IT LOOKS LIKE: moving at radius sweeps an arc of length , so the -slot "costs" — that is the in . See Covariant derivative and Christoffel symbols for what this curvature of coordinates forces next.
Level 5 — Mastery
Exercise 5.1
Show that the ordinary derivative is not a tensor, by transforming it and exhibiting the offending extra term. State what object fixes it.
Recall Solution
WHAT: transform first, then differentiate. We have . Now differentiate with respect to , using the chain rule (product rule on the two -dependent factors):
WHY it breaks: a true mixed rank-2 tensor would show only the first term (two Jacobians hitting ). The second term carries a second derivative of the coordinate map. In curved or curvilinear coordinates that term is nonzero, so does not transform as a tensor. The fix: the covariant derivative adds the Christoffel symbol , whose own transformation supplies an equal-and-opposite extra term, cancelling the offender and restoring tensor character.
Exercise 5.2
The Einstein field equations equate two rank-2 tensors. Explain, using only what you proved above, why both sides must be tensors of the same type for the equation to be physically meaningful, and what would go wrong otherwise.
Recall Solution
Argument (three earned facts):
- From Ex 2.1–2.2, tensor components change frame-to-frame with Jacobian factors; only the transformation-consistent combination is coordinate-independent.
- A law of physics must not depend on which coordinates a human scribbled — the same conclusion in every frame.
- If transformed one way and another, an equation true in one frame would become false after a coordinate change (the two sides would pick up different Jacobian factors and no longer match). Therefore both sides are covariant rank-2 tensors: (curvature of spacetime) and (stress–energy). Their equality is frame-independent — see General Relativity — Einstein field equations and, for the source side, Stress and strain tensors (continuum mechanics). This is the ultimate payoff of the slogan "it's a tensor if it transforms like one."
Recall Self-test summary
One-line invariant each level tested ::: L1 shape ≠ tensor; L2 one index → one Jacobian; L3 trace/eigenvalues are similarity invariants; L4 quotient theorem needs "for all V"; L5 ordinary derivative fails, covariant derivative fixes it. Why is frame-independent? ::: Contraction pairs a forward and inverse Jacobian into , cancelling the transformation factors — the result is a scalar. What extra object rescues ? ::: The Christoffel symbol inside the covariant derivative .