From Math Images
(Redirected from
Dot product)
The dot product expresses the angular relationship between two vectors. The dot product is a way of multiplying two vectors to get a quantity with only magnitude. We use the dot product to compute lengths of vectors and angles between vectors. It is also called the scalar product.
In fact, a dot product is a specific inner product. An inner product is a class of operations which satisfy certain properties. The inner product is a way to multiply vectors together and get a numerical value. The inner product works for real vector spaces as well as abstract vector spaces. The dot product only works in an Euclidean space (this is your common xyz space).
In the general case, the dot product is the summation of the products of the vectors' components. is the actual notation for a vector. We have two vectors: A and B. Both vectors have n components. The definition of the dot product states:
 Let .
 Let .
Then,

For example, if and then, A dot B is

Real World Example
The dot product is pretty simple, and you use it without even noticing it. It's like school shopping math. When the school year approaches, you go shopping to get school supplies. You buy pencils, folders, notebooks etc all at specific prices. To compute the total cost, you multiply the price of an item by the number of that type of item you are going to buy. Then you add it all up. You are in fact using the dot product. The prices of items are components of one vector, and the quantities you are buying of those items make up another vector. To calculate the total cost of your school supplies, you just take the dot product of these vectors.
For example, suppose you need to buy 3 pencils, 4 folders, and 5 notebooks. Pencils cost $2, folders cost $0.50, and notebooks cost $1.
The quantity vector of the items is , and the price vector of the items is .
Taking the dot product of these vectors gives us

Using the formula for dot product, we have

Simplifying, we have

Properties of Dot Products
The dot product obeys the properties listed below. This holds true for all nonzero vectors. We use another notation commonly found in textbooks. The variable is now bold instead of having a hat hover over the variable. All properties work in any dimensional space.




 (holds only for scalars such as "s")
[Click to see proof of Properties]
Below are the proof of the Dot Product's properties that hold in any dimensional space. We prove the properties to be true using the threedimensional [...] [Click to see proof of Properties]
Below are the proof of the Dot Product's properties that hold in any dimensional space. We prove the properties to be true using the threedimensional space.
Property 1: Squared Length
Taking the dot product of a vector a with itself will give the squared length of the vector.

Write out the vector in terms of its components. So,

Multiply the products in the order given. For example, multiply the first components with each other and so on. Add the products.

Rewrite the expression above using exponents.

We know that the vector a in terms of its components. In the expression above the components are being squared. We can conclude it is the same as if the vector was squared initially.

Note that, the dot product of a vector with itself is greater than zero if and only if the vector is not the zero vector. Also, the dot product of a vector with itself can only be zero if the vector is zero.
Property 2: Distributive Property
The dot product of a vector and sum is equal to the sum of the individual products of addends and the vector.

Add the components of b and c inside the parentheses.

Multiply the sum of the component of b and c with the given component of a.

Distribute a across the set of parentheses.

Rewrite the expression without the components of the vectors by using the dot product.

So, we proved that:

Property 3: Zero Property
The dot product of a vector a and the zero vector will equal zero.

Multiply the components in given order of a with the zero vector. Every component of the zero vector is 0.

The product of any number and 0 is 0.

Thus,

Property 4: Commutative Property
The dot product of a vector a and a vector b is the same no matter if you change the order of the vectors. That is, A dot B is the same as B dot A. We conclude this by knowing the commutative property works on all real numbers.

Multiply the components in given order of a and b.

We basically want to know if we must write the dot product in a specific order. So, let's do the same process if we are given
Multiply the components in given order of b and a.

The first term in is and .
The first term in is .
By the commutative property based on real numbers the terms are the same.

So the large scale picture states:

Property 5: Associate Property
The dot product of two vectors and a scalar is the same no matter what the grouping of the two vectors and scalar is.

We will focus on the left side of the equation first. Then we will look at the right side. After, we'll show that the two expressions on the left and right side of the equal side is the same.
The left side of the equation states:

Write out vector a in terms of its components.

Distribute s across the components of a.

Multiply the terms of the expression above with the corresponding components of vector b.

Let's now focus on the right side which states: .

Take the dot product of a and b.

Multiply with scalar s.

Distribute the scalar to get:

Let's now relate the left side of the equation to the right side.
Remember we showed that the left side was:

And, the right side was:

