Why the Monge–Ampère equation requires convex solutions

Abstract. With a Dirichlet boundary condition, the Monge–Ampère equation in two dimensions already has one convex and one concave solution. This post explains why convexity is the condition that selects the solution, and shows in a small experiment that a vanilla PINN converges to the concave one for all 10 random seeds.

Keywords: PDE, Monge–Ampère, PINN

1 Introduction

For the Poisson equation on a bounded domain, a Dirichlet boundary condition determines the solution uniquely. The Monge–Ampère equation

looks like another second-order elliptic equation, but it does not behave like one. On the one hand, only sees the product of the eigenvalues of the Hessian, not their signs, so the equation together with the boundary condition does not determine the solution. On the other hand, the classical theory [1] looks for solutions only among convex functions, and in this class the solution is unique. This has a direct consequence for numerical methods: the loss of a physics-informed neural network (PINN) usually contains only the residual and the boundary term, and the loss itself knows nothing about convexity.

The rest of this post is organized as follows. Section 2 gives an example with two solutions. Section 3 explains why convexity is the condition that selects the solution: it gives uniqueness, and it gives ellipticity. Section 4 reports a small experiment in which a vanilla PINN does converge to the wrong solution, with a small loss.

2 An example with two solutions

Example 2.1 (Problem 1). On the unit disk , consider

The functions

have Hessians and , both with determinant , and both equal on the unit circle. So both are solutions. is a bowl and is convex; is an upside-down bowl and is concave.

This is not an accident. In two dimensions, says that the eigenvalues have a positive product, so they have the same sign: either both are positive ( bends upward in every direction) or both are negative ( bends downward in every direction). The equation cannot tell the two cases apart. Since , if solves the equation, so does ; when the boundary value is a constant, adding a constant restores the boundary condition. This is how in Example 2.1 arises.

In three or more dimensions there are more possibilities. A symmetric matrix with eigenvalues has determinant , but it is neither positive nor negative semidefinite. So the equation alone cannot decide in which direction bends along each axis.

3 Why convexity selects the solution

The standard approach is to look for solutions only among convex functions. A function on a convex domain is convex if and only if everywhere, that is, it bends upward in every direction. This condition does two things: it gives uniqueness, and it gives ellipticity.

3.1 Uniqueness

Theorem 3.1 (Convex solutions of the Dirichlet problem). ([1, Theorem 2.14]) Let be a bounded, strictly convex domain, with , and . Then there is a unique function that is convex in , solves in the Alexandrov sense, and satisfies on .

The disk is strictly convex, so among convex functions Example 2.1 has only the solution . Uniqueness comes from the comparison principle: if two convex functions satisfy on the boundary and inside, then in the whole domain [1, §2.4]. Behind the comparison principle is the monotonicity of the determinant on positive semidefinite matrices: implies . Outside this cone the monotonicity fails. For example, , but in two dimensions .

3.2 Ellipticity

