Solution (source code)

= Solution

For any reversible Carnot cycle, $\eta=1-T_C/T_H$. The parameters $a,b$ alter the volumes and heat amounts but cancel from the ratio, as required by the second law's universality.