The second term on the right hand side of (3) is the structure factor.
For a given reciprocal lattice vector (corresponding to a family of lattice planes labeled by Miller indices ), the intensity of scattered particles is proportional to the square of the structure factor.
Buried in (6) are detailed aspects of the crystal structure that are worth distinguishing and discussing.