Derive the equation to find efficiency of Carnot engine cycle

It is defined as ratio of net mechanical work done per cycle by the gas to the amount of heat energy absorbed per cycle from the source