I know that for an isothermal process heat transfer is necessary so process should be slow and walls should be conducting for heat transfer to occur as a process cannot be isothermal and adiabatic at same time. But why slow compression of piston need to be isothermal, can't it be neither isothermal not adiabatic? For example:
In figure,the walls of the container and the piston are weakly conducting. The initial pressure, volume and temperature of the gas are 200 KPa, 800 cm³ and 100 K resp. Find the pressure and the temperature of the gas if it is (a) slowly compressed (b) suddenly compressed to 200 cm³ (y = 1.5)
Why in part (a) we consider process as isothermal instead of neither isothermal not adiabatic?