Let the initial point is
and terminal point is
The components of
are 


The vector is 
The magnitude of the vector v is :
.
(Substitute :
)

(Simplify)
The component form is
and magnitude of vector v is
.