Skip to content
Gioi Toan
Start learning
Two vectors joined head to tail on a grid, and their sum

Notes on Lesson 4: Dot product of two vectors (Maths 10 Chan troi sang tao, Chapter V)

Lesson summary

Given two vectors u⃗\vec{u} and v⃗\vec{v} that are both different from the zero vector.

The dot product of a vector u⃗\vec{u} with itself is called the scalar square of u⃗\vec{u}, denoted u⃗2\vec{u}^2.

To determine the angle between two vectors, you need to bring them to the same origin.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Thực hiện được tích vô hướng của hai vectơ và nhận biết tính chất
  • Vận dụng vào bài toán vật lí, thực tiễn

When you pull a heavy object with a rope, if you pull straight in the direction the object moves, it moves faster than if you pull at an angle. Why is that? The answer involves a special operation between two vectors: the dot product. Today's lesson will help you understand the angle between two vectors, how to compute the dot product from its definition, its properties, and how to use it to compute the work of a force in real life.

Practise similar problems

Key ideas: what do you need to know?

Angle between two vectors

  • Given two vectors u⃗\vec{u} and v⃗\vec{v} that are both different from the zero vector. From any point AA, draw AB→=u⃗\overrightarrow{AB} = \vec{u} and AC→=v⃗\overrightarrow{AC} = \vec{v}. Then the angle between the two vectors u⃗\vec{u} and v⃗\vec{v}, denoted (u⃗,v⃗)\left(\vec{u}, \vec{v}\right), is the angle BAC^\widehat{BAC} with measure from 0∘0^\circ to 180∘180^\circ.
  • Special cases:

+ (u⃗,v⃗)=90∘\left(\vec{u}, \vec{v}\right) = 90^\circ if and only if u⃗⊥v⃗\vec{u} \perp \vec{v} (or v⃗⊥u⃗\vec{v} \perp \vec{u}). In particular, 0⃗⊥u⃗\vec{0} \perp \vec{u} for every u⃗\vec{u}.
+ (u⃗,v⃗)=0∘\left(\vec{u}, \vec{v}\right) = 0^\circ if and only if u⃗\vec{u} and v⃗\vec{v} have the same direction.
+ (u⃗,v⃗)=180∘\left(\vec{u}, \vec{v}\right) = 180^\circ if and only if u⃗\vec{u} and v⃗\vec{v} have opposite directions.

  • Note: The angle between two vectors does not depend on the choice of point AA. For the zero vector, the angle between u⃗\vec{u} and 0⃗\vec{0} is taken by convention to be any value from 0∘0^\circ to 180∘180^\circ.
  • Example: In the equilateral triangle ABCABC, (AB→,AC→)=60∘\left(\overrightarrow{AB}, \overrightarrow{AC}\right) = 60^\circ, but (AB→,BC→)=120∘\left(\overrightarrow{AB}, \overrightarrow{BC}\right) = 120^\circ.

In plain words: To determine the angle between two vectors, you need to bring them to the same origin. If the two vectors already share an origin, the angle between them is the angle formed by the two rays containing those vectors. If they do not share an origin, translate one vector so that its origin coincides with the origin of the other vector. The important thing is that the angle between two vectors is always measured between 0∘0^\circ and 180∘180^\circ. Do not confuse it with the angle between two straight lines (which is always less than or equal to 90∘90^\circ).

Phrase by phrase
angle between two vectors
The angle formed by two vectors when placed at a common origin, with measure from 0∘0^\circ to 180∘180^\circ.Example: In the equilateral triangle ABCABC, (AB→,AC→)=60∘\left(\overrightarrow{AB}, \overrightarrow{AC}\right) = 60^\circ.
perpendicular
Two vectors whose angle between them equals 90∘90^\circ.Example: In the square ABCDABCD, AB→⊥AD→\overrightarrow{AB} \perp \overrightarrow{AD}.
same direction
Two vectors whose lines are parallel or coincident lines and which point in the same direction.Example: If u⃗\vec{u} and v⃗\vec{v} have the same direction, then (u⃗,v⃗)=0∘\left(\vec{u}, \vec{v}\right) = 0^\circ.
opposite direction
Two vectors whose lines are parallel or coincident lines and which point in opposite directions.Example: If u⃗\vec{u} and v⃗\vec{v} have opposite directions, then (u⃗,v⃗)=180∘\left(\vec{u}, \vec{v}\right) = 180^\circ.

