2D: A · B = x₁x₂ + y₁y₂
3D: A · B = x₁x₂ + y₁y₂ + z₁z₂
θ = arccos(A · B / (|A||B|))
If A · B = 0
Vectors are orthogonal (perpendicular)
If A · B > 0
Angle between vectors is acute (< 90°)
If A · B < 0
Angle between vectors is obtuse (> 90°)
The dot product (also called the scalar product or inner product) is a fundamental operation in vector algebra that takes two vectors and returns a single scalar value. It measures how much two vectors point in the same direction and has widespread applications in physics, engineering, computer graphics, and machine learning.
Geometrically, the dot product represents the product of the magnitudes of two vectors and the cosine of the angle between them: A · B = |A||B|cos(θ). This relationship makes it invaluable for determining angles between vectors, projecting one vector onto another, and testing for perpendicularity.
Physics: The dot product is essential for calculating work done by a force (W = F · d), where work is the force applied in the direction of displacement. It's also used in calculating power, torque components, and electromagnetic field interactions.
Computer Graphics: Lighting calculations rely heavily on dot products to determine how light interacts with surfaces. The angle between the light direction and surface normal determines brightness. It's also used in collision detection and ray tracing.
Machine Learning: Dot products form the basis of neural network computations, where inputs are multiplied by weights and summed. Cosine similarity, derived from the dot product, measures how similar two vectors are in high-dimensional spaces.
Dot product calculations follow standard Euclidean formulas. Results depend on correct component input and selected dimension. This calculator is intended for educational and reference purposes. Always verify critical calculations independently.