My book states that:
$f$ is a quasiconcave function on $U$ if for all $x,y \in U $ and $t \in [0,1]$:
$f(x) \geq f(y) \implies f(tx + (1 - t)y) \geq f(y)$
$f$ is a quasiconvex function on $U$ if for all $x,y \in U $ and $t \in [0,1]$:
$f(y) \leq f(x) \implies f(tx + (1 - t)y) \leq f(x)$
Now take a look to the graph below $f(x)=xy$. I know it should be quasi-concave, but given the definitions above I seems to be both quasi-convave and quasi-convex. What am I doing wrong?
Thanks!
Nothing is wrong. Every monotone function is both quasiconvex and quasiconcave.
Indeed, the definition of quasiconvexity amounts to saying that on every closed interval, the function attains its maximum at an endpoint. Same for quasiconcavity, except replace maximum with minimum. Every monotone function has both of these properties.