Definition of the dot product of two vectors

  • The dot product of two vectors u⃗\vec{u} and v⃗\vec{v} is a number, denoted u⃗⋅v⃗\vec{u} \cdot \vec{v}, given by the formula:

u⃗⋅v⃗=∣u⃗∣⋅∣v⃗∣⋅cos⁡(u⃗,v⃗).\vec{u} \cdot \vec{v} = |\vec{u}| \cdot |\vec{v}| \cdot \cos\left(\vec{u}, \vec{v}\right).

  • Note: u⃗⋅v⃗=0\vec{u} \cdot \vec{v} = 0 if and only if u⃗⊥v⃗\vec{u} \perp \vec{v} (with u⃗≠0⃗\vec{u} \neq \vec{0}, v⃗≠0⃗\vec{v} \neq \vec{0}).
  • The dot product of a vector u⃗\vec{u} with itself is called the scalar square of u⃗\vec{u}, denoted u⃗2\vec{u}^2. We have:

u⃗2=u⃗⋅u⃗=∣u⃗∣⋅∣u⃗∣⋅cos⁡0∘=∣u⃗∣2.\vec{u}^2 = \vec{u} \cdot \vec{u} = |\vec{u}| \cdot |\vec{u}| \cdot \cos 0^\circ = |\vec{u}|^2.

  • If u⃗=0⃗\vec{u} = \vec{0} or v⃗=0⃗\vec{v} = \vec{0}, then u⃗⋅v⃗=0\vec{u} \cdot \vec{v} = 0.
  • Example: Given the equilateral triangle ABCABC with side aa. Then:

AB→⋅AC→=∣AB→∣⋅∣AC→∣⋅cos⁡60∘=a⋅a⋅12=a22.\overrightarrow{AB} \cdot \overrightarrow{AC} = |\overrightarrow{AB}| \cdot |\overrightarrow{AC}| \cdot \cos 60^\circ = a \cdot a \cdot \frac{1}{2} = \frac{a^2}{2}.

In plain words: The dot product is a multiplication of two vectors that gives a number, not a vector. The formula has three parts: the length of the first vector, the length of the second vector, and the cosine of the angle between them. The cosine decides the sign of the product: if the angle is acute, the cosine is positive and the product is positive; if the angle is obtuse, the cosine is negative and the product is negative; if the angle is a right angle, the cosine is 0 and the product is 0. So a negative dot product does not mean the calculation is wrong, it tells you that the angle between the two vectors is an obtuse angle.

Phrase by phrase
dot product
A number computed as the product of the lengths of the two vectors multiplied by the cosine of the angle between them.Example: u⃗⋅v⃗=∣u⃗∣∣v⃗∣cos⁡(u⃗,v⃗)\vec{u} \cdot \vec{v} = |\vec{u}| |\vec{v}| \cos\left(\vec{u}, \vec{v}\right).
scalar square
The dot product of a vector with itself, equal to the square of the length of that vector.Example: u⃗2=∣u⃗∣2\vec{u}^2 = |\vec{u}|^2.
zero vector
The vector with length 0, denoted 0⃗\vec{0}.Example: 0⃗⋅u⃗=0\vec{0} \cdot \vec{u} = 0.

Common mistakesMistake: Thinking the dot product is a vector. For example, calculating AB→⋅AC→\overrightarrow{AB} \cdot \overrightarrow{AC} and getting a vector. Correct: the dot product is a number, AB→⋅AC→=∣AB→∣⋅∣AC→∣⋅cos⁡(AB→,AC→)\overrightarrow{AB} \cdot \overrightarrow{AC} = |\overrightarrow{AB}| \cdot |\overrightarrow{AC}| \cdot \cos\left(\overrightarrow{AB}, \overrightarrow{AC}\right).

