You are given a 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.