Curriculum
Login

Curriculum

Mathematics

Text lesson

The Scalar (Dot) Product of Two Vectors

Mathematics

The Scalar (Dot) Product of Two Vectors

Overview

Overview

  • This lesson covers the first part of lesson 3-3, "Vector multiplication". After it you should be able to:
  • define and calculate the scalar product geometrically and in components;
  • use it to test perpendicularity and find the angle between two vectors;
  • find the component and projection of one vector along another, and the work done by a force.

🌳 Concept tree

The Scalar (Dot) Product of Two Vectors

├── 3-3 (a) Meaning of the scalar product

│ ├── Motivation

│ ├── Definition

│ └── Notes on the angle

├── 3-3 (b) Properties of the scalar product

│ ├── List

│ └── Useful identities

├── 3-3 (c) The scalar product in components

│ └── Rule

├── 3-3 (d) The angle between two vectors

│ └── Rule

  • ├── 3-3 (e) Component and projection of a vector in the direction of another

│ └── Rule

└── 3-3 (f) Applications→work and perpendicular decomposition

├── Work done by a constant force

├── Splitting a vector

└── Summary

The Scalar (Dot) Product of Two Vectors · 1 / 7
3-3 (a) Meaning of the scalar product

3-3 (a) Meaning of the scalar product

Motivation

  • Vectors can be multiplied in two ways. The first gives a number (a scalar), the second gives a vector.
  • Let θ be the angle between A⃗ and B⃗. The component of A⃗ along B⃗ is ∥A⃗∥cos⁡θ.
  • Multiplying that component by ∥B⃗∥ gives the quantity used to define the scalar product.

Definition

  • A⃗⋅B⃗=∥A⃗∥ ∥B⃗∥cos⁡θ,0∘≤θ≤180∘
  • The result is a real number, read "A dot B".
  • Its absolute value equals the area of the rectangle whose sides are ∥B⃗∥ and the component of A⃗ along B⃗.
  • To find θ, both vectors must start from (or both end at) the same point. If they do not, translate one of them.
  • If θ is acute the product is positive; if θ is obtuse it is negative; if θ=90∘ it is zero.

✍️ Worked examples

  • Example 1 The angle between A⃗ and B⃗ is 60∘, and ∥A⃗∥=2∥B⃗∥=8. Find A⃗⋅B⃗.
  • Solution:
  • ∥A⃗∥=8 and ∥B⃗∥=4.
  • A⃗⋅B⃗=8×4×cos⁡60∘=16.
  • Example 2 If ∥A⃗∥=6, ∥B⃗∥=10 and θ=135∘, find A⃗⋅B⃗.
  • Solution:
  • A⃗⋅B⃗=6×10×cos⁡135∘=60(−22)=−302≈−42.4.
The Scalar (Dot) Product of Two Vectors · 2 / 7
3-3 (b) Properties of the scalar product

3-3 (b) Properties of the scalar product

List

Comparison aspectMain ideaKeywords
CommutativeA⃗⋅B⃗=B⃗⋅A⃗.
Square of a vectorA⃗⋅A⃗=∥A⃗∥2, since the angle is 0∘.sinceangle
Perpendicularityfor non-zero vectors, A⃗⋅B⃗=0 if and only if A⃗⊥B⃗.zerovectors
DistributiveA⃗⋅(B⃗+C⃗)=A⃗⋅B⃗+A⃗⋅C⃗.
Scalars(kA⃗)⋅B⃗=A⃗⋅(kB⃗)=k(A⃗⋅B⃗).
Bound∣A⃗⋅B⃗∣≤∥A⃗∥ ∥B⃗∥, because ∣cos⁡θ∣≤1.because
Parallel vectorsA⃗⋅B⃗=±∥A⃗∥∥B⃗∥, with + if they point the same way and − if opposite.pointsameopposite
The scalar product of unit vectorsi^⋅i^=j^⋅j^=k^⋅k^=1 and i^⋅j^=j^⋅k^=k^⋅i^=0
  1. ∥A⃗+B⃗∥2=∥A⃗∥2+2A⃗⋅B⃗+∥B⃗∥2.
  2. (A⃗+B⃗)⋅(A⃗−B⃗)=∥A⃗∥2−∥B⃗∥2.
  3. A⃗⋅B⃗=0 also holds if one of the vectors is the zero vector.