TipWhen calculating the dot product from the definition, always remember all three parts: the length of the first vector, the length of the second vector, and the cosine of the angle between them. Missing the cosine is wrong.

TipWhen you need the dot product and know the lengths and the angle, use the definition formula; when you need the length of the sum or difference of two vectors, square it and use the identities.

TipThe sign of the dot product tells you the type of angle: positive means an acute angle (or 0∘0^\circ), zero means perpendicular, negative means an obtuse angle (or 180∘180^\circ). Use this to check your result.

Properties of the dot product

For any three vectors u⃗,v⃗,w⃗\vec{u}, \vec{v}, \vec{w} and every real number kk, we have:

  • Commutative property: u⃗⋅v⃗=v⃗⋅u⃗\vec{u} \cdot \vec{v} = \vec{v} \cdot \vec{u}.
  • Distributive property: u⃗⋅(v⃗+w⃗)=u⃗⋅v⃗+u⃗⋅w⃗\vec{u} \cdot \left(\vec{v} + \vec{w}\right) = \vec{u} \cdot \vec{v} + \vec{u} \cdot \vec{w}.
  • Associative property with a number: (ku⃗)⋅v⃗=k(u⃗⋅v⃗)=u⃗⋅(kv⃗)\left(k\vec{u}\right) \cdot \vec{v} = k\left(\vec{u} \cdot \vec{v}\right) = \vec{u} \cdot \left(k\vec{v}\right).
  • Corollaries:

+ u⃗⋅(v⃗−w⃗)=u⃗⋅v⃗−u⃗⋅w⃗\vec{u} \cdot \left(\vec{v} - \vec{w}\right) = \vec{u} \cdot \vec{v} - \vec{u} \cdot \vec{w}.
+ (u⃗+v⃗)2=u⃗2+2u⃗⋅v⃗+v⃗2\left(\vec{u} + \vec{v}\right)^2 = \vec{u}^2 + 2\vec{u} \cdot \vec{v} + \vec{v}^2.
+ (u⃗−v⃗)2=u⃗2−2u⃗⋅v⃗+v⃗2\left(\vec{u} - \vec{v}\right)^2 = \vec{u}^2 - 2\vec{u} \cdot \vec{v} + \vec{v}^2.
+ (u⃗+v⃗)(u⃗−v⃗)=u⃗2−v⃗2\left(\vec{u} + \vec{v}\right)\left(\vec{u} - \vec{v}\right) = \vec{u}^2 - \vec{v}^2.

In plain words: These properties are like the properties of multiplication of real numbers, so you can apply the identities you have learned. However, note that the dot product does not have the associative property for three vectors, because (u⃗⋅v⃗)⋅w⃗\left(\vec{u} \cdot \vec{v}\right) \cdot \vec{w} is not defined (since u⃗⋅v⃗\vec{u} \cdot \vec{v} is a number, multiplied by vector w⃗\vec{w} gives a vector, not a dot product). The identities above are very useful when calculating the length of the sum or difference of two vectors, or proving perpendicularity.

Phrase by phrase
commutative property
Swapping the two vectors in the dot product does not change the result.Example: AB→⋅AC→=AC→⋅AB→\overrightarrow{AB} \cdot \overrightarrow{AC} = \overrightarrow{AC} \cdot \overrightarrow{AB}.
distributive property
Multiplying a vector by a sum of vectors equals the sum of the dot products.Example: u⃗⋅(v⃗+w⃗)=u⃗⋅v⃗+u⃗⋅w⃗\vec{u} \cdot \left(\vec{v} + \vec{w}\right) = \vec{u} \cdot \vec{v} + \vec{u} \cdot \vec{w}.
identity
These expanded formulas are similar to the identities in arithmetic.Example: (u⃗+v⃗)2=u⃗2+2u⃗⋅v⃗+v⃗2\left(\vec{u} + \vec{v}\right)^2 = \vec{u}^2 + 2\vec{u} \cdot \vec{v} + \vec{v}^2.

