A sample of gas expands from volume V1​ to V2​. The amount of work done by the gas is greatest when the expansion is