The interactive film is in the book's Companion

Play it, pause it, turn it and drag it with Mathematics for AI and Machine Learning.

Get the book

The Outer Product: All of Space onto One Line

Chapter 1 · Mathematics for AI and Machine Learning · Beginner · 1:31

An interactive live film: u vᵀ takes the shadow of x on v and stretches u by it, so every output lands on the line of u, and the plane at right angles to v is sent to zero.

Narration

Two arrows: the blue u and the green v. Their outer product, u times v transpose, is a three by three matrix, and every column of it is a multiple of u.

Let it act on the black arrow x. First, x casts a shadow on the line of v, and that shadow gives the number v transpose x. Then this number stretches u, and out comes the orange arrow.

The rest of the narration is in the book's Companion.

More from Chapter 1

Interactive1:30Span and Independence: When the Dimension JumpsChapter 1Preview1:31Gram–Schmidt, One Vector at a TimeChapter 1Preview1:42Projection onto a Line: the Closest PointChapter 1Preview1:42Norms as Cones: the Unit Ball Is a SliceChapter 1Preview1:36The Parallelogram Law: Which Norms Come from an Inner ProductChapter 1Preview1:29Cauchy-Schwarz: a Shadow Is Never Longer than the StickChapter 1Preview1:43Layer Normalization: Project, Then RescaleChapter 1