Dot product
Calculate dot product using magnitudes and angle.
This public page keeps the free explanation visible and leaves premium worked solving, advanced walkthroughs, and saved study tools inside the app.
Core idea
Overview
The dot product, also known as the scalar product, is an algebraic operation that takes two vectors and returns a single scalar value. Geometrically, it represents the product of the magnitudes of the two vectors and the cosine of the angle between them, quantifying how much one vector aligns with the other.
When to use: Use this formula when you need to calculate the angle between two vectors or find the projection of one vector onto another. It is the primary method for determining if two vectors are orthogonal, as their dot product will be exactly zero in such cases.
Why it matters: In physics, the dot product is used to calculate work done by a force over a displacement. In computer science, it is fundamental for 3D graphics shading, machine learning similarity scores, and signal processing.
Symbols
Variables
|a| = Magnitude of a, |b| = Magnitude of b, \theta = Angle θ, \mathbf{a}\cdot\mathbf{b} = Dot Product
Walkthrough
Derivation
Formula: Vector Dot Product (Scalar Product)
The dot product produces a scalar and connects vector components with the angle between vectors.
- Vectors are in the same dimension (e.g., both 3D).
- Components are given in a consistent coordinate system.
Component Form:
Multiply corresponding components and add.
Magnitude–Angle Form:
This shows how the dot product depends on the angle between vectors.
Note: If , the vectors are perpendicular.
Result
Source: Standard curriculum — A-Level Pure Mathematics (Vectors)
Visual intuition
Graph
Graph unavailable for this formula.
The graph of the dot product against the angle theta is a sinusoidal wave. This shape occurs because the dot product is directly proportional to the cosine of the angle between the two vectors, causing the result to oscillate between the product of the magnitudes and its negative.
Graph type: sinusoidal
Why it behaves this way
Intuition
Visualize the projection of one vector onto the other: the dot product is the length of this projection multiplied by the magnitude of the vector it's projected onto, with a sign indicating alignment.
Signs and relationships
- \cosθ: The cosine of the angle directly determines the sign and magnitude of the dot product's directional component. If is acute (0° < < 90°), is positive, indicating alignment.
Free study cues
Insight
Canonical usage
The unit of the dot product is the product of the units of the two vectors being multiplied, as the cosine of the angle is dimensionless.
Common confusion
A common mistake is incorrectly identifying the units of the input vectors or failing to ensure dimensional consistency. While cos(theta)
Dimension note
The cos(theta) term is inherently dimensionless. The dot product itself is generally not dimensionless; its dimension is the product of the dimensions of the two vectors.
Unit systems
One free problem
Practice Problem
A force vector has a magnitude of 10 and a displacement vector has a magnitude of 5. If the angle between them is 60°, find the resulting dot product.
Solve for:
Hint: The cosine of 60° is 0.5.
The full worked solution stays in the interactive walkthrough.
Where it shows up
Real-World Context
Work done = Force dot Distance.
Study smarter
Tips
- The result of a dot product is always a scalar number, never a vector.
- If the angle is 90°, the dot product is 0 because cos(90°) = 0.
- A negative dot product indicates that the vectors are pointing in generally opposite directions (angle > 90°).
- When vectors are parallel and in the same direction, the dot product is simply the product of their magnitudes.
Avoid these traps
Common Mistakes
- Using sine instead of cosine.
- Confusing with cross product.
Common questions
Frequently Asked Questions
The dot product produces a scalar and connects vector components with the angle between vectors.
Use this formula when you need to calculate the angle between two vectors or find the projection of one vector onto another. It is the primary method for determining if two vectors are orthogonal, as their dot product will be exactly zero in such cases.
In physics, the dot product is used to calculate work done by a force over a displacement. In computer science, it is fundamental for 3D graphics shading, machine learning similarity scores, and signal processing.
Using sine instead of cosine. Confusing with cross product.
Work done = Force dot Distance.
The result of a dot product is always a scalar number, never a vector. If the angle is 90°, the dot product is 0 because cos(90°) = 0. A negative dot product indicates that the vectors are pointing in generally opposite directions (angle > 90°). When vectors are parallel and in the same direction, the dot product is simply the product of their magnitudes.
References
Sources
- Halliday, Resnick, and Walker, Fundamentals of Physics
- Wikipedia: Dot product
- Bird, Stewart, and Lightfoot, Transport Phenomena
- Stewart, James. Calculus: Early Transcendentals. 8th ed. Cengage Learning, 2016.
- Anton, Howard, and Chris Rorres. Elementary Linear Algebra: Applications Version. 11th ed. Wiley, 2013.
- Standard curriculum — A-Level Pure Mathematics (Vectors)