Based in Maryland, Mathwizurd.com is REVOLUTIONIZINg the world, one post at a time. With topics ranging from Biology to Multivariable Calculus, this website covers the entire academic spectrum.

Aug 17 Finding the Angle Between Two Vectors

How to Find the Angle Between Two Vectors

This itself isn't calculus, but vectors are an important part of multivariable calculus, and I couldn't think of a better place to post this, so it's here.

Dot Product

Before we begin, we must define what a dot product is. The dot product is the sum of the products of the corresponding parts. For example, the dot product of <3, 4> and <5, 6> (written as <3,4>·<5,6>) is 3*5 + 4*6 = 39. When the dot product is 0, the vectors are perpendicular. We'll show this later.

Properties

This has numerous properties including the distributive property a·(b + c) = a·b + a·c, the reflexive property (a·b = b·a), and that ||a||^2 (the magnitude of a squared) = a·a.

Proof

On the left is a drawing of the vectors a, b, and a vector adjoining them, a-b. On the right, we have a corresponding triangle, with each side being the length of the vector, thus being completely equivalent to the triangle on the left. By the law of cosines:

Once you have that equation, you're able to solve any problem regarding the angle between two vectors by noting the relationship between the dot product and cosine. Thus, finding the angle between two vectors only involves taking the dot product, dividing, and taking the arccos of that.