Common mistakesMistake: Checking perpendicularity by comparing the lengths or directions of two vectors. Correct: two vectors different from 0⃗\vec{0} are perpendicular if and only if their dot product equals 0.

Application: calculating the work of a force

  • If a constant force F⃗\vec{F} acts on an object and the point of application moves in a straight line from MM to NN, then the work of the force F⃗\vec{F} is:

A=F⃗⋅MN→=∣F⃗∣⋅∣MN→∣⋅cos⁡(F⃗,MN→).A = \vec{F} \cdot \overrightarrow{MN} = |\vec{F}| \cdot |\overrightarrow{MN}| \cdot \cos\left(\vec{F}, \overrightarrow{MN}\right).

  • Units: force is measured in newtons (N)\left(\mathrm{N}\right), displacement in metres (m)\left(\mathrm{m}\right), work in joules (J)\left(\mathrm{J}\right).
  • Example: A force F⃗\vec{F} of magnitude 50 N50\,\mathrm{N} pulls an object a distance 10 m10\,\mathrm{m} along a direction that makes an angle 60∘60^\circ with F⃗\vec{F}. Then:

A=50⋅10⋅cos⁡60∘=250 J.A = 50 \cdot 10 \cdot \cos 60^\circ = 250\,\mathrm{J}.

In plain words: The work of a force only counts the part of the force along the direction of motion. If the force is perpendicular to the direction of motion, the work is 0 (for example, the lifting force of your hand when you carry an object sideways). The dot product formula makes this clear: the cosine of the angle 90∘90^\circ is 0. When you pull an object with a slanted force, only the component of the force along the direction of motion does useful work, which is why pulling straight is more efficient.

Phrase by phrase
work of a force
A quantity measured by the dot product of the force vector and the displacement vector.Example: A=F⃗⋅MN→A = \vec{F} \cdot \overrightarrow{MN}.
displacement
The vector connecting the starting position and the ending position of the object.Example: If an object moves from MM to NN, the displacement is MN→\overrightarrow{MN}.
joule
The unit of measurement of work, symbol J\mathrm{J}, equal to 1 N⋅1 m1\,\mathrm{N} \cdot 1\,\mathrm{m}.Example: 1 J=1 N⋅m1\,\mathrm{J} = 1\,\mathrm{N}\cdot\mathrm{m}.

Worked examples

Example 1

Given an equilateral triangle ABCABC with side length aa. Calculate the dot products: a) AB→⋅AC→\overrightarrow{AB} \cdot \overrightarrow{AC}; b) AB→⋅BC→\overrightarrow{AB} \cdot \overrightarrow{BC}.

Show the solution to example 1

Step 1: Determine the angle between the two vectors AB→\overrightarrow{AB} and AC→\overrightarrow{AC}. These two vectors share the origin AA, and triangle ABCABC is equilateral, so BAC^=60∘\widehat{BAC} = 60^\circ. Thus (AB→,AC→)=60∘\left(\overrightarrow{AB}, \overrightarrow{AC}\right) = 60^\circ.
Step 2: Calculate AB→⋅AC→=∣AB→∣⋅∣AC→∣⋅cos⁡60∘=a⋅a⋅12=a22\overrightarrow{AB} \cdot \overrightarrow{AC} = |\overrightarrow{AB}| \cdot |\overrightarrow{AC}| \cdot \cos 60^\circ = a \cdot a \cdot \frac{1}{2} = \frac{a^2}{2}.
Why: Applying the definition of the dot product correctly, the lengths of both vectors are aa, and the cosine of 60∘60^\circ is 12\frac{1}{2}.
Step 3: Determine the angle between AB→\overrightarrow{AB} and BC→\overrightarrow{BC}. These two vectors do not share an origin. From BB draw BD→=AB→\overrightarrow{BD} = \overrightarrow{AB} (in the same direction as AB→\overrightarrow{AB}). Then (AB→,BC→)=DBC^\left(\overrightarrow{AB}, \overrightarrow{BC}\right) = \widehat{DBC}. Since BDBD is parallel and in the same direction as ABAB, DBC^\widehat{DBC} is supplementary to ABC^=60∘\widehat{ABC} = 60^\circ, so DBC^=120∘\widehat{DBC} = 120^\circ.
Step 4: Calculate AB→⋅BC→=∣AB→∣⋅∣BC→∣⋅cos⁡120∘=a⋅a⋅(−12)=−a22\overrightarrow{AB} \cdot \overrightarrow{BC} = |\overrightarrow{AB}| \cdot |\overrightarrow{BC}| \cdot \cos 120^\circ = a \cdot a \cdot \left(-\frac{1}{2}\right) = -\frac{a^2}{2}.
Result: a) a22\frac{a^2}{2}; b) −a22-\frac{a^2}{2}.

