Comparison of functions and linear equations