Introduction
The scalar product (also called the dot product or inner product) is a way to multiply two vectors together to obtain a scalar (a number without direction). This operation is fundamental in physics for calculating work, projections, angles between vectors, and many other applications.
The scalar product of two vectors $\mathbf{a}$ and $\mathbf{b}$ is denoted by $\mathbf{a} \cdot \mathbf{b}$ and is defined as:
where $\theta$ is the angle between the two vectors when they are placed tail-to-tail, and $a$ and $b$ are the magnitudes of vectors $\mathbf{a}$ and $\mathbf{b}$ respectively.
The scalar product can be written as the sum of the products of the vector components. For two vectors $\mathbf{a} = a_x\hat{x} + a_y\hat{y} + a_z\hat{z}$ and $\mathbf{b} = b_x\hat{x} + b_y\hat{y} + b_z\hat{z}$ the scalar product is:
or equivalently:
where the summation is over the vector components.
Key Properties
- Commutative: $\mathbf{a} \cdot \mathbf{b} = \mathbf{b} \cdot \mathbf{a}$
- Distributive: $\mathbf{a} \cdot (\mathbf{b} + \mathbf{c}) = \mathbf{a} \cdot \mathbf{b} + \mathbf{a} \cdot \mathbf{c}$
- Scalar multiplication: $(k\mathbf{a}) \cdot \mathbf{b} = k(\mathbf{a} \cdot \mathbf{b})$ for any scalar $k$
- Dot product with itself: $\mathbf{a} \cdot \mathbf{a} = |\mathbf{a}|^2 = a^2$. In other words, the magnitude of a vector is the square root of the dot product of the vector with itself: $|\mathbf{a}| = \sqrt{\mathbf{a} \cdot \mathbf{a}}$.
- Orthogonal vectors: If $\mathbf{a} \cdot \mathbf{b} = 0$, then the vectors are perpendicular (orthogonal)
Geometric Interpretation
The scalar product has an important geometric meaning. The quantity $\mathbf{a} \cdot \mathbf{b}$ equals the magnitude of $\mathbf{a}$ times the component of $\mathbf{b}$ in the direction of $\mathbf{a}$ (or vice versa). This is equivalent to:
where $b\cos\theta$ is the projection of $\mathbf{b}$ onto the direction of $\mathbf{a}$.
The value of the scalar product depends on the angle $\theta$ between the two vectors. This leads to several important special cases:
Special Cases of the Scalar Product:- $\mathbf{a} \cdot \mathbf{b} = 0$ for perpendicular vectors, i.e. when $\theta = 90°$. This is a useful test for orthogonality.
- $\mathbf{a} \cdot \mathbf{b} = ab$ when $\theta = 0°$. More generally, $\mathbf{a} \cdot \mathbf{b} > 0$ when $90^\circ>\theta\geq 0^\circ$.
- $\mathbf{a} \cdot \mathbf{b} = -ab$ when $\theta = 180°$. More generally, $\mathbf{a} \cdot \mathbf{b} < 0$ when $180^\circ\geq \theta>90^\circ$.
In general, the scalar product ranges from $-ab$ (when vectors are opposite) to $+ab$ (when vectors are parallel in the same direction), with zero occurring when the vectors are perpendicular.
Calculate the scalar product of $\mathbf{a} = 3\hat{x} + 4\hat{y}$ and $\mathbf{b} = 2\hat{x} - \hat{y} + 5\hat{z}$.
Solution:
Using the component form:
Find the angle between $\mathbf{u} = \hat{x} + 2\hat{y} + 2\hat{z}$ and $\mathbf{v} = 3\hat{x} + 4\hat{z}$.
Solution:
First, calculate the scalar product:
Next, find the magnitudes:
Using the definition $\mathbf{u} \cdot \mathbf{v} = |\mathbf{u}||\mathbf{v}|\cos\theta$:
Show that $\mathbf{a} = 2\hat{x} - \hat{y} + 3\hat{z}$ and $\mathbf{b} = \hat{x} + 5\hat{y} + \hat{z}$ are perpendicular.
Solution:
Calculate the scalar product:
Since $\mathbf{a} \cdot \mathbf{b} = 0$, the vectors are orthogonal (perpendicular) to each other.
Dot Products of Orthonormal Basis Vectors
An orthonormal basis is a set of vectors that are perpendicular to each other and have magnitude 1. Consider, for example, the Cartesian basis vectors $\hat{x}$, $\hat{y}$, and $\hat{z}$. Because the basis vectors are unit vectors (i.e. normalized), the dot product of any basis vectors with itself is 1. Because the basis vectors are perpendicular to each other, the dot product of any two different basis vectors is 0. Therefore, we can organize the dot products between all pairs of Cartesian basis vectors as:
These results can be succintly summarized using the generalized unit vectors $\hat{e}_i$, where $\hat{e}_1 = \hat{x}$, $\hat{e}_2 = \hat{y}$, and $\hat{e}_3 = \hat{z}$. We also introduce the Kronecker delta symbol $\delta_{ij}$, which returns 1 if the indices are the same and 0 if they are different:
Projections: Finding Vector Components
A frequent application of the scalar product is calculating vector components in a given orthonormal coordinate system. To find the $x$ component of a vector $\mathbf{v}$, for example, we take the dot product of $\mathbf{v}$ with the unit vector $\hat{x}$:
When we take the dot product of a vector with a unit vector that defines a coordinate axis, we say we are projecting the vector onto that axis. this terminilogy conjurs images of shining a light on the vector perpendicular to the axis to create a shadow or "projection" of the vector onto the axis.
This method works becuse the unit vectors form an orthonormal basis, meaning they are perpendicular to each other and have magnitude 1. Let's see why the above method works. We start by taking the dot product of our vector $\mathbf{v}$ with the unit vector $\hat{x}$ and substituting the components of $\mathbf{v}$:
We used the fact that the unit vectors are orthonormal, i.e. $\hat{x} \cdot \hat{x} =1$, $\hat{y} \cdot \hat{x} =0$, and $\hat{y} \cdot \hat{x} =0$,.
These results can be generalized using the $\hat{e}_i$ basis vectors. Let's calculate the component of $\mathbf{v}$ in the direction of $\hat{e}_i$:
Calculate $\mathbf{v} \cdot \mathbf{v}$ where $\mathbf{v} = 4\hat{x} - 3\hat{y}$.
Solution:
Note: this is the square of the magnitude of the vector, i.e. $|\mathbf{v}|^2 = \mathbf{v} \cdot \mathbf{v}$.
Projecting a Vector onto an Arbitrary Axis
We can use the scalar product to project a vector onto an axis defined by any unit vector.
The projection of a vector $\mathbf{v}$ onto an arbitrary axis defined by a unit vector $\hat{n}$ is given by:
Calculate the component of vector $\mathbf{r}$ along an axis defined by the unit vector $\hat{n}$, where
Applications in Physics
The scalar product appears frequently in physics:
- Work: $W = \mathbf{F} \cdot \mathbf{d}$, where work is the dot product of force and displacement
- Power: $P = \mathbf{F} \cdot \mathbf{v}$, where power is the dot product of force and velocity
- Electric flux: $\Phi = \mathbf{E} \cdot \mathbf{A}$, relating electric field to area
- Component extraction: The component of a vector in a given direction can be found using the dot product with a unit vector in that direction