Understanding the Dot Product
The dot product (also called scalar product or inner product) is a fundamental operation in linear algebra that takes two vectors and returns a single scalar value. It measures how much two vectors point in the same direction and has deep geometric and algebraic significance.
Dot Product Formulas
Algebraic Definition
Sum of the products of corresponding components.
Geometric Definition
Product of magnitudes and cosine of the angle between them.
Angle Between Vectors
Derived from the dot product formula.
Vector Magnitude
The length of a vector computed from its components.
Scalar Projection
The projection of A onto B as a scalar value.
Vector Projection
The projection of A onto B as a vector.
Properties of the Dot Product
- Commutative: A . B = B . A
- Distributive: A . (B + C) = A . B + A . C
- Scalar multiplication: (cA) . B = c(A . B)
- Self dot product: A . A = |A|2
- Orthogonality: If A . B = 0, the vectors are perpendicular.
Geometric Interpretation
The dot product tells you how aligned two vectors are. If the result is positive, the vectors point in roughly the same direction (angle less than 90 degrees). If zero, they are perpendicular. If negative, they point in roughly opposite directions (angle greater than 90 degrees).
Applications of the Dot Product
- Computing the angle between two vectors in physics and engineering.
- Determining if two vectors are orthogonal (perpendicular).
- Calculating work done by a force: W = F . d.
- Projecting one vector onto another in computer graphics.
- Lighting calculations in 3D rendering (Lambert's cosine law).
- Machine learning and data science (cosine similarity).