density formula pdf