# Category: Convex and Concave Functions

## Definition of Convex and Concave Functions

Consider two functions on the figure to the right.

They are both increasing, but their form is different.

That's because one of them is convex and another is concave.

Definition. Function y=f(x) that is defined and continuous on interval X is called convex (or convex downward or concave upward) if for any a and b from X and numbers q_1 and q_2 such that q_1+q_2=1 and q_1>=0,q_2>=0 we have that f(q_1a+q_2b)<=q_1f(a)+q_2f(b).

## Properties of Convex Functions

Here we will talk about properties of convex (or concave upward) function.

We already noted that if function f(x) is concave upward then -f(x) is concave downward. So, these properties also hold for concave downward functions.

## Conditions of Concavity (Convexity) of the Function

Often it is very hard to prove convexity (or concavity) of function through definition.

We need more powerful methods.

Fact 1. Suppose that function y=f(x) is defined and continuous on interval X, and has finite derivative f'(x) inside it. Function y=f(x) is concave upward (downward) on X if and only if derivative f'(x) is non-decreasing (non-increasing). Function is strictly concave upward (downward) on X if and only if derivative f'(x) is increasing (decreasing).

## Inflection Points

Definition. Point c is an inflection point of function y=f(x) if function at this point changes direction of concavity (i.e. from concave upward becomes concave downward or from concave downward becomes concave upward).