First law of black hole mechanics in