Compute a dot product
Multiply matching entries of two vectors and add the products. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
Multiply matching entries, then add. That is the dot product.
The result is one number. Not a vector, not a matrix — a single scalar.
Every geometric idea in this course — length, angle, perpendicularity, projection, least squares — is computed from this one number. It is worth being able to do it without thinking.
Nothing about the definition is arbitrary. The pairing matches entry with entry because both vectors are written in the same coordinate system: entry is the component along the first axis in each vector, so multiplying them multiplies the two "amounts along the same axis".
That is also why the two vectors must have the same number of entries. A component along a third axis has nothing to pair with in a 2-vector, so "the dot product of a 2-vector and a 3-vector" is not defined — and padding one with a zero does not rescue it, because the padded vector is a different vector from the one asked about.
The addition at the end is what turns a list of products into a single number. That is the step people skip when they are moving fast, and it is the whole point of the operation.
Three dimensions.,:
A zero total. In the next lesson that will mean these two vectors meet at a right angle; for now the point is only the arithmetic, including the.
Five dimensions.,:
Five products, one sum, one number. The dimension changes how many terms there are; it never changes the shape of the answer.
- Multiply matching entries of two vectors and add the products
- Keep every product's own sign; only the addition is unsigned
- Recognise that the result is a single number, not a vector or a matrix
- Apply the same definition in any dimension, from 2 upward
(a),. Compute.
(b) Why is undefined for and?
(c) for some vector. What must be?
Answers
(a).
(b) There is no third pair to multiply. The definition pairs entry with entry, and a 2-vector has no entry to pair with the 3-vector's third entry. Padding with a zero would be computing a different product, between different vectors.
(c). The self-product is a sum of squares, and a sum of squares is zero only when every term is zero.