I cannot find a way to define a function as the minimum of two other functions that each have the same two independent variables. I have f(x,y) and g(x,y), and I would like to find $h = \min\{f(x,y),g(x,y)\}$. $h$ is not a numerical answer, but a piecewise function; i.e., $h = f(x,y)$ for $f(x,y)<g(x,y)$, and $h=g(x,y)$ for $f(x,y)>=g(x,y)$.
Additionally, I would like to find the function that maximizes $h$ with respect to the variable $y$ and plot it in the xy-plane.
Min
in the documentation? $\endgroup$