The package esdiff makes writing derivatives very easy. It allows to write derivatives, partial derivatives, multiple derivatives. Some typographic options are available.