Derivation Of Second Law Of Thermodynamics