MathematicsVectorsA-Level
EdexcelAQAIBAbiturAPBaccalauréat GénéralBachilleratoCambridge

Dot product

Calculate dot product using magnitudes and angle.

Understand the formulaSee the free derivationOpen the full walkthrough

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

Magnitude of a
Magnitude of b
Angle θ
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.
1

Component Form:

Multiply corresponding components and add.

2

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.

A scalar quantity that measures the extent to which two vectors point in the same direction, taking into account their magnitudes.
It tells you how much one vector 'goes along with' the other. A positive value means they generally align, zero means they are perpendicular, and a negative value means they generally oppose each other.
The non-negative scalar length or magnitude of vector \mathbf{a}.
The 'strength' or 'size' of vector . Larger magnitudes lead to a larger dot product for a given angle.
The non-negative scalar length or magnitude of vector \mathbf{b}.
The 'strength' or 'size' of vector . Larger magnitudes lead to a larger dot product for a given angle.
A scalar factor that quantifies the angular relationship between the two vectors.
This factor ranges from -1 (vectors point opposite) to 1 (vectors point in the same direction), with 0 for perpendicular vectors. It scales the product of magnitudes based on their relative orientation.

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

Varies based on the physical quantity represented by vector a (e.g., meter · The magnitude of vector a. Its units and dimensions depend entirely on the nature of the vector itself.
Varies based on the physical quantity represented by vector b (e.g., meter · The magnitude of vector b. Its units and dimensions depend entirely on the nature of the vector itself.
radian or degree · The angle between vectors a and b. The cosine function is applied to this angle, making the term cos(theta) inherently dimensionless.

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.

Magnitude of a10
Magnitude of b5
Angle θ60 deg

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

  1. Halliday, Resnick, and Walker, Fundamentals of Physics
  2. Wikipedia: Dot product
  3. Bird, Stewart, and Lightfoot, Transport Phenomena
  4. Stewart, James. Calculus: Early Transcendentals. 8th ed. Cengage Learning, 2016.
  5. Anton, Howard, and Chris Rorres. Elementary Linear Algebra: Applications Version. 11th ed. Wiley, 2013.
  6. Standard curriculum — A-Level Pure Mathematics (Vectors)