are all quadratic functions convex?
In fact, affine functions are the only functions that are both convex and concave. Some quadratic functions: f(x) = xT Qx + cT x + d. – Convex if and only if Q ≽ 0. – Strictly convex if and only if Q ≻ 0.