Exercise 8.

Consider the function \(f:\{1,2,3,4\} \to \{1,2,3,4\}\) given by the graph below.

The first quadrant of a coordinate plane.  Horizontal axis labeled "x", vertical axis labeled "f(x)".  Both axes labeled with the numbers 1 through 4, with an integer grid.  Points at (1,3), (2,4), (3,1) and (4, 3).
  1. Is \(f\) injective? Explain.

  2. Is \(f\) surjective? Explain.

  3. Write the function using two-line notation.

in-context