Lets say I have a position vector $\vec r$. Is it dimensionless or does it have a dimension of length i.e $[L]$.
Also does the unit vector $\hat r$ have a dimension?
Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. It only takes a minute to sign up.Sign up to join this community
Vectors do have dimensions. Specifically, the dimension of a vector is (and always must be) the same as the dimension of its components. This also means that al the components of a vector must have the same dimension.
In your example, the position vector $\vec r$ does indeed have units of length.
The vector $\hat r$ is defined as $\hat r = \vec r / |\vec r|$. Since we know that both $\vec r$ and $|\vec r|$ have units of length, we can conclude that $\hat r$ has units $L / L = 1$. In other words, it is dimensionless.
Yes it does have the dimension $[L]$. You can, however, be more specific and assign a different length dimension to each component. So that the $x$ component has length dimension of $[L_x]$ and analogous for $y$ and $z$. These are called direction dimensions, and can be helpful in dimensional analysis.