Is f(x)=x3+2x24x12 concave or convex at x=3?

1 Answer
Mar 17, 2016

At f(3) the function is convex.

Explanation:

A concave function is a function in which no line segment joining two points on its graph lies above the graph at any point.

A convex function, on the other hand, is a function in which no line segment joining two points on the graph lies below the graph at any point.

It means that, if f(x) is more than the average of f(x±λ) than the function is concave and if f(x) is less than the average of f(x±λ) than the function is convex.

Hence to find the convexity or concavity of f(x)=x3+2x24x12 at x=3, let us evaluate f(x) at x=2.5,3and3.5.

f(2.5)=(52)3+2(52)24(52)12=1258+50410+12=125+10080968=498

f(3)=(3)3+2(3)24(3)12=27+181212=21

f(3.5)=(72)3+2(72)24(72)12=3438+9841412=343+196112968=3318

The average of f(2.5) and f(3.5) is 498+33182=3802×8=954=2334

As, this is more than f(3), at f(3) the function is convex.

graph{x^3+2x^2-4x-12 [-5, 5, -20, 30]}