In a free expansion of a perfect gas (also called Joule expansion), we know U does not change, and no work is done. However, the entropy must increase because the process is irreversible. Are these statements compatible with the first law dU=TdS−pdV?