Lesson 4: Dot Product & Projections

1. Dot Product – Deeper Look

The dot product of two vectors is a single number (scalar) that measures how much they point in the same direction.

Algebraic formula (2D): \(\vec{a} \cdot \vec{b} = a_x b_x + a_y b_y\)

Geometric formula: \(\vec{a} \cdot \vec{b} = \|\vec{a}\| \|\vec{b}\| \cos \theta\)

Key facts:

Exercise 1

Compute the dot product:
\[ \begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} 4 \\ 0 \\ -2 \end{pmatrix} = x \] x =

2. Geometric Meaning & Angle

From the geometric formula, we can find the angle between two vectors:

\[ \cos \theta = \frac{\vec{a} \cdot \vec{b}}{\|\vec{a}\| \|\vec{b}\|} \]

Example: If dot product = 0, cos θ = 0 → θ = 90° (perpendicular).

Exercise 2

Which pairs of vectors are perpendicular? (Select all that apply)

3. Projection of One Vector onto Another

The scalar projection of \(\vec{a}\) onto \(\vec{b}\) is:

\[ \text{proj}_{\vec{b}} \vec{a} = \frac{\vec{a} \cdot \vec{b}}{\|\vec{b}\|^2} \vec{b} \]

It tells how much of \(\vec{a}\) lies in the direction of \(\vec{b}\).

Exercise 3

What is the scalar projection of \(\vec{a} = \begin{pmatrix} 6 \\ 8 \end{pmatrix}\) onto \(\vec{b} = \begin{pmatrix} 3 \\ 0 \end{pmatrix}\)?
← Previous Lesson (3) Next Lesson (5) →