Skip to content
Geometry and Algebra

Vectors in space: dot, cross and triple products

Free vectors and components, the dot product with the Cauchy-Schwarz inequality, the cross product and areas, the triple product, volumes and coplanarity, with a worked example.

The Geometry and Algebra course starts with vectors in space, because they are the concrete model from which all of linear algebra grows: first you learn to work with arrows in the plane and in space, then you discover that the same rules hold for polynomials, signals and matrices. In this lesson we cover vectors, components, the dot product, the cross product and the scalar triple product, with their geometric meaning: lengths, angles, areas and volumes.

Bound and free vectors

A directed segment \overrightarrow{AB} has a starting point, a length, a direction and a sense. Two directed segments that can be obtained from each other by a translation represent the same free vector. Once an origin O is fixed, every vector can be placed at O and corresponds to a single point P: this is why, in space with a Cartesian frame, vectors are identified with triples of numbers,

    \[ \vec v = \overrightarrow{OP} = (x, y, z) = x\,\vec e_1 + y\,\vec e_2 + z\,\vec e_3 \]

Operations are done component by component: \vec u + \vec v = (u_1 + v_1, u_2 + v_2, u_3 + v_3), \lambda\vec v = (\lambda v_1, \lambda v_2, \lambda v_3). The vector from A to B is a difference, \overrightarrow{AB} = B - A, and the midpoint of AB is \tfrac12(A + B).

Parallel vectors. Two non-zero vectors are parallel if one is a multiple of the other, \vec u = \lambda\vec v. Three points A, B, C are collinear if \overrightarrow{AB} and \overrightarrow{AC} are parallel.

Dot product: lengths and angles

    \[ \vec u\cdot\vec v = u_1 v_1 + u_2 v_2 + u_3 v_3 = |\vec u|\,|\vec v|\cos\theta \]

The two forms are equivalent (the proof with orthonormal unit vectors is in the Physics 1 lesson on quantities and vectors). From here:

  • norm: |\vec v| = \sqrt{\vec v\cdot\vec v}; the distance between two points is |B - A|;
  • angle: \cos\theta = \dfrac{\vec u\cdot\vec v}{|\vec u|\,|\vec v|};
  • orthogonality: \vec u\perp\vec v \iff \vec u\cdot\vec v = 0.

Proof: the Cauchy-Schwarz inequality

|\vec u\cdot\vec v| \le |\vec u|\,|\vec v|. For every real t we have |\vec u + t\vec v|^2 \ge 0, that is

    \[ |\vec v|^2 t^2 + 2(\vec u\cdot\vec v)\,t + |\vec u|^2 \ge 0 \quad\forall t \]

A quadratic that is never negative has a discriminant less than or equal to zero: 4(\vec u\cdot\vec v)^2 - 4|\vec u|^2|\vec v|^2 \le 0, which is the claim. The proof uses only the properties of the dot product, not components: this is why it will also hold in abstract spaces. The triangle inequality |\vec u + \vec v| \le |\vec u| + |\vec v| follows.

Cross product: areas

    \[ \vec u\times\vec v = \det\begin{pmatrix}\vec e_1 & \vec e_2 & \vec e_3\\ u_1 & u_2 & u_3\\ v_1 & v_2 & v_3\end{pmatrix} = (u_2v_3 - u_3v_2,\; u_3v_1 - u_1v_3,\; u_1v_2 - u_2v_1) \]

The result is a vector perpendicular to both \vec u and \vec v, with sense given by the right-hand rule and magnitude |\vec u|\,|\vec v|\sin\theta, which is the area of the parallelogram built on the two vectors. The area of triangle ABC is therefore \tfrac12|\overrightarrow{AB}\times\overrightarrow{AC}|.

The cross product perpendicular to the parallelogram and the parallelepiped of the triple product
Left: \vec u\times\vec v is perpendicular to the plane of \vec u and \vec v and its magnitude is the area of the parallelogram. Right: the absolute value of the scalar triple product is the volume of the parallelepiped built on three vectors.

Properties worth remembering: \vec v\times\vec u = -\vec u\times\vec v (anticommutative); \vec u\times\vec v = \vec 0 if and only if the vectors are parallel; it is not associative.

Proof: the magnitude is the area

Expanding the squares one checks Lagrange’s identity, |\vec u\times\vec v|^2 = |\vec u|^2|\vec v|^2 - (\vec u\cdot\vec v)^2. Substituting \vec u\cdot\vec v = |\vec u||\vec v|\cos\theta:

    \[ |\vec u\times\vec v|^2 = |\vec u|^2|\vec v|^2(1 - \cos^2\theta) = \big(|\vec u|\,|\vec v|\sin\theta\big)^2 \]

and |\vec v|\sin\theta is exactly the height of the parallelogram with base |\vec u|.

Scalar triple product: volumes and coplanarity

    \[ \vec u\cdot(\vec v\times\vec w) = \det\begin{pmatrix}u_1 & u_2 & u_3\\ v_1 & v_2 & v_3\\ w_1 & w_2 & w_3\end{pmatrix} \]

Its absolute value is the volume of the parallelepiped built on the three vectors: |\vec v\times\vec w| is the area of the base and |\vec u|\,|\cos\varphi| (with \varphi the angle between \vec u and the normal to the base) is the height. The sign tells whether the triple is oriented like the axes (right-handed) or not.

A key consequence: three vectors are coplanar if and only if their triple product is zero, that is if the determinant of their components vanishes. It is the first meeting with an idea that will come back throughout the course: a zero determinant means that something “collapses” into one dimension less.

Worked example

Given A = (1, 0, 2), B = (3, 1, 1), C = (0, 2, 3), D = (2, 2, 5): find the area of triangle ABC and the volume of tetrahedron ABCD.

  • \overrightarrow{AB} = (2, 1, -1), \overrightarrow{AC} = (-1, 2, 1), \overrightarrow{AD} = (1, 2, 3).
  • \overrightarrow{AB}\times\overrightarrow{AC} = (1\cdot 1 - (-1)\cdot 2,\; (-1)(-1) - 2\cdot 1,\; 2\cdot 2 - 1\cdot(-1)) = (3, -1, 5).
  • Area of ABC: \tfrac12\sqrt{9 + 1 + 25} = \tfrac12\sqrt{35} \approx 2.96.
  • Triple product: \overrightarrow{AD}\cdot(\overrightarrow{AB}\times\overrightarrow{AC}) = 3 - 2 + 15 = 16.
  • The tetrahedron is one sixth of the parallelepiped: volume 16/6 = 8/3.

Had the triple product been zero, the four points would have been on the same plane.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x