Partial Legendre transforms of non-linear equations