Derivation Of Second Law