Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Coordinate geometry0/7
  • Vectors and the dot product0/7
  • Trigonometry0/7
  • Sigma and series0/7
  • Data handling0/7
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
v⃗\vec{v}vMaths, module 7: Vectors and the dot product, lesson 5 of 7

The dot product in depth

Two ways to compute it, why they agree, every rule it follows, and how it tests for right angles.

11 minute read2 things to try5 questionsFree

The dot product (scalar product) of two vectors is a single number. There are two ways to find it.

From components: multiply matching components and add.

a⋅b=a1b1+a2b2\mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2a⋅b=a1​b1​+a2​b2​

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 5 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • a⋅b=a1b1+a2b2=∣a∣∣b∣cos⁡θ\mathbf{a}\cdot\mathbf{b} = a_1b_1 + a_2b_2 = |\mathbf{a}||\mathbf{b}|\cos\thetaa⋅b=a1​b1​+a2​b2​=∣a∣∣b∣cosθ.
  • Zero dot product means perpendicular.
  • a⋅a=∣a∣2\mathbf{a}\cdot\mathbf{a} = |\mathbf{a}|^2a⋅a=∣a∣2, and the product spreads over addition.

More in Vectors and the dot product

  1. 1What a vector is
  2. 2Adding, subtracting and scaling vectors
  3. 3Length and unit vectors
  4. 4Position vectors and geometry
  5. 5The dot product in depth
  6. 6Angles, projections and work
  7. 7Vectors in three dimensions