PAIBOTLearn
Sign inSign up

Angles between vectors

Vectors

Japanese school year: Math C

What you learn

Learn how to find the cosine of the angle between two vectors using their magnitudes and dot product. This method is widely used to analyze directional relationships in two- and three-dimensional spaces. Familiarity with vector magnitudes, dot product calculations, and fundamental trigonometry is required.

Go to practice

Key points

This formula determines the angle θ\theta between two vectors a⃗\vec{a} and b⃗\vec{b}. Dividing their dot product a⃗⋅b⃗\vec{a} \cdot \vec{b} by the product of their magnitudes ∣a⃗∣∣b⃗∣|\vec{a}||\vec{b}| gives cos⁡θ\cos\theta.

cos⁡θ=a⃗⋅b⃗∣a⃗∣∣b⃗∣\cos\theta = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}||\vec{b}|}

This formula calculates cos⁡θ\cos\theta directly from the coordinates of two vectors, (a1,a2)(a_1, a_2) and (b1,b2)(b_1, b_2). The numerator represents their dot product, while the denominator is the product of their lengths.

cos⁡θ=a1b1+a2b2a12+a22b12+b22\cos\theta = \frac{a_1 b_1 + a_2 b_2}{\sqrt{a_1^2 + a_2^2}\sqrt{b_1^2 + b_2^2}}

This inequality defines the valid range for the angle θ\theta between two vectors. By convention, the smaller angle between the two directions is chosen, restricting θ\theta between 00 and π\pi radians (0∘0^\circ to 180∘180^\circ).

0≤θ≤π0 \le \theta \le \pi

Choose a set to practice.