I try to answer this question The Maximum and Minimum Functions of Two Functions
I wrote the following code
f[x_, y_] := 1 + 2*x + 3*y^3
g[x_, y_] := y + x^2
maxi[x_, y_] :=
Refine[{(f[x, y] + g[x, y])/2 + Abs[f[x, y] - g[x, y]]/2},
Assumptions -> {0 <= x <= 1, 0 <= y <= 1}]
Plot3D[maxi[x, y], {x, 0, 1}, {y, 0, 1}]
Is there any way to find function of maxi
?