24: The function f is concave up on (−∞,−1] and on [2,∞) and concave down on [−1,2].
Inflection points f (−1) = 4 and f (2) = −8.