techtree / Linear algebra / ← prev 3 of 26 next →

Dot product

Multiply matching entries and add them up; one number that measures agreement.

40 seconds

Transcript

Here are two vectors. Three, one. And two, four.

The dot product multiplies matching entries. Three times two is six. One times four is four.

Then it adds them up. Six plus four is ten.

Two vectors go in. One number comes out.

Draw them as arrows, and that number says how much they agree.

Pointing the same way, it is big and positive.

Turn one away, and it shrinks. At a right angle, it is zero.

Pointing in opposite directions, it goes negative.

Multiply, add, and out comes one number: how much two vectors agree.