Concave and convex compositions