To specify the rule for a function with small domain, use two-line notation by writing a matrix with each output directly below its corresponding input, as in: