Dot Product in Terms of Cosine

Read · 1 min

Let a⃗=<a1,a2>\vec{a}=\left< a_1,a_2 \right>, b⃗=<b1,b2>\vec{b}=\left< b_1,b_2 \right>, and c⃗=<c1,c2>\vec{c}=\left< c_1,c_2 \right> be three vectors in two-dimensional space.

From the definition of the dot product, a⃗⋅b⃗=a1b1+a2b2\vec{a}\cdot\vec{b}=a_1b_1+a_2b_2

We will now prove its equivalence to an equally useful geometric definition.

Note the following facts: a⃗⋅a⃗=a12+a22=∣a⃗∣2\vec{a}\cdot\vec{a}=a_1^2+a_2^2=|\vec{a}|^2 a⃗⋅(b⃗+c⃗)=a1(b1+c1)+a2(b2+c2)=(a1b1+a2b2)+(a1c1+a2c2)=a⃗⋅b⃗+a⃗⋅c⃗\vec{a}\cdot(\vec{b}+\vec{c})=a_1(b_1+c_1)+a_2(b_2+c_2)=(a_1b_1+a_2b_2)+(a_1c_1+a_2c_2)=\vec{a}\cdot\vec{b}+\vec{a}\cdot\vec{c}

Notice that the dot product of a vector with itself is its magnitude squared, and that the dot product obeys the distributive property.Of course, the dot product is also commutative.

Consider a triangle OABOAB, where OA⃗=a⃗\vec{OA}=\vec{a} and OB⃗=b⃗\vec{OB}=\vec{b}. Then AB⃗=b⃗−a⃗\vec{AB}=\vec{b}-\vec{a}. Let θ\theta be the measure of angle AOBAOB.

Computing AB2AB^2 using the Law of Cosines, AB2=OA2+OB2−2OA⋅OBcosθAB^2=OA^2+OB^2-2OA\cdot OBcos\theta

Substituting in vectors and using the fact that a⃗⋅a⃗=∣a⃗∣2\vec{a}\cdot\vec{a}=|\vec{a}|^2, (b⃗−a⃗)⋅(b⃗−a⃗)=a⃗⋅a⃗+b⃗⋅b⃗−2∣a⃗∣∣b⃗∣cosθ(\vec{b}-\vec{a})\cdot(\vec{b}-\vec{a})=\vec{a}\cdot\vec{a}+\vec{b}\cdot\vec{b}-2|\vec{a}||\vec{b}|cos\theta

Using the distributive property, b⃗⋅b⃗−2a⃗⋅b⃗+a⃗⋅a⃗=a⃗⋅a⃗+b⃗⋅b⃗−2∣a⃗∣∣b⃗∣cosθ\vec{b}\cdot\vec{b}-2\vec{a}\cdot\vec{b}+\vec{a}\cdot\vec{a}=\vec{a}\cdot\vec{a}+\vec{b}\cdot\vec{b}-2|\vec{a}||\vec{b}|cos\theta

Cancelling and simplifying, a⃗⋅b⃗=∣a⃗∣∣b⃗∣cosθ\vec{a}\cdot\vec{b}=|\vec{a}||\vec{b}|cos\theta

The dot product of two vectors is the product of their magnitudes and the cosine of the angle between them.

This is useful when one would like to compute the angle between two vectors. The cosine of the angle will equal the dot product of the vectors divided by the product of their magnitudes.

Interactive · 1 question

There are two ways to solve the dot product of two vectors, one of which involves using the cosine value of the angle between the two vectors. If aa and bb are two vectors, and ∣a∣|a| and ∣b∣|b| are their magnitudes then the formula is as follows:

a∗b=∣a∣∗∣b∣cos(theta)a * b = |a| * |b|cos (theta)

You can use this formula to find out the dot product of these two vectors. Let's try a simple practice problem.

What is the dot product of two vectors aa and bb whose magnitude are 5 and 10 respectively, if aa lies on the positive x-axis and bb at 135 from the positive x-axis? (Assume the Cosine value to be rounded to 2 decimal places

Choose one answer

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems