How to find the component form of a vector