The dot product of a vector with itself is \(\vv \cdot \vv = \sum_{i=1}^n v_i^2\text{,}\) the square of the distance from the origin to the point \(\vv\text{.}\) Thus \(\norm{\vv} := \sqrt{\vv \cdot \vv}\) is the length (or magnitude) of the vector \(\vv\text{.}\) A unit vector is a vector of length \(1\text{.}\) For a nonzero vector \(\vv\text{,}\) the unit vector \(\hat{\vv}:=\vv/\norm{\vv}\) is the direction of \(\vv\text{.}\) Two vectors are in opposite direction if their directions are negatives of one another.
If \(\theta\) is the angle between nonzero vectors \(\vu\) and \(\vv\text{,}\) then the dot product measures how much of one vector points in the direction of the other:
Cauchy-Schwarz inequality guarantees that the dot product of two unit vectors lies in the interval \([-1,1]\text{,}\) so the angle above is always well defined.
The conclusion is clear if one of the vectors is a scalar multiple of the other. So suppose \(\vu\) is not a multiple of \(\vv\text{.}\) Then \(\vu - t\vv\) is nonzero for every scalar \(t\text{,}\) and hence
As an application, dot products give a convenient equation for a plane in \(\R^3\text{.}\) Suppose a plane passes through a point with position vector \(\vr_0 = \gv{x_0,y_0,z_0}\) and has normal vector \(\vn = \gv{a,b,c}\text{.}\) A point with position vector \(\vr = \gv{x,y,z}\) lies on the plane exactly when the displacement vector \(\vr-\vr_0\) is orthogonal to \(\vn\text{.}\) Therefore the plane equation is
The dot product also explains matrix multiplication. A matrix is a rectangular array of numbers. An \(m \times n\) matrix \(A\) has \(m\) rows and \(n\) columns, with entries
If \(A\) is an \(m \times n\) matrix and \(B\) is an \(n \times p\) matrix, then \(AB\) is an \(m \times p\) matrix whose \((i,j)\)-entry is the dot product of the \(i\)-th row of \(A\) with the \(j\)-th column of \(B\text{:}\)