it has already been out that equation is applicable only to ideal gases.
when applied to real gases, particularly at higher pressures , it is found that this expression does not reproduce the change in free energy, the reason being that under these conditions v is not equal to . In order to apply this equation to non-ideal systems, Lewis introduce two new thermodynamic quantites ,fugacity and activity