The position vector of a point is the vector drawn from the origin to :
Its magnitude is the distance from the origin: .
Vectors in general are pure displacements: magnitude and direction but no anchor point. The position vector is the one exception. By convention its tail is always at the origin, so it specifies a location rather than a displacement. That pinning to the origin is what lets the same triple of numbers serve as both “the point ” and “the position vector of .”
In other coordinate systems
No component, since the unit vector already encodes the azimuthal direction.
The whole position vector collapses to a single radial component. This is what makes spherical coordinates so clean for radially symmetric problems like the field of a point charge.
Why it matters in electromagnetics
Electrostatic and magnetostatic source equations are naturally written using position vectors. The electric field at observation point from a charge located at source point is
The Distance vector , the vector from source to observation point, is what carries the geometry. Position vectors are the bookkeeping that lets you write this cleanly even when neither the source nor the observation point sits at the origin.