For a reversible isothermal compression of an ideal gas, the heat absorbed is:
For an isothermal process (Δ U = 0), Δ U = q + w = 0, so q = -w. For reversible compression, w = -nRT ln(V₂/V₁) (positive), so q = nRT ln(V₂/V₁), which is negative since V₂ < V₁.
Ref: NCERT Class 11 Chemistry > Chapter 5: Thermodynamics > Topic: Gibbs Energy and Gibbs Energy Change and Equilibrium