Convex Analysis of an Equation Arising in Oil Reservoir Models