Algebraic representation of linear relationships