3.3 First Law of Thermodynamics
Now that we have seen how to calculate internal energy, heat, and work done for a thermodynamic system undergoing change during some process, we can see how these quantities interact to affect the amount of change that can occur. This interaction is given by the first law of thermodynamics. British scientist and novelist C. P. Snow (1905–1980) is credited with a joke about the four laws of thermodynamics. His humorous statement of the first law of thermodynamics is stated “you can’t win,” or in other words, you cannot get more energy out of a system than you put into it. We will see in this chapter how internal energy, heat, and work all play a role in the first law of thermodynamics.
Suppose Q represents the heat exchanged between a system and the environment, and W is the work done by or on the system. The first law states that the change in internal energy of that system is given by . Since added heat increases the internal energy of a system, Q is positive when it is added to the system and negative when it is removed from the system.
When a gas expands, it does work and its internal energy decreases. Thus, W is positive when work is done by the system and negative when work is done on the system. This sign convention is summarized in Table 3.1. The first law of thermodynamics is stated as follows:
| Thermodynamic Sign Conventions for Heat and Work | |
|---|---|
| Process | Convention |
| Heat added to system | |
| Heat removed from system | |
| Work done by system | |
| Work done on system | |
The first law is a statement of energy conservation. It tells us that a system can exchange energy with its surroundings by the transmission of heat and by the performance of work. The net energy exchanged is then equal to the change in the total mechanical energy of the molecules of the system (i.e., the system’s internal energy). Thus, if a system is isolated, its internal energy must remain constant.
Although Q and W both depend on the thermodynamic path taken between two equilibrium states, their difference does not. Figure 3.7 shows the pV diagram of a system that is making the transition from A to B repeatedly along different thermodynamic paths. Along path 1, the system absorbs heat and does work along path 2, it absorbs heat and does work and so on. The values of and may vary from path to path, but we have
or
That is, the change in the internal energy of the system between A and B is path independent. In the chapter on potential energy and the conservation of energy, we encountered another path-independent quantity: the change in potential energy between two arbitrary points in space. This change represents the negative of the work done by a conservative force between the two points. The potential energy is a function of spatial coordinates, whereas the internal energy is a function of thermodynamic variables. For example, we might write for the internal energy. Functions such as internal energy and potential energy are known as state functions because their values depend solely on the state of the system.

Often the first law is used in its differential form, which is
Here is an infinitesimal change in internal energy when an infinitesimal amount of heat dQ is exchanged with the system and an infinitesimal amount of work dW is done by (positive in sign) or on (negative in sign) the system.
Notice that in Example 1, we did not assume that the transitions were quasi-static. This is because the first law is not subject to such a restriction. It describes transitions between equilibrium states but is not concerned with the intermediate states. The system does not have to pass through only equilibrium states. For example, if a gas in a steel container at a well-defined temperature and pressure is made to explode by means of a spark, some of the gas may condense, different gas molecules may combine to form new compounds, and there may be all sorts of turbulence in the container—but eventually, the system will settle down to a new equilibrium state. This system is clearly not in equilibrium during its transition; however, its behavior is still governed by the first law because the process starts and ends with the system in equilibrium states.
Summary
- The internal energy of a thermodynamic system is a function of state and thus is unique for every equilibrium state of the system.
- The increase in the internal energy of the thermodynamic system is given by the heat added to the system less the work done by the system in any thermodynamics process.
Conceptual Questions
What does the first law of thermodynamics tell us about the energy of the universe?
Does adding heat to a system always increase its internal energy?
If more work is done on the system than heat added, the internal energy of the system will actually decrease.
A great deal of effort, time, and money has been spent in the quest for a so-called perpetual-motion machine, which is defined as a hypothetical machine that operates or produces useful work indefinitely and/or a hypothetical machine that produces more work or energy than it consumes. Explain, in terms of the first law of thermodynamics, why or why not such a machine is likely to be constructed.
Problems
When a dilute gas expands quasi-statically from 0.50 to 4.0 L, it does 250 J of work. Assuming that the gas temperature remains constant at 300 K, (a) what is the change in the internal energy of the gas? (b) How much heat is absorbed by the gas in this process?
In an expansion of gas, 500 J of work are done by the gas. If the internal energy of the gas increased by 80 J in the expansion, how much heat does the gas absorb?
580 J
An ideal gas expands quasi-statically and isothermally from a state with pressure p and volume V to a state with volume 4V. How much heat is added to the expanding gas?
As shown below, if the heat absorbed by the gas along AB is 400 J, determine the quantities of heat absorbed along (a) ADB; (b) ACB; and (c) ADCB.

