1. Find Angle between two vectors
`A=(3,4,0)`, `B=(2,2,1)`Solution:Here `vec A=(3,4,0),vec B=(2,2,1)`
The angle between two vectors `vec A` and `vec B` is given by
`cos(theta)=(vec A * vec B)/(|vec A| * |vec B|)`
1. Calculate dot product
`vec A * vec B`
`=A_1*B_1+A_2*B_2+A_3*B_3`
`=3*2+4*2+0*1`
`=6+8`
`=14`
2. Calculate magnitude of vectors
`|vec A|`
`=sqrt(A_1^2 + A_2^2 + A_3^2)`
`=sqrt(3^2 + 4^2 + 0^2)`
`=sqrt(9 + 16 + 0)`
`=sqrt(25)`
`=5`
`|vec B|`
`=sqrt(B_1^2 + B_2^2 + B_3^2)`
`=sqrt(2^2 + 2^2 + 1^2)`
`=sqrt(4 + 4 + 1)`
`=sqrt(9)`
`=3`
3. Calculate angle between vectors
`cos(theta)=(vec A * vec B)/(|vec A| * |vec B|)=(14)/(5 * 3)=14/15`
`:. theta=cos^(-1)(14/15)`
`:. theta=0.3672` rad Or `theta=21.0395 ^circ`
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then