The literature often says that the Monge–Ampère equation "is elliptic on convex functions". The linearization makes this statement precise. For , the derivative of the determinant (Jacobi's formula)

where denotes the cofactor matrix of , gives the linearization of the equation at :

This is a linear second-order operator with coefficient matrix . It is elliptic at if and only if .

Proposition 3.2 (Convexity and ellipticity of the linearization). Let .

  1. If with eigenvalues , then has eigenvalues , so is elliptic at .
  2. If there is such that in , then is uniformly elliptic with ellipticity constant .
  3. If is convex on a convex domain , then .

Proof. (1) For invertible , . Diagonalizing shows that has eigenvalues . (2) Every lies in , so by (1) the smallest eigenvalue of is at least . (3) Since , we have for , and by (1) . Each entry of is a polynomial in the matrix entries, so letting gives the claim.∎

In two dimensions the statement is even more direct. For we have , which has the same trace and the same determinant as , hence the same eigenvalues. So in two dimensions is elliptic if and only if is positive definite. Back to Example 2.1:

  • At , and , so . Near the equation behaves like a Poisson equation.
  • At , , and in two dimensions , so . The coefficient matrix is negative definite, and the operator is elliptic at no point.
  • In three dimensions, if has eigenvalues , the formula in Proposition 3.2 (1) (it holds for any invertible symmetric matrix) gives the eigenvalues , which is indefinite. Then is not elliptic, whether multiplied by or by .

So the convexity requirement also fixes the sign of ellipticity. Note that Proposition 3.2 (3) only gives semidefiniteness: for a general convex solution, may degenerate or blow up at some points, and the equation is degenerate elliptic. For example, satisfies , its linearization is , and on the line the coefficient matrix is only semidefinite. Uniform ellipticity needs the two-sided Hessian bound of Proposition 3.2 (2), which is the central question of the regularity theory [1, §1.1].

4 A vanilla PINN finds the concave solution

The discussion above has a direct consequence for neural solvers. A PINN represents the solution by a network and minimizes

where are collocation points in the interior and are collocation points on the boundary. On Example 2.1, both and have zero loss, so the loss does not distinguish the two solutions. We want to know which one the network actually reaches in training.

4.1 Setup

The network is an MLP with tanh activations, computed in float64. We train it with Adam, learning rate , for steps; at each step we draw new interior points and new boundary points, and set . The Hessian is computed exactly by automatic differentiation with torch.func. After training, we test on new random points. Then we add the trace penalty

to the loss, keep everything else the same, and train again. Penalties of this kind were used by Nyström and Vestberg [2] and by Hacking et al. [3]. Each setting is run with random seeds. The results are in Table 1 and Figure 1.

Table 1. Results on Example 2.1 for 10 random seeds; each cell is the mean over the seeds. Violation is the fraction of test points with .
Final lossViolation
Vanilla PINN
With trace penalty
Values of the 10 trained networks on the line x_2 = 0
Figure 1. Values of trained with 10 random seeds on the line . Each seed is one thin line; the markers are the median of the 10 curves (triangles: vanilla PINN; circles: with the trace penalty). The black solid line is the convex solution , the orange dashed line the concave solution . (a) Vanilla PINN: all 10 curves lie on . (b) With the trace penalty: all 10 curves lie on .

The vanilla PINN converges to the concave solution for all 10 seeds, with a small loss. Judged by the loss alone, every one of these runs is a "success". With the trace penalty, all 10 seeds converge to the convex solution . We have not analyzed why the vanilla PINN always lands on the concave branch; the experiment only shows that the branch is chosen by the architecture and the optimization, not by the loss. Therefore a neural solver for the Monge–Ampère equation needs some mechanism that enforces convexity, and every experiment should check convexity instead of reporting only the loss and the residual.

4.2 Why the trace penalty works, and where it stops working

The trace penalty works in two dimensions because a symmetric matrix is positive semidefinite if and only if and . The equation already requires , so it only remains to require . This agrees with Section 2: in two dimensions the eigenvalues have the same sign, and the sign of the trace decides between convex and concave.

The method has two limitations. It only works in two dimensions: in three dimensions a matrix with eigenvalues has positive determinant and positive trace, but it is not positive semidefinite. Besides, the penalty only acts at the collocation points and does not guarantee convexity between them. Another approach is to make the architecture itself guarantee convexity, for example the input convex neural network (ICNN) [4]: if the weights between hidden layers are nonnegative and the activation is convex and nondecreasing, the output is convex in the input for any parameters. The price is that nonnegative weights limit the expressive power and make training harder.

5 Conclusion

The Monge–Ampère equation prescribes only the product of the Hessian eigenvalues, not their signs, so the equation with a boundary condition does not determine the solution. The convexity requirement selects the branch on which the Hessian is positive semidefinite: on this branch the comparison principle gives uniqueness, and the linearization is (degenerate) elliptic. Our small experiment shows that this is not only a theoretical issue: a vanilla PINN lands on the concave solution for all 10 seeds, and with the trace penalty it lands on the convex one for all 10 seeds. The experiment uses one problem, a very small network and 2000 training steps, and we have not explained why the vanilla PINN prefers the concave solution. How to enforce convexity in three or more dimensions, and how to guarantee it between collocation points, are questions for later posts.

References

  1. Figalli, Alessio, The Monge–Ampère Equation and Its Applications, Zurich Lectures in Advanced Mathematics, European Mathematical Society, Zürich, 2017.
  2. Nyström, Kaj, and Vestberg, Matias, Solving the Dirichlet problem for the Monge–Ampère equation using neural networks, Journal of Computational Mathematics and Data Science 8 (2023) 100080.
  3. Hacking, Roel, Kusch, Lisa, Mitra, Koondanibha, Anthonissen, Martijn, and IJzerman, Wilbert, A neural network approach for solving the Monge–Ampère equation with transport boundary condition, Journal of Computational Mathematics and Data Science 15 (2025) 100119.
  4. Amos, Brandon, Xu, Lei, and Kolter, J. Zico, Input Convex Neural Networks, in Proceedings of the 34th International Conference on Machine Learning, pp. 146–155.

Cite this post

Chengrui Zhang. Why the Monge–Ampère equation requires convex solutions. 2026. https://chengrui.dev/en/posts/mae-convexity-branch/

@misc{zhang2026mae-convexity-branch,
  author = {Zhang, Chengrui},
  title  = {{Why the Monge–Ampère equation requires convex solutions}},
  year   = {2026},
  url    = {https://chengrui.dev/en/posts/mae-convexity-branch/},
  note   = {Blog post},
}

Search the published posts.↑ ↓ to choose, Enter to open, Esc to close