0

My professor gave us the following question:

Refute (with a simple example): Let ,:ℝ→ℝ be two convex functions. The composition ℎ≜∘ (that is, ℎ()=(())) is also a convex function.

But from what I can read online the composition of two convex functions is convex as well, what am I missing here?

The composition of two convex functions is convex

David
  • 11

1 Answers1

2

Let $f$ and $g$ be $f(x)=-x$, $g(x)=x^2$. Then $f$ and $g$ are convex (since they are twice continuously differentiable and its second derivatives are $\geq 0$). However, $f(g(x))=-x^2$ is not convex.

Iván G M
  • 471