Formula & Calculator
Dot Product of Vectors
Calculates the scalar dot product of two vectors by summing the products of their corresponding components.
Variables
| Symbol | Quantity | Unit |
|---|---|---|
| a, b | Vectors being multiplied | |
| a1, a2, a3 | Components of vector a | |
| b1, b2, b3 | Components of vector b |
What it means
The dot product (or scalar product) of two vectors is defined as the sum of the products of their corresponding components. For 3D vectors, a·b = a₁b₁ + a₂b₂ + a₃b₃. Geometrically, it equals |a||b| cos θ, where θ is the angle between them. The dot product is used to determine if vectors are orthogonal (dot=0), to compute projections, and to calculate work in physics (W = F·d). In machine learning, it is used in linear regression, kernel methods, and similarity measures. It is also used in computer graphics for lighting calculations. Understanding the dot product is fundamental for vector analysis and its applications.
Worked example
Dot Product – Two Examples
Real‑World| Parameter | Value |
|---|---|
| Vector a | (3,4,0) |
| Vector b | (1,2,0) |
| Parameter | Value |
|---|---|
| Vector a | (1,0,0) |
| Vector b | (0,1,0) |
Common mistakes
- Dot product: a·b = a₁b₁ + a₂b₂ + a₃b₃ – sum of component‑wise products.
- Result: A scalar (not a vector).
- Commutative: a·b = b·a.
- Geometric: a·b = |a||b|cosθ – useful for finding angles.
- Orthogonality: If a·b = 0, the vectors are perpendicular.
Applications
The dot product of vectors, a·b = a₁b₁ + a₂b₂ + a₃b₃, is a scalar that measures the projection of one vector onto another. It is used to determine angles, to test orthogonality, and to compute work done by a force. Engineers apply it in structural analysis to resolve forces, in computer graphics for lighting calculations, and in signal processing for correlation and similarity. The dot product also appears in machine learning for vector similarity measures (e.g., cosine similarity). By using this operation, professionals can efficiently compute projections and geometric relationships, making it a fundamental tool in vector algebra across all STEM fields.
- Force analysis in mechanical systems (work and projections)
- Angle and orthogonality checks in geometry
- Computer graphics (shading, light reflection)
- Signal processing (correlation, matched filtering)
- Machine learning (similarity metrics, kernel methods)