Angle Between 2 Vectors
Calculate angle between two vectors.
Result:
Geometry of Direction: Finding the Angle Between Vectors
In physics and engineering, vectors are arrows that have both a size (magnitude) and a direction. Often, we have two forces acting on an object, or two velocity vectors, and we simply need to know: What is the angle between them? Our Angle Between Vectors Calculator uses the Dot Product rule to solve for $\theta$ (theta) instantly.
The Formula: The Dot Product
The geometric definition of the dot product states:
$$\vec{a} \cdot \vec{b} = |\vec{a}| |\vec{b}| \cos(\theta)$$
By rearranging this equation, we can isolate the angle $\theta$:
$$\theta = \arccos\left( \frac{\vec{a} \cdot \vec{b}}{|\vec{a}| |\vec{b}|} \right)$$
Where:
- $\vec{a} \cdot \vec{b}$: The algebraic dot product ($a_1b_1 + a_2b_2$).
- $|\vec{a}|$: The magnitude (length) of vector a.
- $|\vec{b}|$: The magnitude (length) of vector b.
Step-by-Step Calculation Example
Let's find the angle between Vector A (3, 4) and Vector B (4, 3).
Step 1: Calculate the Dot Product.
$(3 \times 4) + (4 \times 3) = 12 + 12 = 24$.
Step 2: Calculate the Magnitudes.
$|A| = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5$.
$|B| = \sqrt{4^2 + 3^2} = \sqrt{16 + 9} = \sqrt{25} = 5$.
Step 3: Solve for Cosine.
$\cos(\theta) = 24 / (5 \times 5) = 24 / 25 = 0.96$.
Step 4: Inverse Cosine (Arccos).
$\theta = \arccos(0.96) \approx 16.26^\circ$.
Interpreting the Results
The angle tells you essentially how the vectors relate:
- $0^\circ$: Parallel. They point in the exact same direction.
- $90^\circ$: Orthogonal. They are perpendicular. (Dot product will be 0).
- $180^\circ$: Anti-Parallel. They point in exact opposite directions.
- Acute Angle (< 90): The vectors are generally pointing in a similar direction.
- Obtuse Angle (> 90): The vectors are generally opposing each other.
Applications
1. Physics (Work): Work is defined as Force times Distance times the cosine of the angle
between them ($W = Fd\cos\theta$). If you pull a wagon handle at an angle, only the horizontal component
does "Work."
2. Computer Graphics: Lighting algorithms use the angle between the "light ray" vector
and the "surface normal" vector to calculate how bright a pixel should be. Orthogonal surfaces
($90^\circ$) receive no light.