If a heat engine undergoes a reversible cycle consisting of two isobaric processes and two adiabatic processes, what methodology is used to determine how much heat is absorbed or rejected by the heat engine in the cycle?
I know that in a carnot cycle, heat is absorbed from a higher temperature bath and rejected to the lower temperature bath, but I am lost on how this is represented mathematically.