derivative of natural log with chain