Dot Products Explained
💥 The Dot Product & Duality
The dot product is a fundamental concept in linear algebra, often introduced early due to its straightforward numerical definition. However, its deeper mathematical significance, particularly its connection to linear transformations, becomes clear when viewed through the lens of duality.
🔢 Numerical & Geometric Interpretation of the Dot Product
Traditionally, the dot product is understood in two ways:
🧮 Numerical Definition
For two vectors of the same dimension (lists of numbers of the same length), the dot product involves:
Pairing up corresponding coordinates.
Multiplying each pair together.
Adding all the resulting products.
Examples:
Vector (12) dotted with (34) is (1×3)+(2×4)=3+8=11.
Vector 6283 dotted with 1853 is (6×1)+(2×8)+(8×5)+(3×3)=6+16+40+9=71.
📏 Geometric Interpretation
The dot product between two vectors, v and w (v ⋅ w), can be visualized as:
Projecting vector w onto the line spanned by vector v.
Multiplying the length of this projection by the length of v.
Key Properties:
If the projection of w points in the same direction as v, the dot product is positive.
If the vectors are perpendicular (orthogonal), the projection of one onto the other is the zero vector, and the dot product is zero.
If the projection of w points in the opposite direction from v, the dot product is negative.
Symmetry of the Dot Product: A surprising property is that the order does not matter: v ⋅ w = w ⋅ v.
Projecting w onto v and multiplying by ∣v∣ yields the same result as projecting v onto w and multiplying by ∣w∣.
Intuition for Symmetry:
If v and w have the same length, the projection process is a mirror image, thus symmetric.
If one vector, say v, is scaled by a constant (e.g., 2v), the dot product also scales by that constant (2v⋅w=2(v⋅w)).
If w is projected onto 2v, the projection length remains the same, but the length of the vector it's projected onto (2v) doubles.
If 2v is projected onto w, the projection length doubles, while the length of w remains constant.
In both cases, the overall effect on the dot product value is the same.
💡 Connecting Numerical Dot Product to Geometric Projection: Duality
The connection between the numerical calculation and the geometric projection is not immediately obvious. To understand this, we need to explore linear transformations from multiple dimensions to one dimension (the number line).
📉 Linear Transformations to the Number Line
These are functions that take a 2D vector as input and output a single number.
Visual Property of Linearity: A linear transformation maps evenly spaced dots on a line in the input space to evenly spaced dots on the output number line. If dots become unevenly spaced, the transformation is not linear.
Matrix Representation: Just like higher-dimensional linear transformations, these are completely determined by where they map the basis vectors i^ and j^.
Each basis vector lands on a number (a single coordinate).
The transformation is represented by a 1x2 matrix, where each column is a single number representing where i^ and j^ land.
Example:
A linear transformation maps i^ to 1 and j^ to -2.
The matrix for this transformation is (1−2).
To find where a vector (43) lands:
Break it down: 4i^+3j^.
Apply linearity: 4×(where i^ lands)+3×(where j^ lands)
Result: 4×1+3×(−2)=4−6=-2.
Numerically, this is matrix-vector multiplication: (1−2)(43)=(1×4)+(−2×3)=4−6=−2.
🤝 The Link to Dot Products
Notice that multiplying a 1x2 matrix by a 2D vector looks exactly like a dot product calculation.
A 1x2 matrix (ab) can be seen as a 2D vector (ab) "tipped on its side."
This suggests a profound connection: there's an association between linear transformations from 2D space to the number line and 2D vectors themselves.
🎯 Projection as a Linear Transformation
Let's define a linear transformation purely geometrically:
Imagine a copy of the number line placed diagonally in 2D space, with 0 at the origin.
Define a unit vector u^ whose tip sits at the number 1 on this diagonal number line.
Consider a function that projects any 2D vector straight onto this diagonal number line.
This function takes 2D vectors as input and outputs numbers (the position on the diagonal number line).
This projection function is linear because it preserves the even spacing of dots.
📏 Deriving the Matrix for Projection
To find the 1x2 matrix describing this projection transformation, we need to see where i^ and j^ land.
Where i^ lands: Projecting i^ onto the line of u^ is symmetric to projecting u^ onto the x-axis. Projecting u^ onto the x-axis means taking its x-coordinate. Therefore, i^ lands on the x-coordinate of u^.
Where j^ lands: Similarly, j^ lands on the y-coordinate of u^.
Thus, the entries of the 1x2 matrix describing this projection transformation are simply the coordinates of u^.
Applying this projection transformation to any vector involves multiplying it by this matrix.
This matrix multiplication is computationally identical to taking the dot product with u^.
This explains why the dot product with a unit vector u^ can be interpreted as projecting a vector onto the span of u^ and taking the length of that projection.
📈 Scaling Non-Unit Vectors
What if we use a non-unit vector, say 3u^?
Numerically, each component of u^ is multiplied by 3.
The associated matrix becomes (3ux3uy).
This new matrix can be interpreted as first projecting any vector onto the line of u^, and then scaling the result by 3.
This is why the dot product with a non-unit vector can be interpreted as first projecting onto that vector, then scaling the length of that projection by the length of the vector.
🔄 Duality: The Core Insight
The profound lesson here is:
Any linear transformation from a vector space to the number line (1D space), regardless of how it's defined (e.g., geometrically by projection), can always be represented by a unique vector.
Applying this transformation is equivalent to taking the dot product with that unique vector.
This concept is known as duality.
Duality refers to a natural but often surprising correspondence between two seemingly different types of mathematical objects.
In this context:
The dual of a vector is the linear transformation (to the number line) that it encodes.
The dual of a linear transformation from some space to one dimension is a certain vector in that space.
🌟 Significance of the Dot Product
In summary:
Surface Level: The dot product is an incredibly useful geometric tool for understanding projections and determining if vectors generally point in the same direction. This is its most practical and important takeaway.
Deeper Level: Dotting two vectors together is a way to translate one of them into the world of transformations.
A vector can be conceptually understood not just as an arrow in space, but as the "physical embodiment" or "shorthand" for a specific linear transformation that maps other vectors to numbers.
This perspective simplifies thinking about complex transformations by associating them with more intuitive geometric vectors.
This duality is a powerful idea that recurs throughout mathematics, offering deeper insights into the nature of mathematical objects.

Ask anything
We've read this whole study set, so questions about it get the best answers.