Using the definition of convexity in $\mathbb{R}$,
$$f \left( \lambda x + (1 − \lambda) y \right) \leq \lambda f(x) + (1 − \lambda) f(y)$$
I am able to prove the convexity of function $f$. However, for a function in $\mathbb{R^2}$, I am not sure how this inequality changes. E.g., given the function $f(a, b) = a^2 + b^2$, how do I use this inequality?