Observe such a system, as sketched in the image shown, as it is going through some process. It is in contact with multiple reservoirs, of which one, that at temperature T 0 , is the environment reservoir. During the process, the system produces work and generates entropy. Under these conditions, the theorem has two general forms.