4.5.1 · D3Linear Algebra (Full)

Worked examples — Vectors in ℝⁿ — operations, geometric interpretation

3,217 words15 min readBack to topic

Two pieces of notation we'll lean on constantly

Two symbols appear in almost every example, so let's pin them down here in plain words before we use them.


The scenario matrix

Before working anything, let's list every case class these three operations can produce. Each row is a "cell" — a distinct situation with its own behaviour. The examples below are each tagged with the cell(s) they cover.

Cell Operation Scenario What's special / the trap
A add / scale all-positive components the "friendly" baseline
B add / scale mixed signs, negative scalar flipping direction, sign bookkeeping
C1 scale scalar degenerate: , direction vanishes
C2 add adding the zero vector identity: , nothing changes
D norm normalise a vector; length of dividing by length; can't normalise
E dot acute angle () dot product positive
F dot right angle () dot product exactly zero
G dot obtuse / opposite (, or ) dot product negative
H dot in (no picture possible) formula still works with no geometry to lean on
I word problem real displacement / force tracking units, choosing the right operation
J exam twist find unknown component making solve an equation from

Note that C1 (scaling by zero) and C2 (adding the zero vector) are different edge cases: C1 destroys an arrow, C2 leaves one untouched. Example 3 handles both, clearly separated. Ten examples follow; each header says which cell it hits.


Example 1 — Cell A (all-positive add & scale)

Figure — Vectors in ℝⁿ — operations, geometric interpretation

Example 2 — Cell B (mixed signs, negative scalar)

Figure — Vectors in ℝⁿ — operations, geometric interpretation

Example 3 — Cells C1 & C2 (the two distinct degenerate cases)


Example 4 — Cell D (normalising, and why it can't fail here)


Example 5 — Cell E (acute angle → positive dot)

Figure — Vectors in ℝⁿ — operations, geometric interpretation

Example 6 — Cell F (right angle → zero dot)

Figure — Vectors in ℝⁿ — operations, geometric interpretation

Example 7 — Cell G (obtuse and fully opposite → negative dot)

Figure — Vectors in ℝⁿ — operations, geometric interpretation

Example 8 — Cell H (dimension 4, no picture)


Example 9 — Cell I (real-world word problem, with units)

Figure — Vectors in ℝⁿ — operations, geometric interpretation

Example 10 — Cell J (exam twist: solve for a missing component)


Recall Which sign of the dot product means what?

Positive dot ::: acute angle () — arrows mostly agree. Zero dot ::: right angle () — perpendicular. Negative dot ::: obtuse angle (); and (dot at its most negative) means exactly opposite (). Can you normalise the zero vector? ::: No — its length is and dividing by is undefined; it has no direction. What does scaling by a negative do? ::: Stretches length by and flips the arrow to the opposite direction. What does the norm symbol mean? ::: The length of the arrow, .


Connections

  • Dot Product and Orthogonality — the perpendicular tests (Cells F, J) generalise here.
  • Norms and Distance in Rn — normalising (Cell D) and the hike distance (Cell I).
  • Linear Combinations and Span — the add-and-scale examples (Cells A, B) are the building blocks.
  • Projections and Orthogonal Decomposition — uses the acute/obtuse sign logic of Cells E–G.