 # Angle Between Two Vectors

The vector quantities possess magnitude as well as direction, whereas scalar quantities have magnitude only, but not direction. A vector may be represented in the following form:

In two dimensions:

$\vec{A} = A_{x}i+A_{y}j$

Example: 2i+ 3j

In three dimensions:

$\vec{A} = A_{x}i+A_{y}j+A_{z}k$

Example: 2i+ 3j -7k

Two vectors may be inclined at an angle from each other as shown in the following figure: ## Angle Between Two Vectors Formula

Before understanding the formula of the angle between two vectors, let us understand how to find a scalar product or dot product of two vectors.

Let us assume that two vectors are given such that:

$\vec{A} = A_{x}i+A_{y}j+A_{z}k$ and $\vec{B} = B_{x}i+B_{y}j+B_{z}k$

Then dot product or scalar product of $\vec{A}$ and $\vec{B}$ can be calculated as:

$\vec{A}.\vec{B} = A_{x}B_{x}+ A_{y}B_{y}+A_{z}B_{z}$

The angle θ between the two vectors $\vec{A}$  and $\vec{B}$ can be calculated using the following formula:

$\theta=cos^{-1}\frac{\vec{A}.\vec{B}}{\left | \vec{A} \right |\left | \vec{B} \right |}$

Where

$\vec{A}.\vec{B}$ = Dot product of $\vec{A}$  and $\vec{B}$

$\left | \vec{A} \right |$ = Magnitude of vector A

$\left | \vec{A} \right |=\sqrt{A_x^2+A_y^2+A_z^2}$

$\left | \vec{B} \right |$ = Magnitude of vector B

$\left | \vec{B} \right |=\sqrt{B_x^2+B_y^2+B_z^2}$

## Cosine of Angle Between Two Vectors

The formula for finding cosine of angle between two vectors can be deduced by the formula of angle between two vectors $\vec{A}$  and $\vec{B}$ is $\theta=cos^{-1}\frac{\vec{A}.\vec{B}}{\left | \vec{A} \right |\left | \vec{B} \right |}$

Therefore, the cosine angle between two vectors is given by

$\theta=cos^{-1}\frac{\vec{A}.\vec{B}}{\left | \vec{A} \right |\left | \vec{B} \right |}$

So, the cosine of the angle between two vectors can be calculated by dividing the dot product of the vectors by-product of their magnitudes.

Distance Between Two Vectors

Let us suppose that two vectors that are defined in two-dimensional space be:

$\vec{A} = A_{x}i+A_{y}j$ and $\vec{B} = B_{x}i+B_{y}j$

Therefore, the distance between two vectors such as vector A and vector B is given as

$d =\sqrt{(A_{x}-B_{x})^{2}+ (A_{y}-B_{y})^{2}}$

Similarly, consider two vectors defined in three-dimensional space be:

$\vec{A} = A_{x}i+A_{y}j+A_{z}k$ and $\vec{B} = B_{x}i+B_{y}j+B_{z}k$

Therefore, the distance between two vectors such as vector A and vector B is given as

$d =\sqrt{(A_{x}-B_{x})^{2}+ (A_{y}-B_{y})^{2}+ (A_{z}-B_{z})^{2}}$

## How to Find the Angle Between Two Vectors?

To find the angle between two vectors, one needs to follow the steps given below:

Step 1: Calculate the dot product of two given vectors by using the formula : $\vec{A}.\vec{B} = A_{x}B_{x}+ A_{y}B_{y}+A_{z}B_{z}$

Step 2: Calculate the magnitude of both the vectors separately. Magnitude can be calculated by squaring all the components of vectors and adding them together and finding the square roots of the result.

Step 3: Substitute the values of dot product and magnitudes of both vectors in the following formula for finding the angle between two vectors, i.e. $\theta=cos^{-1}\frac{\vec{A}.\vec{B}}{\left | \vec{A} \right |\left | \vec{B} \right |}$

## Angle Between Two vectors Example

Question: Calculate the angle between vectors 2i + 3j – k and i – 3j + 5k

Solution:

Let $\vec{A}$ =2i + 3j – k and $\vec{B}$=i – 3j + 5k

Scalar product of $\vec{A}$ and $\vec{B}$ is

$\vec{A}. \vec{B}$ = 2 + (-9) + (-5) = – 12

Magnitude of $\vec{A}$ is:

$\left | \vec{A} \right |=\sqrt{4+9+1}=\sqrt{14}$

Magnitude of $\vec{B}$ is:

$\left | \vec{B} \right |=\sqrt{1+9+25}=\sqrt{35}$

The formula to find the angle between two vectors is

$\theta=cos^{-1}\frac{\vec{A}.\vec{B}}{\left | \vec{A} \right |\left | \vec{B} \right |}$

$\theta = cos^{-1}\frac{-12}{\sqrt{14}\sqrt{35}}$

$\theta = cos^{-1}\frac{-12}{3.64 \times 5.92}$

$\theta = cos^{-1}(-0.542)$

$\theta = 122. 82^{\circ}$

Therefore, the angle between two vectors 2i + 3j – k and i – 3j + 5k is $122. 82^{\circ}$.

For more Maths-related articles, register with BYJU’S – The Learning App and explore videos to learn with ease.