Mathematics for structure functions