Find the angle between the vectors:
a=2i^−j^+k^andb=−i^+j^
The angle θ between two vectors a and b is given by:
cosθ=∣a∣∣b∣a⋅b
a=2i^−j^+k^⟹(a1,a2,a3)=(2,−1,1)
b=−i^+j^+0k^⟹(b1,b2,b3)=(−1,1,0)
a⋅b=(2)(−1)+(−1)(1)+(1)(0)
=−2−1+0=−3
∣a∣=(2)2+(−1)2+(1)2=4+1+1=6
∣b∣=(−1)2+(1)2+(0)2=1+1+0=2
cosθ=6⋅2−3=12−3=23−3=2−3
θ=cos−1(2−3)=150°
θ=150°