I was trying to prove, for the sake of curiosity, if the sum of a convex and a concave functions is convex, so i tried to do the following:
Let f: R -> R and g: R -> R.
f is convex and g is concave.
Prove that (f + g) : R -> R is convex.
Proof:
Since f is convex, by definition holds that:
$f(tx + (1-t)y) < tf(x) + (1-t)f(y), \forall x,y \in \Re, t \in (0,1)$
And g is concave, so:
$g(tx + (1-t)y) > tg(x) + (1-t)g(y), \forall x,y \in \Re, t \in (0,1)$
Now, I can write the inequalities like:
$f(tx + (1-t)y) - tf(x) - (1-t)f(y)< 0$
$-g(tx + (1-t)y) + tg(x) + (1-t)g(y) < 0$
It follows that:
$f(tx + (1-t)y) - tf(x) - (1-t)f(y)< tg(x) + (1-t)g(y) - g(tx + (1-t)y)$
Doing some calculation, I came up with:
$f(tx + (1-t)y) + g(tx + (1-t)y) < tg(x) + (1-t)g(y) + tf(x) + (1-t)f(y)$
I don't know if I have made some reasoning or logical mistakes, in fact it looks fine to me, but I don't trust myself so much to say that it's correct, so please, let me know. Thanks.