# Cross products in the light of linear transformations | Chapter 11, Essence of linear algebra

## Метаданные

- **Канал:** 3Blue1Brown
- **YouTube:** https://www.youtube.com/watch?v=BaM7OCEm3G0
- **Дата:** 01.09.2016
- **Длительность:** 13:10
- **Просмотры:** 1,520,758

## Описание

Why the formula for cross products matches the geometric intuition.
Help fund future projects: https://www.patreon.com/3blue1brown
An equally valuable form of support is to simply share some of the videos.
Home page: https://www.3blue1brown.com/

For anyone who wants to understand the cross-product more deeply, this video shows how it relates to a certain linear transformation via duality.  This perspective gives a very elegant explanation of why the traditional computation of a dot product corresponds to its geometric interpretation.

Minor error at 1:44, the third line of the matrix should read "v1 * w2 - w1 * v2"

*Note, in all the computations here, I list the coordinates of the vectors as columns of a matrix, but many textbooks put them in the rows of a matrix instead.  It makes no difference for the result since the determinant is unchanged after a transpose, but given how I've framed most of this series I think it is more intuitive to go with a column-centric approach.

Full series: http://3b1b.co/eola

Future series like this are funded by the community, through Patreon, where supporters get early access as the series is being produced.
http://3b1b.co/support

Thanks to these viewers for their contributions to translations
Hebrew: Omer Tuchfeld
Vietnamese: @ngvutuan2811

------------------

