Question: does the jacobian matrix have to be square

Answer: No, This example shows that the Jacobian need not be a square matrix.