Write . The cylindrical coordinates give and , so the vector components of the vector field are
The first two components of the curl, calculated in Cartesian coordinates, are and . For the third component, the chain rule gives
and hence
Combining these vector components in the cylindrical basis yields
The restriction matters because the cylindrical basis is undefined on the axis.