Let a=⟨a1,a2⟩, b=⟨b1,b2⟩, and c=⟨c1,c2⟩ be three vectors in two-dimensional space.
From the definition of the dot product,
a⋅b=a1b1+a2b2
We will now prove its equivalence to an equally useful geometric definition.
Note the following facts:
a⋅a=a12+a22=∣a∣2a⋅(b+c)=a1(b1+c1)+a2(b2+c2)=(a1b1+a2b2)+(a1c1+a2c2)=a⋅b+a⋅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 OAB, where OA=a and OB=b. Then AB=b−a. Let θ be the measure of angle AOB.
Computing AB2 using the Law of Cosines,
AB2=OA2+OB2−2OA⋅OBcosθ
Substituting in vectors and using the fact that a⋅a=∣a∣2,
(b−a)⋅(b−a)=a⋅a+b⋅b−2∣a∣∣b∣cosθ
Using the distributive property,
b⋅b−2a⋅b+a⋅a=a⋅a+b⋅b−2∣a∣∣b∣cosθ
Cancelling and simplifying,
a⋅b=∣a∣∣b∣cosθ
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.
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 a and b are two vectors, and ∣a∣ and ∣b∣ are their magnitudes then the formula is as follows:
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 a and b whose magnitude are 5 and 10 respectively, if a lies on the positive x-axis and b at 135 from the positive x-axis? (Assume the Cosine value to be rounded to 2 decimal places
Hope you understood my topic explanation! Please let me know if I have made any typos or mistakes.