The species–area relationship is expressed by the equation: log S = log C + Z log A, where S is the number of species, A is the area, C is a constant, and Z is the slope of the line. This relationship is commonly used in ecology to describe biodiversity patterns.