3blue1brown is a channel about animating math, in all senses of the word animate.  And you know the drill with YouTube, if you want to stay posted about new videos, subscribe, and click the bell to receive notifications (if you're into that).

If you are new to this channel and want to see more, a good place to start is this playlist: https://goo.gl/WmnCQZ

Various social media stuffs:
Website: https://www.3blue1brown.com
Twitter: https://twitter.com/3Blue1Brown
Patreon: https://patreon.com/3blue1brown
Facebook: https://www.facebook.com/3blue1brown
Reddit: https://www.reddit.com/r/3Blue1Brown

## Содержание

### [0:00](https://www.youtube.com/watch?v=BaM7OCEm3G0) Introduction

Hey folks, where we left off I was talking about how to compute a three-dimensional cross product between two vectors, v cross w. It's this funny thing where you write a matrix whose second column has the coordinates of v, whose third w, but the entries of that first column, weirdly, are the symbols i-hat, j-hat, and k-hat, where you just pretend like those guys are numbers for the sake of computations. Then with that funky matrix in hand, you compute its determinant. If you just chug along with those computations, ignoring the weirdness, you get some constant times i-hat, plus some constant times j-hat, k-hat. How specifically you think about computing that determinant is kind of beside the point. All that really matters here is that you'll end up with three different numbers that are interpreted as the coordinates of some resulting vector.

### [1:13](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=73s) Geometric properties

From here, students are typically told to just believe that the resulting vector has the following geometric properties. Its length equals the area of the parallelogram defined by v and w. It points in a direction perpendicular to both v and w, and this direction obeys the right-hand rule, in the sense that if you point your forefinger along v and your middle finger along w, then when you stick up your thumb, it'll point in the direction of the new vector. There are some brute force computations that you could do to confirm these facts, but I want to share with you a really elegant line of reasoning. It leverages a bit of background, though, so for this video I'm assuming that everybody has watched chapter 5 on the determinant and chapter 7, where I introduced the idea of duality.

### [2:04](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=124s) Duality

As a quick reminder, the idea of duality is that any time you have a linear transformation from some space to the number line, it's associated with a unique vector in that space, in the sense that performing the linear transformation is the same as taking a dot product with that vector. Numerically, this is because one of those transformations is described by a matrix with just one row, where each column tells you the number that each basis vector lands on. And multiplying this matrix by some vector v is computationally identical to taking the dot product between v and the vector you get by turning that matrix on its side. The takeaway is that whenever you're out in the mathematical wild and you find a linear transformation to the number line, you will be able to match it to some vector, which is called the dual vector of that transformation, so that performing the linear transformation is the same as taking a dot product with that vector.

### [3:06](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=186s) Crossproduct

The cross product gives us a really slick example of this process in action. It takes some effort, but it's definitely worth it. What I'm going to do is define a certain linear transformation from three dimensions to the number line, and it'll be defined in terms of the two vectors v and w. Then when we associate that transformation with its dual vector in 3D space, that dual vector is going to be the cross product of v and w. The reason for doing this will be that understanding that transformation is going to make clear the connection between the computation and the geometry of the cross product. So to back up a bit, remember in two dimensions what

### [3:45](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=225s) Crossproduct 2D

it meant to compute the 2D version of the cross product? When you have two vectors v and w, you put the coordinates of v as the first column of a matrix and the coordinates of w as the second column of a matrix. Then you just compute the determinant. There's no nonsense with basis vectors stuck in a matrix or anything like that, just an ordinary determinant returning a number. Geometrically, this gives us the area of a parallelogram spanned out by those two vectors, with the possibility of being negative depending on the orientation of the vectors. Now, if you didn't already know the 3D cross product and you're trying to extrapolate, you might imagine that it involves taking three separate 3D vectors, u, v, and w, and making their coordinates the columns of a 3x3 matrix, then computing the determinant of that matrix. And as you know from chapter 5, geometrically this would give you the volume of a parallelepiped spanned out by those three vectors, with a plus or minus sign depending on the right hand rule orientation of those three vectors. Of course, you all know that this is not the 3D cross product. The actual 3D cross product takes in two vectors and spits out a vector.

### [4:57](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=297s) Crossproduct 3D

It doesn't take in three vectors and spit out a number. But this idea actually gets us really close to what the real cross product is. Consider that first vector u to be a variable, say with variable entries x, y, and z, while v and w remain fixed. What we have then is a function from three dimensions to the number line. You input some vector x, y, z and you get out a number by taking the determinant of a matrix whose first column is x, y, z and whose other two columns are the coordinates of the constant vectors v and w. Geometrically, the meaning of this function is that for any input vector x, y, z, you consider the parallelepiped defined by this vector v and w. Then you return its volume with a plus or minus sign depending on orientation. Now, this might feel like kind of a random thing to do. I mean, where does this function come from? Why are we defining it this way? And I'll admit, at this stage it might kind of feel like it's coming out of the blue. But if you're willing to go along with it and play around with the properties that this guy has, it's the key to understanding the cross product. One really important fact about this function is that it's linear. I'll actually leave it to you to work through the details of why this is true based on properties of the determinant. But once you know that it's linear, we can start bringing in the idea of duality.

### [6:35](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=395s) Matrix multiplication

Once you know that it's linear, you know that there's some way to describe this function as matrix multiplication. Specifically, since it's a function that goes from three dimensions to one dimension, there will be a one by three matrix that encodes this transformation. And the whole idea of duality is that the special thing about transformations from several dimensions to one dimension is that you can turn that matrix on its side and instead interpret the entire transformation as the dot product with a certain vector. What we're looking for is the special 3D vector that I'll call p such that taking

### [7:08](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=428s) Computing the determinant

the dot product between p and any other vector x, y, z gives the same result as plugging in x, y, z as the first column of a three by three matrix whose other two columns have the coordinates of v and w, then computing the determinant. I'll get to the geometry of this in just a moment, but right now let's dig in and think about what this means computationally. Taking the dot product between p and x, y, z will give us something times x plus something times y plus something times z, where those somethings are the coordinates of p. But on the right side here, when you compute the determinant, you can organize it to look like some constant times x plus some constant times y z, where those constants involve certain combinations of the components of v and w. So those constants, those particular combinations of the coordinates of v and w are going to be the coordinates of the vector p that we're looking for. But what's going on the right here should feel very familiar to anyone who's actually worked through a cross product computation. Collecting the constant terms that are multiplied by x, y, and by z like this is no different from plugging in the symbols i-hat, j-hat, and k-hat to that first column, and seeing which coefficients aggregate on each one of those terms. It's just that plugging in i-hat, j-hat, and k-hat is a way of signaling that we should interpret those coefficients as the coordinates of a vector. So what all of this is saying is that this funky computation can be thought of as a way to answer the following question. What vector p has the special property that when you take a dot

### [8:58](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=538s) Geometric interpretation

product between p and some vector x, y, z, it gives the same result as plugging in x, y, z to the first column of a matrix whose other two columns have the coordinates of v and w, then computing the determinant. That's a bit of a mouthful, but it's an important question to digest for this video. Now for the cool part, which ties all this together with the geometric understanding of the cross product that I introduced last video. I'm going to ask the same question again, but this time we're going to try to answer it geometrically instead of computationally. What 3D vector p has the special property that when you take a dot product between p and some other vector x, y, z, it gives the same result as if you took the signed volume of a parallelepiped defined by this vector x, y, z along with v and w. Remember, the geometric interpretation of a dot product between a vector p and some other vector is to project that other vector onto p, then to multiply the length of that projection by the length of p. With that in mind, let me show a certain way to think about the volume of the parallelepiped that we care about. Start by taking the area of the parallelogram defined by v and w, then multiply it not by the length of x, y, z, but by the component of x, y, z that's perpendicular to that parallelogram. In other words, the way our linear function works on a given vector is to project that vector onto a line that's perpendicular to both v and w, then to multiply the length of that projection by the area of the parallelogram spanned by v and w. But this is the same thing as taking a dot product between x, y, z and a vector that's perpendicular to v and w with a length equal to the area of that parallelogram. What's more, if you choose the appropriate direction for that vector, the cases where the dot product is negative will line up with the cases where the right hand rule for the orientation of x, y, z, v and w is negative.

### [11:19](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=679s) Summary

This means that we just found a vector p so that taking a dot product between p and some vector x, y, z is the same thing as computing that determinant of a 3x3 matrix whose columns are x, y, z, the coordinates of v and w. So the answer that we found earlier computationally using that special notational trick must correspond geometrically to this vector. This is the fundamental reason why the computation and the geometric interpretation of the cross product are related.

### [11:52](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=712s) Dual vectors

Just to sum up what happened here, I started by defining a linear transformation from 3D space to the number line, and it was defined in terms of the vectors v and w. Then I went through two separate ways to think about the dual vector of this transformation, the vector such that applying the transformation is the same thing as taking a dot product with that vector. On the one hand, a computational approach will lead you to the trick of plugging in the symbols i-hat, j-hat, and k-hat to the first column of a matrix and computing the determinant. But thinking geometrically, we can deduce that this dual vector must be perpendicular to v and w with a length equal to the area of the parallelogram spanned out by those two vectors. Since both of these approaches give us a dual vector to the same transformation, they must be the same vector.

### [12:47](https://www.youtube.com/watch?v=BaM7OCEm3G0&t=767s) Outro

So that wraps up dot products and cross products, and the next video will be a really important concept for linear algebra, change of basis.

---
*Источник: https://ekstraktznaniy.ru/video/16327*