To prove injection and surjection for a function with two variables, the approach is similar to that for a single variable. An example function is f: R x R → R defined by f(x, y) = x + y. This function is not injective, as demonstrated by f(1, 0) = f(0, 1). However, it is surjective because for any real number a, there exists a pair (a, 0) such that f(a, 0) = a. Understanding these properties is crucial for analyzing functions of multiple variables.