A function is said to be a convex function if the line segment joining any two points on the graph is above  the graph or on the graph