Analyzing relationships between two linear functions