Skip Ahead:
Main Vector Page |
x-axis Vector Dot Product |
y-axis Vector Dot Product |
2D Vector Dot Product |
3D Vector Dot Product
Vector Dot Product
Vector Dot Product in 1D x-axis
The Dot Product of two vectors is one of two methods of vector multiplication, the other is the cross product. A dot product is denoted by the multiplication sign (⋅) between two vectors. The dot product of two vectors is a scalar quantity of the two vector's components multiplied individually based on their axes and then summed together. It is worth noting that the dot product of two vectors is also known as a scalar product as the resultant of the dot product of vectors is a scalar quantity.
Below is a simulation of the dot product in the x-axis. There is a red vector of variable magnitude and angle based on the movement of your mouse, and a second vector, a blue vector of magnitude (length) 21 and an angle of 0 degrees. When calculating the vector normal, we get a value of 1 when the red vector is at 0 degrees, however we get a value of -1 when the red vector is at 180 degrees. When figuring out the scalar vector we multiply the vector normal by the magnitude (length) of the red vector. (This will become more visible in 2D, however it also exists in 1D. In this case the scalar vector is just the x-axis component of the red vector). The dot product of the red vector and the blue vector now becomes the product of the component vectors of the blue vector multiplied by the component vectors of the red vector.
The vectors in the simulation can be represented in numerous ways. Here are the three most common ways of portraying them:
\[ \vec{A} = \begin{bmatrix} \hat{i} & \hat{j} & \hat{k} \\ -13 & 0 & 0 \end{bmatrix} \]
or
\[ \vec{A} = -13\hat{i} + 0\hat{j} + 0\hat{k} \]
or
\[ \vec{A} = \langle -13, 0, 0 \rangle \]
and
\[ \vec{B} = \begin{bmatrix} \hat{i} & \hat{j} & \hat{k} \\ 21 & 0 & 0 \end{bmatrix} \]
or
\[ \vec{B} = 21\hat{i} + 0\hat{j} + 0\hat{k} \]
or
\[ \vec{B} = \langle 21, 0, 0 \rangle \]
The dot product can be calculated using the following equations:
\[ \vec{A} \cdot \vec{B} = |\vec{A}||\vec{B}| \cos(\theta) \]
\[ \vec{A} \cdot \vec{B} = (A_x B_x) + (A_y B_y) + (A_z B_z) \]
The projection and angle of a vector in the dot product can be calculated using the following equations:
\[ \text{Projection of $\vec{A}$ on $\vec{B}$} = \frac{\vec{A} \cdot \vec{B}}{|\vec{B}|^2} \vec{B} \]
\[ \text{Projection of $\vec{B}$ on $\vec{A}$} = \frac{\vec{A} \cdot \vec{B}}{|\vec{A}|^2} \vec{A} \]
\[ \cos(\theta) = \frac{\vec{A} \cdot \vec{B}}{|\vec{A}| \cdot |\vec{B}|} \]
Now let's see what happens when we calculate the dot product of the red vector and blue vector, the vector projection, and the angle between the vectors:
\[ \vec{A} = -13\hat{i} + 0\hat{j} + 0\hat{k} \]
\[ \vec{B} = 21\hat{i} + 0\hat{j} + 0\hat{k} \]
\[ \vec{A} \cdot \vec{B} = ((-13)(21)) + ((0)(0)) + ((0)(0)) \]
\[ \vec{A} \cdot \vec{B} = (-273) + (0) + (0) \]
\[ \vec{A} \cdot \vec{B} = -273 \]
\[ \text{Projection of $\vec{A}$ on $\vec{B}$} = \frac{-273}{|21|^2} \langle 21, 0, 0 \rangle \]
\[ \text{Projection of $\vec{A}$ on $\vec{B}$} = \frac{-273}{441} \langle 21, 0, 0 \rangle \]
\[ \text{Projection of $\vec{A}$ on $\vec{B}$} = \frac{-273}{441} 21 \]
\[ \text{Projection of $\vec{A}$ on $\vec{B}$} = -13 \]
\[ \text{Projection of $\vec{B}$ on $\vec{A}$} = \frac{-273}{|13|^2} \langle -13, 0, 0 \rangle \]
\[ \text{Projection of $\vec{B}$ on $\vec{A}$} = \frac{-273}{169} \langle -13, 0, 0 \rangle \]
\[ \text{Projection of $\vec{B}$ on $\vec{A}$} = \frac{-273}{169} -13 \]
\[ \text{Projection of $\vec{B}$ on $\vec{A}$} = 21 \]
\[ \cos(\theta) = \frac{-273}{|-13| \cdot |21|} \]
\[ \cos(\theta) = \frac{-273}{|-273|} \]
\[ \cos(\theta) = -1 \]
\[ \theta = \cos^{-1}(-1) \]
\[ \theta = 180 \]
As we can see, the result of the dot product is -273, just like in the simulation, the projections of the vectors are -13 and 21, which are the component vectors of both vectors, and the angle between the vectors is 180 degrees.
Go Back to Vector Page y-axis Vector Dot Product