Chapter 4 — Vectors in ℝⁿ
Forces, velocities, GPS positions and rows of data are all vectors. Add them, scale them, measure their lengths and angles, and use them to describe lines and planes in space.
A delivery drone leaves a warehouse in Dubai. Its motors push it through the air at $100$ km/h, but the air itself is moving — a $30$ km/h wind blowing in from the Gulf. Where does the drone actually go, how fast, and which way should it point so that it arrives where it should? The answer is a sum of two arrows. The same arithmetic tells an engineer whether three cables holding a bridge deck are in balance, tells your phone's GPS how far you are from the next turn, and tells a hospital's software which past patient's record is most like today's. Forces, velocities, positions and data records all have several numbers that belong together: they are vectors.
In Chapters 1–3 vectors appeared quietly as the columns of matrices. This chapter puts them in the spotlight. We start with arrows in the plane and in space, translate them into lists of numbers that work in any number of dimensions, and then learn two products. The dot product turns geometry into arithmetic — length, distance, angle and perpendicularity all come from one formula — and it powers applications from the work done by a force to the cosine similarity used by search engines. The cross product, special to three dimensions, builds a vector perpendicular to two others, which is exactly what we need to describe planes, areas and volumes. Everything here is preparation for Chapter 5, where the idea of "things you can add and scale" becomes the abstract notion of a vector space.
- move between arrows and components, compute $\mathbf{u}+\mathbf{v}$, $c\mathbf{v}$ and $\mathbf{u}-\mathbf{v}$ in $\mathbb{R}^n$, and explain them with the triangle and parallelogram laws;
- decide whether a vector is a linear combination of given vectors, and read a linear system as a vector equation;
- compute dot products, norms, unit vectors, distances and angles, and test vectors for orthogonality;
- use the Cauchy–Schwarz and triangle inequalities, split a vector into projection plus orthogonal part, and apply the dot product to work and cosine similarity;
- compute cross products and use them for normals, areas of parallelograms and triangles, and (with the triple product) volumes;
- write equations of lines and planes, find their intersections, and compute distances from a point to a line or a plane.
Sections in this chapter
Vectors in ℝ², ℝ³ and ℝⁿ
Arrows and components, addition and scalar multiples, linear combinations, standard unit vectors, and a linear system as one vector equation.
Dot Product, Length and Angle
Norms, unit vectors, distance, angles, orthogonality, Cauchy–Schwarz, projections, work and cosine similarity.
Cross Product, Lines and Planes
A vector perpendicular to two others; areas, volumes, lines and planes in space, intersections and distances.