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:**

Example: 2i+ 3j

**In three dimensions:**

Example: 2i+ 3j -7k

Two vectors may be inclined at an angle from each other as shown in the following figure:

*Also, read:*

- Vectors
- Types of Vector
- Vector Space
- Vectors Joining Two Points
- Dot Product of Two Vectors
- Multiplication of Vectors with Scalar

## 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 two vectors \(\vec{A}\) and \(\vec{B}\)can be calculated using the following formula:

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

\(\vec{A}.\vec{B}\) = Dot product of \(\vec{A}\) and \(\vec{B}\)||A|| = Magnitude of a vector A

||A|| = \(\sqrt{A_{x}^{2}+A_{y}^{2}+A_{z}^{2}}\)

||B|| = Magnitude of a vector B

||B|| = \(\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 \| A \right \| \left \| B \right \|}\)

Therefore, the cosine angle between two vectors is given by

\( cos \theta = \frac{\vec{A}.\vec{B}}{\left \| A \right \| \left \| B \right \|}\)So, cosine of angle between two vectors can be calculated by dividing 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 vector \(\theta = cos^{-1}\frac{\vec{A}.\vec{B}}{\left \| A \right \| \left \| 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) = – 12Magnitude of \(\vec{A}\) is:

\(||A|| =\sqrt{4+9+1} = \sqrt{14}\)Magnitude of \(\vec{B}\) is:

\(||B|| =\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 \| A \right \| \left \| 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.