Canonical: https://knowlpedia.com/convex-analysis/quasiconvex-function/

# Quasiconvex function

A function whose value on a line segment never exceeds the larger endpoint value.

Let \(X\) be a real [vector space](https://knowlpedia.com/linear-algebra/vector-space/) and let \(f:X\to(-\infty,\infty]\) be an extended-real-valued function. The function \(f\) is **quasiconvex** if, for all \(x,y\in X\) and \(\lambda\in[0,1]\),
\[
f(\lambda x+(1-\lambda)y)\le \max\{f(x),f(y)\}.
\]

Equivalently, every sublevel set \(\{x\in X:f(x)\le \alpha\}\) is convex.

## Examples

- Any [convex function](https://knowlpedia.com/convex-analysis/convex-function-via-epigraph/) is quasiconvex.
- The function \(f(x)=\sqrt{|x|}\) on \(\mathbb R\) is quasiconvex but not convex.
- Any constant function is quasiconvex.

## Remarks

Quasiconvexity is weaker than convexity: it controls sublevel sets but does not require the graph to lie below its chords.
