I'm looking to determine when the function $f(\vec{x}) = k\vec{x}\cdot\vec{x} - \vec{x}\cdot\vec{y}$ is convex.
However, I'm not even sure where to start. For a function $\mathbb{R} \rightarrow \mathbb{R}$ I would take the second derivative and set it positive, but I don't know if that still works for functions taking vector input.