Ashley F. answered 01/25/24
Astrophysics PhD
You can use the equation for a dot product: a·b = |a| |b| cos(θ), where θ is the angle between the vectors a and b.
We can calculate |a| and |b|:
|a| = √(22+22)=√8=2√2
and
|b| = √(22+(-1)2)=√5
We also know that a·b = (ax*bx + ay*by)
= 2*2 + 2*(-1)
= 2
We can re-arrange the original equation, and plug in values:
cos(θ) = a·b ⁄ |a| |b|
cos(θ)= (2) ⁄ (2√2 * √5)
cos(θ)= 2 ⁄(2√10)
cos(θ) =1 ⁄ √10
Take the inverse cosine of both sides, giving you the answer:
θ =cos-1(1 ⁄ √10)
≈ 72°