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 later.
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.