What's the relationship between quadratics and convex functions

3.4k Views Asked by At

Are all quadratic functions convex and vice versa or are quadratic functions just one type of convex function? If so, could someone please provide examples of functions that are convex but not quadratic?

2

There are 2 best solutions below

2
On BEST ANSWER

Not all quadratic functions are convex. For instance, $f(x)=-x^2$ is not convex. And not all convex functions are quadratic, like $f(x)=e^x$.

4
On

Any quadratic form generalized to $n$ dimensions is of the form $$f(\mathbf x) = \frac{1}{2}\mathbf x^TA\mathbf x + b^T\mathbf x + c$$ This is convex when A is a positive definite matrix.