By the commutative property based on real numbers, the corresponding terms of the left and right side of the equation are the same. For example, the first term on both sides of the equation contains the product of .

Rewrite the expression above using vector notation and the dot product and get:

So, we have shown that the grouping of the two vectors and scalar does not matter.
You can go through the same process and show:
Alternative Definition
The definition of the dot product given above was:
 .
Although, the dot product produces a numerical value it also has a geometric interpertation. Think of multiplication, it is a process like the dot product. When you multiply two numbers you get a numerical value yet in geometry multiplication means you create a rectangle with a certain height and base. The dot product relates the length of vectors and the angle between the vectors. If we know the angle between two vectors then we can write the dot product as such:

The equation above is in fact an alternative definition of the dot product. You may wonder what exactly is and how is it different from .
If , then the length of (which is also called the norm or magnitude) denoted as is .
[Click to see proof of Dot Product]
The alternative definition of the dot product is the following:

This new definition demonstrates the dot [...] [Click to see proof of Dot Product]
The alternative definition of the dot product is the following:

This new definition demonstrates the dot product's geometric meaning. The dot product finds the angle between vectors in an arbitrary space. However, this alternative definition is only defined in the 3 dimensional space. To understand this second definition we will first look at a vector being multiplied by itself, the basic case.

In this basic case there is no angle measured between a vector and itself. The angle is zero, and the cosine of zero is one. The dot product of a vector with itself is the length of the vector squared.
 .
Notice that the alternate definition gives us the same answer that we saw in the first definition of the dot product.
If we now use two different vectors, and , we will be able to get the second definition of the dot product by relying on the Law of Cosines. The Law of Cosine gives information about the third side of a triangle created from and . The length of the third side is equal to the length of plus . If the triangle was a right angle then this would simply be the Pythagorean Theorem. But because the triangle is not a right angle, we include another term which is twice the length of A multiplied by length B and the cosine of the angle between vectors A and B. The Law of Cosine in mathematical terms is
 Eq. 1 .
Now that we know the basics of the Law of Cosine we will prove that the alternative definition of the dot product is correct.
We call the third side of the triangle C, which is vector A minus vector B.
The squared length of vector C is in fact the dot product of itself.

However, it was mentioned that C is equal to vector A minus vector B. So, we use this information to define the third side of the triangle.

Rewrite it as such:
We use the distributive property of the dot product.

Simplify to get the following equation.
 Eq. 2
Combine Equation 1 and 2 to get:

Cross out like terms on both sides

We get:

Relying on the Law of Cosines we see that the alternative definition of the dot product is true. To use it effectively we will need to know the length of two vectors and the angle between them. If and are vectors and is the angle between and , then the dot product is defined by

This formula can be arranged to determine the angle between two nonzero vectors.


Geometric Properties of the Dot Product
Here are the geometric properties of the dot product.
We first put restriction on . We take
 If and are nonzero vectors then if and only if .
 when .
It makes sense for to call and perpendicular (or orthogonal). This applies to twodimensional and threedimensional anything higher is not a property but a definition of perpendicularity. Notice that if or is the zero vector then we can say the zero vector is perpendicular to every vector.
 The dot product can tell us other things based the measurement of the angle. If the angle is less than 90 degrees, the sign of the dot product is going to be positive. So, that means geometrically, our two vectors and are going more or less in the same direction. We can make and maximally positive by making them point in the same direction. Rotating and apart causes the dot product to decrease. The dot product reaches zero when and are perpendicular. If the angle is greater than 90 degrees the dot product will be negative and our vectors would point in opposite directions. The dot product simply measures how much the vectors are going along each other.
 and are two nonzero vectors. Imagine a perpendicular line drawn from the head of to the line through . Then this is a length called the projection of b onto a. This is written as .
[Click to see examples]
Find the dot product of vector A with 4 unit and vector B with 6 unit acting at 40 degrees with each other. The answ [...] [Click to cover the examples]
Find the dot product of vector A with 4 unit and vector B with 6 unit acting at 40 degrees with each other.
The answer is 18.38. Here's how we retrieved the answer.



Now what if the angle was 90 degrees. We follow the same procedure and plug into the formula.



Notice that if two vectors are perpendicular, then their dot product is zero. The cosine of 90 degrees is 0 which makes the entire expression go to zero. From the dot product we can figure out when two vectors are perpendicular.
References