P-V Diagram for the Carnot engine

We can derive Carnot's result if we know a little more about the cycle in a Carnot engine. It involves four steps:
StepDescriptionHeatDS
1Isothermal Expansion
at Th
Qh
DS1 = +
|Qh|
Th
2Adiabatic Expansion
to Tc
00
3Isothermal Compression
at Tc
Qc
DS3 = -
|Qc|
Tc
4Adiabatic Compression
to Th
00
Full Cycle - |Qh| - |Qc|0

After completing a cycle the system returns to its original state - the original pressure , volume, temperature, and entropy. If the entropy is the same the total DS for the cycle is zero.
DS1 + DS3 =
|Qh|
Th
-
|Qc|
Tc
= 0
Therefore:    
|Qh|
Th
=
|Qc|
Tc

This is Carnot's result.