TITLE: Integral of an increasing function is convex?
QUESTION [5 upvotes]: Let $f$ be a real valued differentiable function defined for all $x \geq a$. Consider a function F defined by $F(x) = \int_a^x  f(t) dt$. If f is increasing on any interval, then on that interval F is convex. 
I am not sure I intuitively understand this. What is the function is increasing at an increasing rate?
In this figure, for example, isn't the set defined by the integral not convex? Since any line joining the two points of the set are lying outside the said set? Can someone explain what I'm missing?

REPLY [7 votes]: By the Fundamental Theorem of Calculus $F'(x)=f(x)$. Since $F'$ is increasing, $F$ is convex.
Certainly the yellow set is not convex. But that has nothing to do with the convexity of the function $F$. In terms of graphs, a function $h\colon I\to \mathbb{R}$ where $I$ is an interval is convex if the set (sometimes called epigrap)
$$
\{(x,y)\in\mathbb{R}^2:x\in I,\ h(x)\le y\}
$$
is convex.