Convex function
Appearance
![](http://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/ConvexFunction.svg/300px-ConvexFunction.svg.png)
![](http://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Epigraph_convex.svg/300px-Epigraph_convex.svg.png)
In mathematics, a convex function is any function with value of the weighted average of 2 points is less than or equal to the weighted average of the function at those points. Also, a function is convex if and only if its epigraph is a convex set.
Examples
[change | change source]Three examples are:
- A line:
- A parabola:
- Absolute value: