4.5.2 · D3Linear Algebra (Full)

Worked examples — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof

2,056 words9 min readBack to topic

The scenario matrix

Every worked example below is tagged with the cell it fills. The goal: cover the whole table.

Cell Case class Sign of Angle Example
C1 Acute — arrows lean the same way positive Ex 1
C2 Right angle — perpendicular zero Ex 2
C3 Obtuse — arrows lean apart negative Ex 3
C4 Parallel same-way (equality in C–S) Ex 4
C5 Anti-parallel (equality, other sign) Ex 4
C6 Degenerate — one vector is but not perpendicular undefined Ex 5
C7 Higher dimension () any any Ex 6
C8 Real-world word problem (work / teamwork) any any Ex 7
C9 Exam twist — solve for an unknown forced to a value forced Ex 8
C10 Cauchy–Schwarz sanity, strict vs equality Ex 9

Example 1 — Acute angle (Cell C1)

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof

Example 2 — Right angle (Cell C2)

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof

Example 3 — Obtuse angle (Cell C3)

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof

Example 4 — Parallel & anti-parallel (Cells C4, C5)

Figure — Dot product — formula, cosine formula, Cauchy-Schwarz inequality proof

Example 5 — Degenerate: the zero vector (Cell C6)


Example 6 — Higher dimensions (Cell C7)


Example 7 — Real-world word problem (Cell C8)


Example 8 — Exam twist: solve for an unknown (Cell C9)


Example 9 — Cauchy–Schwarz: strict vs equality (Cell C10)


Recap

Recall Which cell is which sign?

Positive dot product means angle is... ::: acute () Zero dot product with both vectors nonzero means... ::: perpendicular () Negative dot product means angle is... ::: obtuse () tells us the angle is... ::: undefined (no direction for ), NOT perpendicular Cauchy–Schwarz is an equality exactly when... ::: the vectors are parallel

Related: Vector projection, Triangle inequality, Law of cosines, Cross product (the vector-valued cousin).