You are given the task of compressing a fixed quantity of gas from P1, T1 to P2, T1. You wish to do this using a polytropic process coupled with a constant pressure P2 heat-transfer process. Determine the polytropic process that minimizes the entropy generation.