Vector and matrix toolbox for spatial models
Before using tensors or a curvilinear vector formula, we need the arithmetic of vectors, the action of a matrix and the geometry of determinants. The same toolbox describes observation systems, forces, oriented areas and coordinate frames. We build it explicitly within this course rather than relying on an unstated linear-algebra chapter elsewhere.
1 Vectors dot products and projections
Vectors in or add coordinatewise and scale by real numbers. The dot product gives Euclidean length . Expanding and minimizing in proves Cauchy–Schwarz, . Equality means linear dependence, including zero-vector cases.
For a unit direction , is the signed component along it, with vector component . For nonzero not necessarily unit, the projection is . For and , the projection is ; the residual has zero dot product with .
2 Cross products and determinants
In three dimensions,
Direct substitution shows it is perpendicular to both inputs. Expanding its squared norm gives , so its magnitude is the parallelogram area. Its sign follows the right-hand rule, and reversing the input order reverses the vector.
For a matrix, determinant is . For a matrix with columns , define , giving signed volume. Expansion along the first row is
The determinant is linear in each column separately and changes sign under a column exchange, as the triple product shows. The same row properties follow from the expansion. Row addition preserves it, a row scaling scales it, and a row swap negates it. Elimination therefore proves a square matrix is invertible exactly when its determinant is nonzero. A zero signed volume means the three column directions fail to span spatial volume.
3 Matrix action and Gaussian elimination
For , . This is a linear map: . Its columns are the images of standard coordinate vectors. Composition is multiplication, , with compatible dimensions.
To solve , perform reversible row operations on the full augmented matrix. A zero row with nonzero right-hand side is inconsistent; free variables give nonuniqueness. Row operations on alone while ignoring change the problem.
Worked observation system. Suppose three hypothetical scaled observation channels give
Subtract the first equation from the third to get . Then and , yielding , . All original observations verify the result. The coefficient determinant is 1, confirming uniqueness. Physical observations need a separately justified linear model and compatible units; solving the equations does not validate that model.
4 Orthogonal matrices and the role of orientation
A real square matrix is orthogonal when , equivalently its columns are orthonormal. Then . Independent square columns make invertible, and . Determinant multiplication gives , so it is or .
For a rotation around the axis,
Its determinant is 1. The diagonal matrix also preserves lengths but has determinant , reversing orientation. Thus not every orthogonal transformation is a proper rotation.
Distinguish a physical transformation from a coordinate change. Applying physically to the old vector gives in old coordinates. If instead the new basis vectors are the columns of , the unchanged physical vector has new coordinates . The opposite sign is not a contradiction; the questions differ. This distinction underlies the tensor component laws and the varying coordinate frames developed in the units on tensors and on cylindrical and spherical coordinates.
Zero cases and the determinant multiplication law
In the Cauchy–Schwarz argument, handle first, when equality holds. Otherwise substitute into , obtaining . Multiplication by the positive denominator and taking square roots gives the inequality. In this nonzero- case, equality means ; together with the zero-vector case this is exactly linear dependence.
For the two- and three-dimensional determinant formulas in this toolbox, alternation and columnwise linearity prove multiplication. Fix and regard as a function of the columns of , where or . Expand each column in the standard basis. Terms with repeated basis vectors vanish by alternation; each remaining term is its permutation sign times . The sum of the corresponding coefficient products is precisely the two- or three-dimensional expansion for . Thus . The displayed expansions also give by exchanging row and column indices. In particular gives . This proves the determinant facts used for the spatial coordinate and tensor examples in this toolbox.
5 Graded practice
E1 Foundation. Compute and its magnitude. Interpret the magnitude geometrically.
E2 Determinant. Calculate and decide invertibility.
E3 Orthogonality. Verify is orthogonal. Is it a proper rotation? What happens to signed triple products?
E4 Elimination. Solve , , and verify all equations.
6 Full solutions
S1. The cross product is , of magnitude . It is the area of the parallelogram spanned by the two input vectors; a triangle with those sides has half that area.
S2. Triangularity or direct expansion gives . It is nonzero, so the matrix is invertible and its three column vectors are independent.
S3. , but determinant is , so it is a reflection rather than a proper rotation. It multiplies every oriented triple product by while preserving absolute volumes and lengths.
S4. From , ; then . The first equation gives , so , , . Checks are , , and .
Summary
Dot and cross products encode spatial lengths, projections, areas and orientations. Determinants detect invertibility and signed volume. Gaussian elimination solves a stated linear observation model, while orthogonal matrices distinguish length preservation from orientation preservation. Physical rotations and coordinate changes use related matrices but answer different questions.
Further study
The stepper below performs the reversible row operations of Section 3 on the full augmented matrix of a system. It marks the pivot in use and the rows changed at each step, and continues past the echelon shape until the unique solution can be read from the last column.
Trace one full row-reduction path
Each step applies one group of elementary row operations. Watch the entries above and below each pivot become 0.
Choose the first pivot in column 1.
| 1 | 2 | 2 | 4 |
| 1 | 3 | 3 | 5 |
| 2 | 6 | 5 | 6 |
1pivot in focus0changed in this stepright of the bar: constants
Start with the augmented matrix. The first pivot should help us clear the entries underneath it.
- Pivot
- Row 1, column 1: 1
- Changed in this step
- None (starting matrix)
Not yet in row echelon form
Row 2 still has 1 in column 1, which is not to the right of the pivot in row 1.
NoticeColumn 1 already has a convenient pivot 1 in the first row, so we do not need a row swap.
Worked example 13.1.1
(Projection onto a non-unit normal)
Let and . By the projection formula of Section 1,
The residual is , and its dot product with is , as it must be. The signed component of along the unit normal is . Cauchy–Schwarz gives the check ; the inequality is strict because is not a multiple of .
Worked example 13.1.2
(A triangle, its plane and a tetrahedron from one cross product)
Let , and . With and , the formula of Section 2 gives
Its norm is , so the parallelogram on and has area 7 and the triangle has area . The vector is normal to the plane, which is therefore ; each of , and satisfies it. The tetrahedron with vertices has volume . As a check, the distance from the origin to the plane is , and .
Worked example 13.1.3
(A singular observation system: no solution or a line of solutions)
Consider , and , with a parameter. Row operations on the full augmented matrix give
If , the last row reads and the system is inconsistent. If , the variable is free: and , so the solutions are . Each original equation holds at , and the direction is sent to zero by the coefficient matrix. Its determinant, by first-row expansion, is , as the invertibility criterion of Section 2 requires for a system that is not uniquely solvable.
Counterexample mode
Orthonormal columns are not enough without a square matrix
Section 4 obtains from orthonormal columns because the matrix is square. Drop squareness: let
Its columns are orthonormal, so and for every . But
which is the projection onto the -plane. No vector of is sent to , so has no inverse, and no determinant is defined. Length preservation alone does not make a map a change of orthonormal frame.
Quick check
(Find the projection of onto the direction of .)
The normal is not a unit vector.
Solution · Answer
and , so the projection is .
Quick check
(Compute and decide whether the matrix is invertible.)
Expand along the first row.
Solution · Answer
, so the matrix is invertible and its columns span spatial volume.
Quick check
(Is orthogonal? Is it a proper rotation?)
Check the columns, then the sign of the determinant.
Solution · Answer
Its columns are the standard basis vectors in another order, so . First-row expansion gives , so it is a proper rotation. It fixes and cycles the coordinate axes.
Concept lensAlgebraic
The cross product is the volume functional written as a vector
Fix and . By Section 2, is linear in , and is the unique vector that represents this linear functional through the dot product. The properties of the cross product follow from those of the determinant. Perpendicularity is the vanishing of a determinant with a repeated column: . Antisymmetry is the column exchange rule. In the triangle example, , the signed volume that the tetrahedron calculation used; the last step subtracts the first column from the other two. Representing a functional by a vector is the index lowering of the unit on tensor types, in an orthonormal frame where the metric is the identity.