First law of thermodynamics states that cyclic integral of heat transfer is equal to cyclic integral of work.transfer but it is valid for slow or moderate process, free expansion is a very fast process, so theoretically work transfer is considered as zero