For a smooth vector field near an oriented piecewise smooth surface , Stokes theorem states
where the boundary orientation is induced by the surface unit normal through the right-hand rule. For a constant vector , the curl of is . Apply Stokes theorem and use the scalar triple product:
Since this holds for every constant , equality of all vector components proves the vector-valued Stokes identity
For the specified field, the two axis segments contribute zero because vanishes on them. On the arc the direct line integral is
Its two terms give
and
Therefore
One can also check the orientation and sign by Stokes theorem. For the upward-oriented quarter disk, . Polar integration gives
consistent with the positively oriented boundary in the question.