Concavity and convexity
It is said that a function
In this graph we can observe different segments (with different colors) that join two points of the graph and stay over it.
Example
An example of a non convex function is:
since we find segments that join two points of the graph and that are below it.
On the other hand, it is said that a function
Example
Let's see an example of concave function:
Commonly, we can say that the convex functions are curved functions that are first decreasing and afterwards increasing, while the concave functions are the other way round, they are first increasing and afterwards increasing.
The functions, however, can present concave and convex parts in the same graph, for example, the function
The study of the concavity and convexity is done using the inflection points.
Inflection points
An inflection point is defined as the point in which the function changes from being convex to concave or vice versa.
Example
We can see in the previous example that in the point
One characteristic of the inflection points is that they are the points where the derivative function has maximums and minimums. Notice that when we approach an inflection point the function increases more every time(or it decreases less), but once having exceeded the inflection point, the function begins increasing less (or decreasing more). This means that in the points where there is an inflection point the derivative will have a maximum or a minimum. Consistently we will find the inflection points by looking for zeros of the second derivative.
We are going to illustrate the process with an example in order to give a simple and clear explanation:
Example
We will consider the function
We can already calculate the maximums and the minimums of the function
We observe that exactly where the derivative has a minimum is where the function has the inflection point.
To find the point from which we are going to derive the derivative function and equal it to zero:
The process to find the inflection points, the same as finding the maximums and minimums, is an algorithmic and very mechanical process. To derive the function two times, equal it to zero and find the solutions of the equation. These solutions will give us the inflection points.