Convexity when First Derivative is a Constant

186 Views Asked by At

I was trying to get the convexity of f(x) = x but then the first derivative was just a constant one and if I get the second derivative it would just give me a zero, does this mean that it's both concave and convex?

2

There are 2 best solutions below

0
On

Yes, any linear function $f(x)=ax+b$ is both concave and convex. And these are the only functions with this property.

0
On

Yes, it is both concave and convex. You don't need derivatives for this. Just use the definitions of concave function and of convex function.