Common mistakesMistake: Finding the angle between two vectors that do not share a starting point by just taking the angle formed by the two line segments. For example, in the equilateral triangle ABCABC, hastily concluding (AB→,BC→)=60∘\left(\overrightarrow{AB}, \overrightarrow{BC}\right) = 60^\circ. The correct way is: bring the two vectors to a common starting point by drawing BD→=AB→\overrightarrow{BD} = \overrightarrow{AB}, then the angle is DBC^=120∘\widehat{DBC} = 120^\circ.

Example 2

Given two vectors a⃗\vec{a}, b⃗\vec{b} satisfying ∣a⃗∣=3|\vec{a}| = 3, ∣b⃗∣=4|\vec{b}| = 4, a⃗⋅b⃗=−6\vec{a} \cdot \vec{b} = -6.
a) Calculate the angle (a⃗,b⃗)\left(\vec{a}, \vec{b}\right).
b) Calculate ∣a⃗+b⃗∣|\vec{a} + \vec{b}|.

Show the solution to example 2

Step 1: Calculate the cosine of the angle: cos⁡(a⃗,b⃗)=a⃗⋅b⃗∣a⃗∣⋅∣b⃗∣=−63⋅4=−12\cos\left(\vec{a}, \vec{b}\right) = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}| \cdot |\vec{b}|} = \frac{-6}{3 \cdot 4} = -\frac{1}{2}.
Step 2: The angle whose cosine is −12-\frac{1}{2} in the range from 0∘0^\circ to 180∘180^\circ is 120∘120^\circ. Thus (a⃗,b⃗)=120∘\left(\vec{a}, \vec{b}\right) = 120^\circ.
Step 3: Calculate ∣a⃗+b⃗∣|\vec{a} + \vec{b}|. Use the identity: ∣a⃗+b⃗∣2=a⃗2+2a⃗⋅b⃗+b⃗2=∣a⃗∣2+2a⃗⋅b⃗+∣b⃗∣2|\vec{a} + \vec{b}|^2 = \vec{a}^2 + 2\vec{a} \cdot \vec{b} + \vec{b}^2 = |\vec{a}|^2 + 2\vec{a} \cdot \vec{b} + |\vec{b}|^2.
Why: You cannot add lengths, you must square the sum first and then take the square root.
Step 4: Substitute the numbers: ∣a⃗+b⃗∣2=9+2⋅(−6)+16=9−12+16=13|\vec{a} + \vec{b}|^2 = 9 + 2 \cdot (-6) + 16 = 9 - 12 + 16 = 13. Hence ∣a⃗+b⃗∣=13|\vec{a} + \vec{b}| = \sqrt{13}.
Result: a) (a⃗,b⃗)=120∘\left(\vec{a}, \vec{b}\right) = 120^\circ; b) ∣a⃗+b⃗∣=13|\vec{a} + \vec{b}| = \sqrt{13}.

Common mistakesMistake: Calculating ∣a⃗+b⃗∣|\vec{a} + \vec{b}| as ∣a⃗∣+∣b⃗∣|\vec{a}| + |\vec{b}|. Correct: you must square the sum and then take the square root, ∣a⃗+b⃗∣2=∣a⃗∣2+2a⃗⋅b⃗+∣b⃗∣2|\vec{a} + \vec{b}|^2 = |\vec{a}|^2 + 2\vec{a} \cdot \vec{b} + |\vec{b}|^2.

Example 3

