Direction of a Vector Formula

As the name suggests, when two distinct points are directed from one place to another then it is denoted by a vector. It can also be seen as differences between velocity and speed. We get no clue about in which direction the object is moving. Therefore, we use this formula that will enable us to know in which direction the object is moving. In physics, the magnitude and direction are expressed as a vector. If we say that the rock is moving at 5 meters per second, and the direction is towards the West, then it is represented using a vector.
If x is the horizontal movement and y is the vertical movement, then the formula of direction is:

$\LARGE \theta =\tan^{-1}\frac{y}{x}$

If ($x_{1}$,$y_{1}$ ) is the starting point and the ending point is ($x_{2}$,$y_{2}$ ), then the formula for direction is:

$\LARGE \theta =\tan^{-1}\frac{(y_{2}-y_{1})}{(x_{2}-x_{1})}$

Solved Example

Question:

Find the direction of the vector $\overrightarrow{PQ}$  whose initial point P is at (5, 2) and the endpoint is at Q is at (4, 3).

Solution:

Given $(x_{1}$, $y_{1})$ =  (5, 2)

$(x_{2}$, $y_{2})$ = (4, 3)

According to the formula we have,

$\theta$ = $tan^{-1}$ $\frac{(y_{2} – y_{1})}{(x_{2} – x_{1})}$

$\theta$ = $tan^{-1}$ $\frac{(3-2)}{(4-5)}$

θ = tan-1(-1)

θ = -45° or θ = 135°