In an isothermal expansion, heat is allowed to flow into or out of the system so that temperature remains constant throughout the expansion of gas. For an ideal gas, AE (internal energy) depends upon temperature only, therefore at constant temperature, ΔE (i.e., isothermally), the internal energy of the gas remains constant, i.e., ΔE is zero.