I remember that for free expansion dw = 0, but I cant remember why free expansion is irreversible
Free expansion is irreversible because the probability that a gas will appear distributed across the entire volume of a container (call this volume "V2") is much much higher than that of a gas localizing itself in one small part of the container while leaving a vaccum in the other part (call this volume "V1"). This is described for the change in entropy of the system in the case of free expansion by:
:delta: S
system = nRln(V2/V1)
If V1 is the volume the gas originally occupies in one small part of the container, and V2 is the volume of the entire container that the gas occupies after the expansion, then V2 is larger than V1. :delta: S
system will be positive in this situation (you can check by plugging in a larger number for V2 and taking the natural log...it will be positive). Now if the gas is allowed to freely expand from V1 to V2 in an isothermal situation without doing any work on surrounding molecules then for the surroundings, dw=0 for the work and dU = 0 since the temperature doesn't change (as Yggs mentioned, this is for the isothermal part of things), so that :delta: S of the surroundings is ultimately equal to zero.
So now let's look at the situation of the entropy in total:
:delta: S
total = :delta: S
system + :delta: S
surroundingsSince :delta: S
surroundings = 0:
:delta: S
total = nRln(V2/V1)
And so for an expansion where V2 > V1, :delta: S
total is always positive.
While writing this out, I used the following website for reference:
http://web.mit.edu/16.unified/www/SPRING/propulsion/notes/node40.html