KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesThe Dot Product and the Angle Between VectorsEngineering · Engineering MathematicsLesson 2/2← PrevNext →
GuidePublished 15 Aug 20264 min readBy Kevin Jogindot productscalar productangle between vectorsperpendicular
On this page

Ask about this page

KEVOS AIThe Dot Product and the Angle Between Vectors

KEVOS knowledge first · trusted web sources when needed

Vectors

The Dot Product and the Angle Between Vectors

A product of two vectors that returns a number, why it equals |u||v|cos θ, and the test for perpendicularity.

Category Engineering / MathematicsStream VectorsLevel AdvancedReading 5 minSource Week 10, pages 3-6

What this page covers

  • Compute a dot product from components
  • State and use the geometric form of the dot product
  • Find the angle between two vectors
  • Test two vectors for perpendicularity
On this page
  1. The definition
  2. The geometric form
  3. Finding the angle
  4. What the sign tells you
  5. Properties
  6. Common mistakes
  7. Frequently asked questions

The definition

Dot product
u · v = u1v1 + u2v2Source, Week 10, page 3. The result is a scalar

Multiply matching components and add. The source emphasises that the answer is a scalar, not a vector, which is why it is also called the scalar product.

A first computation

For u = (2, 3) and v = (5, -7):

u · v = 2 × 5 + 3 × (-7) = 10 - 21 = -11Source example, Week 10, page 5

Negative, which will turn out to mean the angle between them is obtuse.

The geometric form

The key theorem

If two vectors are inclined at angle θ, then

u · v = |u||v|cos θSource, Week 10, page 3

The source derives it from the cosine rule, applied to the triangle whose sides are u, v and u - v.

The derivation

By the cosine rule on that triangle:

|u - v|2 = |u|2 + |v|2 - 2|u||v|cos θSource, Week 10, page 4

Now expand the left side in components:

|u - v|2 = (u1 - v1)2 + (u2 - v2)2= u12 - 2u1v1 + v12 + u22 - 2u2v2 + v22= |u|2 + |v|2 - 2(u1v1 + u2v2)Source, Week 10, page 4

Comparing the two expressions, the squared-magnitude terms cancel and what remains is

-2(u1v1 + u2v2) = -2|u||v|cos θu1v1 + u2v2 = |u||v|cos θWhich is the theorem

So the algebraic definition and the geometric one agree. That equivalence is what makes the dot product useful: the components are easy to compute with, and the angle is what is usually wanted.

Finding the angle

Rearranged for the angle
cos θ = u · v|u||v|Compute all three quantities, then take the inverse cosine

Worked example — the source's case

Find the angle between u = (2, 3) and v = (5, -7).

u · v = 10 - 21 = -11|u| = √4 + 9 = √13|v| = √25 + 49 = √74Source, Week 10, page 5
cos θ = -11√13√74 = -1131.02 = -0.3547θ = 110.8°Source result
A slip in the source's working

Week 10, page 5 has an intermediate line reading -11 = √74cos θ, which has dropped the factor |u| = √13. The final numeric answer is right, and the check at the foot of the same page restores the factor, writing cos θ = u · v|u||v| and obtaining -0.3547. Only the intermediate line is wrong.

Sanity check

The dot product is negative, so the angle must exceed 90°. 110.8° does ✓.

What the sign tells you

Reading the dot product
u · vcos θAngleMeaning
PositivePositive0° ≤ θ < 90°The vectors broadly agree in direction
ZeroZeroθ = 90°Perpendicular
NegativeNegative90° < θ ≤ 180°The vectors broadly oppose
|u||v|1θ = 0°Parallel, same direction
-|u||v|-1θ = 180°Parallel, opposite direction
The perpendicularity test

Two non-zero vectors are perpendicular exactly when u · v = 0.

This is a far cheaper test than computing an angle. For u = (3, 2) and v = (-2, 3): -6 + 6 = 0, so they are perpendicular, with no inverse trigonometry required.

Note

The same fact appeared earlier in a different guise. Two lines are perpendicular when m1m2 = -1; direction vectors (q, p) and (-p, q) have slopes pq and -qp, and their dot product is -qp + pq = 0. The two conditions are the same statement.

Properties

The algebraic rules
PropertyStatementNote
Commutativeu · v = v · uUnlike matrix multiplication
Distributiveu · (v + w) = u · v + u · wOver vector addition
Scalar(cu) · v = c(u · v)Scalars pass through
Selfu · u = |u|2Since cos 0 = 1
Zero0 · v = 0For every v

The fourth is worth noting: taking the dot product of a vector with itself gives the square of its magnitude, which provides an alternative route to |u| and is used constantly in proofs.

There is no cancellation law

From u · v = u · w it does not follow that v = w. Rearranging gives u · (v - w) = 0, which only says u is perpendicular to v - w. Any w differing from v by a vector perpendicular to u will satisfy the equation.

Common mistakes

Errors and checks
MistakeCorrectCheck
Expecting a vector resultThe dot product is a scalarThe components are multiplied then added
Dropping a magnitude from the denominatorDivide by |u||v||cos θ| must not exceed 1
cos θ coming out beyond [-1, 1]An arithmetic error has occurredRecompute the magnitudes
Concluding v = w from u · v = u · wNo cancellation lawu is perpendicular to v - w
Forgetting the sign checkA negative dot product means an obtuse angleCompare with the computed angle
Testing perpendicularity by computing the angleJust check whether the dot product is zeroFaster and exact

Frequently asked questions

Why is the result a scalar?

Because the components are multiplied and then added, and adding numbers gives a number. That is why it is also called the scalar product.

What does the dot product measure?

How much the two vectors point the same way. It is positive when the angle is acute, zero when they are perpendicular, and negative when the angle is obtuse.

How do I test for perpendicularity?

Check whether the dot product is zero. u · v = 0 with neither vector zero means cos θ = 0, hence θ = 90°.

Does it work in three dimensions?

Yes. u · v = u1v1 + u2v2 + u3v3, and the geometric formula is unchanged. The derivation from the cosine rule carries over directly.

Related pages

  • Vectors: Components, Magnitude and Direction
  • Solving Triangles: the Sine and Cosine Rules
  • Parallel and Perpendicular Lines
  • Matrix Multiplication and Matrix Algebra

Source. Handwritten teaching notes, Week 10, pages 3-6.

This page is an original exposition prepared for the KEVOS® knowledge library. It restates, reorganises and verifies the mathematics of the supplied teaching notes; it is not a reproduction of them. Numerical values taken from the notes are identified as source examples and are not presented as engineering standards.

Continue learning

Vectors: Components, Magnitude and DirectionGuide · Engineering MathematicsSolving Triangles: the Sine and Cosine RulesGuide · Engineering MathematicsThe PMI Learning Curve (Start Here)Guide · Engineering MathematicsAbstract Algebra Prerequisites: Number Theory, Set Theory and Linear AlgebraGuide · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®