Expanding products of linear expressions