A person pulls a cart with a force F⃗\vec{F} of magnitude 80 N80\,\mathrm{N}, and the direction of the force makes an angle 30∘30^\circ with the direction of motion. The cart travels a distance 20 m20\,\mathrm{m} in a straight line.
a) Calculate the work of the force F⃗\vec{F}.
b) If the person pulls straight along the direction of motion, how much is the work? Compare.

Show the solution to example 3

Step 1: The work done by the force is A=F⃗⋅MN→=∣F⃗∣⋅∣MN→∣⋅cos⁡(F⃗,MN→)A = \vec{F} \cdot \overrightarrow{MN} = |\vec{F}| \cdot |\overrightarrow{MN}| \cdot \cos\left(\vec{F}, \overrightarrow{MN}\right).
Step 2: Calculate A=80⋅20⋅cos⁡30∘=1600⋅32=8003 J≈1385,6 JA = 80 \cdot 20 \cdot \cos 30^\circ = 1600 \cdot \frac{\sqrt{3}}{2} = 800\sqrt{3}\,\mathrm{J} \approx 1385,6\,\mathrm{J}.
Step 3: If you pull straight along the direction, the angle between the force and the displacement is 0∘0^\circ, cos⁡0∘=1\cos 0^\circ = 1, so A′=80⋅20⋅1=1600 JA' = 80 \cdot 20 \cdot 1 = 1600\,\mathrm{J}.
Why: cos⁡30∘≈0,866<1\cos 30^\circ \approx 0,866 < 1 so pulling at an angle only puts about 86,6%86,6\% of the force into moving the cart, and the rest does no useful work.
Step 4: Compare: 1600>80031600 > 800\sqrt{3}, pulling straight along the direction is better.
Result: a) A=8003 J≈1385,6 JA = 800\sqrt{3}\,\mathrm{J} \approx 1385,6\,\mathrm{J}; b) pulling straight along the direction gives 1600 J1600\,\mathrm{J}, which is more.

Common mistakesMistake: Calculating the work done by the force while ignoring the cosine, taking A=∣F⃗∣⋅∣MN→∣A = |\vec{F}| \cdot |\overrightarrow{MN}|. Correct: you must also multiply by cos⁡(F⃗,MN→)\cos\left(\vec{F}, \overrightarrow{MN}\right), so when pulling at an angle, the work is less than the product of the two magnitudes.

Terms

angle between two vectors
The angle formed by two vectors different from 0⃗\vec{0} when placed at a common starting point has a measure from 0∘0^\circ to 180∘180^\circ.Example: (AB→,AC→)=60∘\left(\overrightarrow{AB}, \overrightarrow{AC}\right) = 60^\circ in the equilateral triangle ABCABC.
dot product
The number calculated as the product of the lengths of two vectors multiplied by the cosine of the angle between them.Example: u⃗⋅v⃗=∣u⃗∣∣v⃗∣cos⁡(u⃗,v⃗)\vec{u} \cdot \vec{v} = |\vec{u}| |\vec{v}| \cos\left(\vec{u}, \vec{v}\right).
scalar square
The dot product of a vector with itself, equal to the square of the length of that vector.Example: u⃗2=∣u⃗∣2\vec{u}^2 = |\vec{u}|^2.
two perpendicular vectors
Two vectors whose angle between them equals 90∘90^\circ, written u⃗⊥v⃗\vec{u} \perp \vec{v}.Example: u⃗⊥v⃗⇔u⃗⋅v⃗=0\vec{u} \perp \vec{v} \Leftrightarrow \vec{u} \cdot \vec{v} = 0.
work of a force
The dot product of the force vector and the displacement vector, measured in joules.Example: A=F⃗⋅MN→A = \vec{F} \cdot \overrightarrow{MN}.
the cosine of the angle between two vectors
The ratio between the dot product and the product of the lengths of two vectors.Example: cos⁡(u⃗,v⃗)=u⃗⋅v⃗∣u⃗∣∣v⃗∣\cos\left(\vec{u}, \vec{v}\right) = \frac{\vec{u} \cdot \vec{v}}{|\vec{u}| |\vec{v}|}.