$$f(x,y) = \frac{ax+by}{1+cx+dy}; a,b,c,d>0$$
Also please suggest an easy way to determine the convexity of such functions? I would also appreciate if I can numerically verify it quickly (instead of analytical methods).
$$f(x,y) = \frac{ax+by}{1+cx+dy}; a,b,c,d>0$$
Also please suggest an easy way to determine the convexity of such functions? I would also appreciate if I can numerically verify it quickly (instead of analytical methods).
The function is undefined along the line $1+cx+dy=0$ with all its values negative on one side of the line and positive on the other. So if you pick points on the surface on either side of that line, say $(x_1,y_1)$ and $(x_2,y_2)$ then the line segment connecting $(x_1,y_1,f(x_1,y_1))$ and $(x_2,y_2,f(x_2,y_2))$ cannot lie entirely above the surface. The surface is asymptotic to the plane $1+cx+dy=0$ so any segment connecting points of the surface on opposite sides of that plane necessarily pass through the plane.
The function is not convex. If it was, you would have that
$f((1-t)(x_1,y_1)+t(x_2,y_2))\leq (1-t)f(x_1,y_1)+tf(x_2,y_2)$ for any $(x_1,y_1),(x_2,y_2)$ and $t\in [0,1].$
Take the pairs $(\alpha,1)$ and $(1,\alpha)$ for $\alpha\neq 1.$ If you do the calculations you will arrive at a non-negative quadratic polynomial of second degree in terms of $t.$ This polynomial has as roots the numbers $0, 1.$ Since the coefficient of $t^2$ is positive (it is equal to $(1-\alpha)^2(ac+bc+ad+bd)$), you arrive at a contradiction.