Understanding the Vector Dot Product
The dot product (also known as the scalar product) is an algebraic operation that takes two equal-length sequences of numbers—typically coordinate vectors—and returns a single number. Geometrically, it tells you how much of one vector goes in the direction of another.
Formulas
1. Algebraic Definition:
2. Geometric Definition (Angle):
The dot product is also deeply tied to the angle (θ) between the two vectors and their magnitudes (|A| and |B|):
This allows us to solve for the angle:
θ = arccos( (A · B) / (|A| |B|) )
Key Concepts
- Orthogonality: If the dot product is exactly 0, the vectors are perpendicular (orthogonal) to each other (angle is 90°).
- Magnitude: The magnitude of a 3D vector is its length, calculated using the Pythagorean theorem in 3D: |A| = √(a_x² + a_y² + a_z²).
- Parallel Vectors: If the angle is 0° or 180°, the vectors are perfectly parallel (though potentially pointing in opposite directions).