From the simplex to the cube

A diffeomorphism φθ mapping the unit square [0,1]² onto the probability simplex (a triangle). The flowing grid is the square's coordinate net, drawn where it lands on the simplex.

drag to orbit · scroll to zoom · the gold ★ is the optimum; watch its square pre-image slide toward the centre as s grows