✍️ Worked examples

  • Example 3 ABCD is a square of side 10 cm. Find (a) AB→⋅DC→, (b) AB→⋅BC→, (c) AB→⋅CA→.
  • Solution:
  • (a) AB→ and DC→ are parallel and in the same direction (θ=0∘): 10×10×1=100.
  • (b) AB→⊥BC→, so the product is 0.
  • (c) CA→=−AC→ and the angle between AB→ and AC→ is 45∘, with AC=102.
  • AB→⋅CA→=−(10×102×cos⁡45∘)=−100.
  • Example 4 ABC is equilateral of side 8 cm. Find AB→⋅AC→ and AB→⋅BC→.
  • Solution:
  • Both vectors in AB→⋅AC→ start at A with angle 60∘ 8×8×12=32.
  • For AB→⋅BC→ the vectors are head-to-tail, so the angle between them (tails together) is 120∘: 64×(−12)=−32.
  • Example 5 If A⃗ and B⃗ are perpendicular unit vectors, find (2A⃗−B⃗)⋅(A⃗+3B⃗).
  • Solution:
  • Expand 2A⃗⋅A⃗+6A⃗⋅B⃗−B⃗⋅A⃗−3B⃗⋅B⃗.
  • With A⃗⋅A⃗=B⃗⋅B⃗=1 and A⃗⋅B⃗=0 2+0−0−3=−1.
  • Example 6 If ∥A⃗∥=3, ∥B⃗∥=5 and A⃗⋅B⃗=−6, find ∥A⃗+B⃗∥.
  • Solution:
  • ∥A⃗+B⃗∥2=9+2(−6)+25=22.
  • ∥A⃗+B⃗∥=22.
The Scalar (Dot) Product of Two Vectors · 3 / 7
3-3 (c) The scalar product in components

3-3 (c) The scalar product in components

Rule

Comparison aspectMain ideaKeywords
•If A⃗=(Ax,Ay,Az) and B⃗=(Bx,By,Bz), then
A⃗⋅B⃗=AxBx+AyBy+AzBz
thenAxBxAyByAzBz
Proof idea
  • expand (Axi+Ayj+Azk^)⋅(Bxi+Byj+Bzk^) by the distributive law
  • the mixed terms vanish and the squares give 1
expanddistributivemixedterms
In the plane the same rule holds with two termsAxBx+AyByAxBxAyBy

✍️ Worked examples

  • Example 7 Find A⃗⋅B⃗ for A⃗=2i^+3j^+4k^ and B⃗=−i^−2j^+k^.
  • Solution:
  • A⃗⋅B⃗=2(−1)+3(−2)+4(1)=−2−6+4=−4.
  • Example 8 Show that A⃗=(2,−1,3) and B⃗=(1,5,1) are perpendicular, and find k so that (k,2,−1)⊥(3,−1,4).
  • Solution:
  • A⃗⋅B⃗=2−5+3=0, so they are perpendicular.
  • 3k−2−4=0 gives k=2.
  • Example 9 For A⃗=(2,−1) and B⃗=(1,2) compare the results in the plane.
  • Solution:
  • A⃗⋅B⃗=2−2=0, so the two vectors are perpendicular.
The Scalar (Dot) Product of Two Vectors · 4 / 7
3-3 (d) The angle between two vectors

3-3 (d) The angle between two vectors

Rule

  • cos⁡θ=A⃗⋅B⃗∥A⃗∥ ∥B⃗∥
The Scalar (Dot) Product: a lamp casting the shadow of one rod onto another shows the scalar product of two vectors: a . b = 18 and the angle is 53.1 degrees.
The Scalar (Dot) Product: a lamp casting the shadow of one rod onto another shows the scalar product of two vectors: a . b = 18 and the angle is 53.1 degrees.
  • If cos⁡θ=1 the vectors are parallel and in the same direction; if cos⁡θ=−1 they are parallel and opposite; if cos⁡θ=0 they are perpendicular.
  • Since θ∈[0∘,180∘], take the inverse cosine directly.

