How do I find the angle between 2 vectors?

First, we need to recall 2 basic definitions of vector operations:

The dot product is defined on vectors u=[u1, u2,...un] and v=[v1, v2,..., vn] as u . v = u1v1+u2v2+...+unvn
The length (norm) of a vector v=[v1, v2,..., vn] is the nonnegative scalar defined as ||v||=√(v . v)=√(v12+v22+...+vn2)
Note that u & v must be the same size to compute the dot product.

Now the formula for the angle, θ, between 2 vectors is as follows:

            cos(θ)=(u . v)/(||u|| ||v||)

Notice that u & v can be any size so long as they are both the same size. That is, this formula can be used to find the angle between vectors in 2 dimensions and also to find the angle between vectors in 100 dimensions, however hard that is to imagine.

A handy rearrangement of that formula to isolate θ is:

θ=cos-1( (u . v)/(||u|| ||v||) )
           

 

Answered by Christopher H. Maths tutor

3688 Views

See similar Maths A Level tutors

Related Maths A Level answers

All answers ▸

Find the values of A between and including 0 and 360 degrees for tan(2A) = 3tan(A)


What is a logarithm?


The curve y = 4x^2 + a/ x + 5 has a stationary point. Find the value of the positive constant a given that y-ordinate of the stationary point is 32.


Given that x=3 is a solution to f(x)= 2x^3 - 8x^2 + 7x - 3 = 0, solve f(x)=0 completely.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy