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?
Asked
Active
Viewed 185 times
2 Answers
2
Yes, any linear function $f(x)=ax+b$ is both concave and convex. And these are the only functions with this property.

Kavi Rama Murthy
- 311,013
2
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.

José Carlos Santos
- 427,504