How is the equation 5 derived? Any more detailed process?