Write a vector in component form and find the magnitude