In two dimensions, the position vector r , which has magnitude (length) r and directed at an angle θ θ above the x-axis, can be expressed in Cartesian coordinates using the unit vectors x ^ ^ and y ^ ^ : r = r cos ⁡ ⁡ ( θ θ ) x ^ ^ + r sin ⁡ ⁡ ( θ θ ) y ^ ^ .