✍️ Worked examples

  • Example 10 Find the angle between A⃗=(4,3,7) and B⃗=(2,5,4).
  • Solution:
  • A⃗⋅B⃗=8+15+28=51.
  • ∥A⃗∥=16+9+49=74 and ∥B⃗∥=4+25+16=45.
  • cos⁡θ=517445=5157.71≈0.8838.
  • θ=cos⁡−1(0.8838)≈27.9∘.
  • Example 11 Find the angle between (2,−2,2) and (1,1,4).
  • Solution:
  • Dot product 2−2+8=8.
  • Norms 12 and 18, product 216≈14.70.
  • cos⁡θ=814.70≈0.5443, so θ≈57.0∘.
  • Example 12 Find the angles of the triangle with vertices A(1,0,0), B(0,1,0), C(0,0,1).
  • Solution:
  • At B BA→=(1,−1,0) and BC→=(0,−1,1).
  • Dot =0+1+0=1; norms 2 each, product 2.
  • cos⁡B=12, so B=60∘. By symmetry all three angles are 60∘: the triangle is equilateral.
  • Example 13 Find the value of m for which A⃗=(m,2,1) and B⃗=(1,m,−3) are perpendicular.
  • Solution:
  • A⃗⋅B⃗=m+2m−3=3m−3=0, so m=1.
The Scalar (Dot) Product of Two Vectors · 5 / 7
3-3 (e) Component and projection of a vector in the direction of another

3-3 (e) Component and projection of a vector in the direction of another

Rule

  • The component (scalar projection) of A⃗ in the direction of B⃗ is
    AB=A⃗⋅B⃗∥B⃗∥=∥A⃗∥cos⁡θ
  • It is positive if θ is acute, negative if obtuse, and zero when the vectors are perpendicular.
  • The projection vector of A⃗ on B⃗ is
    projB⃗A⃗=A⃗⋅B⃗∥B⃗∥2 B⃗=AB u^B
  • Remember the component of A⃗ along B⃗ is not the same as the component of B⃗ along A⃗ unless ∥A⃗∥=∥B⃗∥.

✍️ Worked examples

  • Example 14 Find the component of the force F⃗=2i^−3j^+5k^ in the direction of AB→, where A(1,4,0) and B(−1,2,3).
  • Solution:
  • AB→=(−2,−2,3) and ∥AB→∥=17.
  • F⃗⋅AB→=−4+6+15=17.
  • Component =1717=17≈4.12 force units.
  • Example 15 Find the projection vector of A⃗=(3,4,0) on B⃗=(1,1,1).
  • Solution:
  • A⃗⋅B⃗=7 and ∥B⃗∥2=3.
  • Projection vector =73(1,1,1)=(73,73,73).
  • Example 16:
  • A cube of side 2 has one vertex at O with edges along the axes.
  • Find the component of the diagonal OG→ on the edge vector e⃗=(2,0,0), where G=(2,2,2).
  • Solution:
  • OG→⋅e⃗=4 and ∥e⃗∥=2, so the component is 2.
  • It equals the x-component of the diagonal, as expected for projection on an axis.
The Scalar (Dot) Product of Two Vectors · 6 / 7
3-3 (f) Applications: work and perpendicular decomposition

3-3 (f) Applications: work and perpendicular decomposition

Work done by a constant force

  • If a constant force F⃗ moves its point of application through the displacement d⃗, the work done is
    W=F⃗⋅d⃗=∥F⃗∥ ∥d⃗∥cos⁡θ
  • Only the component of the force along the displacement does work; a force perpendicular to the motion does none.

✍️ Worked examples

  • Example 17 A force F⃗=(4,−2,5) N moves a body from A(1,1,1) to B(4,3,3) (distances in metres). Find the work.
  • Solution:
  • d⃗=AB→=(3,2,2).
  • W=12−4+10=18 J.

Splitting a vector

  • Any vector A⃗ can be split relative to B⃗ into a part parallel to B⃗ (the projection) and a part perpendicular to B⃗:
    A⃗=projB⃗A⃗+(A⃗−projB⃗A⃗)
  • The second part is perpendicular to B⃗ because its dot product with B⃗ is zero.

✍️ Worked examples

Comparison aspectMain ideaKeywords
Example 18Split A⃗=(3,4,0) into parts parallel and perpendicular to B⃗=(1,1,1).Splitpartsparallelperpendicular
•SolutionSolution
Parallel part
  • (73
  • 73) (Example 15)
Example
Perpendicular part
  • A⃗−proj=(23
  • −73)
proj
Check
  • 23+53−73=0
  • so it is perpendicular to B⃗
perpendicular
Point of comparison Result of A⃗⋅B⃗ Meaning
θ acute positive vectors point broadly the same way
θ=90∘ zero vectors are perpendicular
θ obtuse negative vectors point broadly opposite ways
θ=0∘ or 180∘ ±∥A⃗∥∥B⃗∥ vectors are parallel
The Scalar (Dot) Product of Two Vectors · 7 / 7