what are the similarities and differences between functions and linear equations?