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.
Some useful facts:
Using these rules, we can recognize immediately that if $k \geq 0$ then your function is convex.