Basics
Vectors
Dot and cross products, position and unit vectors, scalar and vector triple products.
A vector in three-space carries magnitude and direction, written in the standard i, j, k basis. The dot and cross products give a scalar and a vector respectively, and combine into triple products that encode signed volumes and orthogonality relations. Vector addition obeys the parallelogram rule: the sum of two vectors is the diagonal of the parallelogram they span.
Dot Product
The dot product multiplies corresponding components and sums them, returning a scalar that measures projected length and angular alignment. Geometrically a · b = |a||b|cos θ, so it vanishes for orthogonal vectors and is maximal when the vectors are parallel.
The first vector in component form, its coordinates with respect to the i, j, k basis:
The second:
Expanded form before basis cancellations. Distributing gives nine terms; six vanish because the basis vectors are mutually orthogonal.
After applying orthogonality of the basis, the dot product reduces to a sum of products. The diagonal terms i·i = j·j = k·k = 1 survive; off-diagonal terms vanish. This component formula is the standard tool for angles, projections, and orthogonality checks.
The dot product is commutative (a · b = b · a) because real-number multiplication of components is commutative:
Cross Product
The cross product returns a vector perpendicular to both inputs, whose magnitude equals the area of the parallelogram they span. It is anti-commutative and direction-sensitive, with orientation fixed by the right-hand rule. Unlike the dot product, it has a clean form only in three dimensions.
The first vector:
The second:
The cross product is a 3×3 determinant expanded along the basis row. The first row carries the basis vectors and the remaining two rows the components, so cofactor expansion along the top row gives the standard component formula.
Swapping the operands does not preserve the product. Unlike the dot product, the cross product is direction-sensitive; swapping reverses orientation by the right-hand rule.
Swapping the operands reverses the sign: the cross product is anti-commutative. This follows from the determinant view, since exchanging two rows of a matrix negates its determinant.
Position Vector
A position vector locates a point relative to the origin and packages its Cartesian coordinates as a vector. It is the bridge between point-set geometry and vector algebra: every geometric question about points becomes an algebraic question about their position vectors.
For point P(x, y, z), the position vector is the arrow from the origin to the point.
The arrow from the origin to a point is the vector with the point’s coordinates as components, written as differences from the origin:
After the zero subtractions vanish:
The magnitude (length) of the position vector by the Pythagorean theorem in three dimensions. The squared length is the sum of squared components; the square root gives the Euclidean distance from the origin to the point.
Unit Vector
A unit vector preserves direction while normalising magnitude to one. Divide any non-zero vector by its magnitude to get its unit vector. Unit vectors isolate direction from magnitude, which is what you want whenever the question is “in which direction” rather than “how far”.
A unit vector is the vector divided by its own magnitude. The hat notation marks the result as normalised; the construction works for any non-zero vector.
An arbitrary vector in component form:
Its magnitude:
The unit vector in component form, each component divided by the magnitude. The squared components sum to one, confirming unit length.
Scalar Triple Product
The scalar triple product a · (b × c) returns the signed volume of the parallelepiped spanned by the three vectors. It vanishes when they are coplanar. The sign records orientation (positive for right-handed, negative for left-handed); the absolute value is the geometric volume.
Three vectors in component form, used in the determinant below:
The scalar triple product is the determinant of the matrix whose rows are the three vectors. The 3×3 determinant and the signed volume are the same object, so the parallelepiped volume formula comes straight from linear algebra.
Compact bracket notation, the standard shorthand whenever the triple product appears in identities:
Propertes
Cyclic permutation of the three vectors leaves the scalar triple product unchanged. Rotating rows is an even permutation, so the determinant’s sign is preserved.
Swapping two adjacent vectors reverses the sign, by the row-swap rule for determinants:
If any vector is repeated, the triple product vanishes. The three vectors collapse onto a plane and the spanned volume drops to zero. The determinant view says the same: a matrix with two equal rows is singular.
The dot and cross can be interchanged within the triple product. This is what justifies the bracket notation: the value depends on the three vectors, not on where the dot or cross sits.
Coplanar vectors give a zero triple product, since the spanned volume is zero. Conversely, a non-zero triple product is a quick test that three vectors form a linearly independent set in three-space.
The absolute value gives the parallelepiped volume:
A tetrahedron has one-sixth that volume. Three of its triangular faces partition the parallelepiped into six congruent tetrahedra:
Vector Triple Product
The vector triple product a × (b × c) gives a vector in the plane of b and c, expanded by the BAC-CAB identity. The result is perpendicular to the inner b × c, which is itself perpendicular to that plane, so the outer cross brings the answer back into the b-c plane.
The three vectors in component form:
Then,
The BAC-CAB expansion shows the result is a linear combination of the inner two vectors. The mnemonic “back cab” gives the order: outer vector dotted with the far inner vector multiplies the near one, minus the symmetric term.
Cyclic permutation of the BAC-CAB identity by relabelling a → b → c → a:
Another cyclic version. Summing the three cyclic forms gives zero (the Jacobi identity), which is what makes the cross product into a Lie bracket.
The cross product is not associative. Parentheses change the result. The groupings a × (b × c) and (a × b) × c lie in different planes (the b-c plane and the a-b plane), so the parentheses are not optional.