 In the case of an engine, one desires to extract work and puts in a heat transfer.The "theoretical" maximum efficiency of any heat engine depends only on the temperatures it operates between.This efficiency is usually derived using an ideal imaginary heat engine such as the Carnot heat engine, although other engines using different cycles can also attain maximum efficiency.