For probability measures on with finite second moments, the Knott–Smith optimality criterion states that a transport plan minimizes the quadratic cost if and only if there is a proper convex function that is sequentially lower semicontinuous and satisfies
The subdifferential is characterized by
with . Thus the transport plan is concentrated on the graph of the subdifferential. No absolute continuity of measures assumption on is needed. Multiplying the cost by leaves the criterion unchanged. The original quadratic optimal mapping result is Knott and Smith, On the optimal mapping of distributions.
Define ; the printed quotient is undefined at the origin, but this continuous extension changes no transport cost because . In polar coordinates, the two probability density functions give
Both angular distributions are uniform, with independence of angle and radius. The proposed transport map preserves the angle and sends to . Therefore
and preservation of the angle proves . As a local check using the Jacobian determinant, its radial and tangential derivatives for are and , respectively, so and .
Now use the convex function
It is convex because the Euclidean norm is convex and is increasing and convex on . It is differentiable, including at zero, and
Its graph transport plan lies in the graph of , so the Knott–Smith optimality criterion proves quadratic optimality. Since that plan is induced by a map, part 1(b) proves optimality for the Monge optimal transport problem as well. The minimum provides a useful independent check:
Choose the bounded, nonnegative nondecreasing function from part (d), and define
The function is convex and nondecreasing. For , the triangle inequality, monotonicity, and convexity give
Hence is a convex function. By the gradient of a radial function formula and the fundamental theorem of calculus,
for whenever . A monotone function has at most countably many discontinuities, so part (d) makes the exceptional radii -null. The origin is also -null. Define ; thus -almost everywhere.
For every in the orthogonal group, , including at zero. Consequently is invariant under the orthogonal group. Moreover away from the null origin, and composition of pushforward measures gives
Part (c) therefore gives . The Knott–Smith optimality criterion makes a transport map given by a convex function's gradient optimal for the quadratic transport cost. Uniqueness from Brenier's theorem yields
Since directions agree, this also identifies the optimal value: