Academy
Dot Product
Level 1 - Math II (Physics) topic page in Vectors.
Principle
The dot product, also called the scalar product, combines two vectors and outputs a scalar. Geometrically, it measures how much two vectors point in the same direction.
For non-zero vectors \(\mathbf a\) and \(\mathbf b\), if the angle between them is \(\theta\), then
Componentwise, when \(\mathbf a\) and \(\mathbf b\) are written in the same Cartesian coordinate system, multiply matching components and add the products.
Notation
A projection is the part of one vector in the direction of another. The scalar projection of \(\mathbf a\) onto non-zero \(\mathbf b\) is \( |\mathbf a|\cos\theta \), and the dot product equals this scalar projection multiplied by \( |\mathbf b| \).
Orthogonal vectors meet at a right angle. For non-zero vectors, this means \(\theta=\frac{\pi}{2}\).
Method
Step 1: Choose the available form
If magnitudes and the angle are known, use the geometric formula:
If Cartesian components are known in the same basis, use the component formula:
Step 2: Compute from magnitudes and angle
Let \( |\mathbf a|=A \), \( |\mathbf b|=B \), and \(\theta=\phi\), then evaluate \(\cos\phi\):
Step 3: Compute from Cartesian components
Write both vectors in the same Cartesian basis:
The result is one scalar, not a vector.
Rules
The orthogonality criterion requires both vectors to be non-zero. The zero vector has zero dot product with every vector but has no unique direction.
For non-zero \(\mathbf b\), the vector projection of \(\mathbf a\) onto \(\mathbf b\) is
Component formula from basis products
Use bilinearity, which means the dot product distributes over vector addition and scalar multiplication in each input. In the Cartesian basis,
and the mixed basis dot products are zero:
If \(\mathbf a=a_1\mathbf i+a_2\mathbf j+a_3\mathbf k\) and \(\mathbf b=b_1\mathbf i+b_2\mathbf j+b_3\mathbf k\), then
Cosine rule from the dot product
Let \(\theta\) be the angle between non-zero \(\mathbf a\) and \(\mathbf b\). Start with the squared magnitude of \(\mathbf a-\mathbf b\), expand it using the dot product, then substitute the geometric definition of \(\mathbf a\cdot\mathbf b\):
Examples
Checks
- The dot product outputs a scalar, not a vector.
- When using calculus conventions, the angle \(\theta\) must be measured in radians.
- A zero dot product means perpendicular only when both vectors are non-zero.