a. 600 J; b. 600 J; c. 800 J
During the isobaric expansion from A to B represented below, 3,100 J of heat are added to the gas. What is the change in its internal energy?

(a) What is the change in internal energy for the process represented by the closed path shown below? (b) How much heat is exchanged? (c) If the path is traversed in the opposite direction, how much heat is exchanged?

a. 0; b. 160 J; c. –160 J
When a gas expands along path AC shown below, it does 100 J of work and absorbs either 200 or 400 J of heat. (a) Suppose you are told that along path ABC, the gas absorbs either 200 or 400 J of heat. Which of these values is correct? (b) Give the correct answer from part (a), how much work is done by the gas along ABC? (c) Along CD, the internal energy of the gas decreases by 50 J. How much heat is exchanged by the gas along this path?

When a gas expands along AB (see below), it does 20 J of work and absorbs 30 J of heat. When the gas expands along AC, it does 40 J of work and absorbs 70 J of heat. (a) How much heat does the gas exchange along BC? (b) When the gas makes the transition from C to A along CDA, 60 J of work are done on it from C to D. How much heat does it exchange along CDA?

a. 20 J; b. –90 J
A dilute gas is stored in the left chamber of a container whose walls are perfectly insulating (see below), and the right chamber is evacuated. When the partition is removed, the gas expands and fills the entire container. Calculate the work done by the gas. Does the internal energy of the gas change in this process?

Ideal gases A and B are stored in the left and right chambers of an insulated container, as shown below. The partition is removed and the gases mix. Is any work done in this process? If the temperatures of A and B are initially equal, what happens to their common temperature after they are mixed?

No work is done and they reach the same common temperature.
An ideal monatomic gas at a pressure of and a temperature of 300 K undergoes a quasi-static isobaric expansion from (a) What is the work done by the gas? (b) What is the temperature of the gas after the expansion? (c) How many moles of gas are there? (d) What is the change in internal energy of the gas? (e) How much heat is added to the gas?
Consider the process for steam in a cylinder shown below. Suppose the change in the internal energy in this process is 30 kJ. Find the heat entering the system.

54,500 J
The state of 30 moles of steam in a cylinder is changed in a cyclic manner from a-b-c-a, where the pressure and volume of the states are: a (30 atm, 20 L), b (50 atm, 20 L), and c (50 atm, 45 L). Assume each change takes place along the line connecting the initial and final states in the pV plane. (a) Display the cycle in the pV plane. (b) Find the net work done by the steam in one cycle. (c) Find the net amount of heat flow in the steam over the course of one cycle.
A monatomic ideal gas undergoes a quasi-static process that is described by the function , where the pressure and volume are measured in SI units, the starting state is , and the final state is . Assume the system consists of n moles of the gas in a container that can exchange heat with the environment and whose volume can change freely. (a) Evaluate the work done by the gas during the change in the state. (b) Find the change in internal energy of the gas. (c) Find the heat input to the gas during the change. (d) What are initial and final temperatures?
a. ; b. ; c. the sum of parts (a) and (b); d. and
A metallic container of fixed volume of immersed in a large tank of temperature contains two compartments separated by a freely movable wall. Initially, the wall is kept in place by a stopper so that there are 0.02 mol of the nitrogen gas on one side and 0.03 mol of the oxygen gas on the other side, each occupying half the volume. When the stopper is removed, the wall moves and comes to a final position. The movement of the wall is controlled so that the wall moves in infinitesimal quasi-static steps. (a) Find the final volumes of the two sides assuming the ideal gas behavior for the two gases. (b) How much work does each gas do on the other? (c) What is the change in the internal energy of each gas? (d) Find the amount of heat that enters or leaves each gas.
A gas in a cylindrical closed container is adiabatically and quasi-statically expanded from a state A (3 MPa, 2 L) to a state B with volume of 6 L along the path (a) Plot the path in the pV plane. (b) Find the amount of work done by the gas and the change in the internal energy of the gas during the process.
a.
b.