Multivariable Calculus — Vectors & Gradients
Vectors in space
ELI5: a vector is an arrow — it has a direction and a length. Add two by laying them tip-to-tail; scale one by stretching it. Two products matter:
- the dot product measures how much two arrows point the same way (0 = perpendicular)
- the cross product returns an arrow perpendicular to both.
= a 3-D vector
= its length √(1+4+4) = 3
= dot of perpendicular arrows: 0
= x̂ × ŷ = ẑ, straight up
✓ pass length and perpendicularity, both confirmed
Real-world hook: vectors are forces and velocities in physics, positions in 3-D graphics, and feature lists in machine learning; the dot product is how a neural network and a search engine both measure "similarity."
Try it yourself: how long is the vector [6, 8]? (Its length is √(6² + 8²).)
✏️ Your turn: find the length of [6, 8]. The check confirms length² = 6² + 8² — so it never states the answer.
✓ pass green when length² = 6² + 8²