From sum to integral. The density factors.

Click on picture for original, larger version.