3.012 Fundamentals of Materials Science Fall 2003 Lecture 10: 10.08.03 Free energy: applying the second law in laboratory conditions Today: LAST TIME ............................................................................................................................................................ 2 TWO NEW THERMODYNAMIC FUNCTIONS USEFUL FOR LABORATORY CONDITIONS ............................................... 3 Why we need another thermodynamic function ................................................................................................................................. 3 EQUILIBRIUM AT CONSTANT TEMPERATURE AND VOLUME: HELMHOLTZ FREE ENERGY1 ..................................... 5 EQUILIBRIUM AT CONSTANT TEMPERATURE AND PRESSURE: GIBBS FREE ENERGY2 ............................................. 7 Defining the Gibbs free energy .......................................................................................................................................................... 7 Determining equilibrium for experiments in the lab .......................................................................................................................... 7 REFERENCES ....................................................................................................................................................... 10 Reading: Dill and Bromberg, Ch. 8 ‘Laboratory Conditions and Free Energies’ pp. 131-150 Supplementary Reading: - Lecture 10 – Free energies 1 of 10 2/6/16 3.012 Fundamentals of Materials Science Fall 2003 Last time Lecture 10 – Free energies 2 of 10 2/6/16 3.012 Fundamentals of Materials Science Fall 2003 Two new thermodynamic functions useful for laboratory conditions Why we need another thermodynamic function In the calculations of equilibrium temperature and pressure we made using the second law in the last lecture, we considered isolated systems where transfer of heat, work, or molecules at the boundaries of the system were prevented. (In our block A/block B heat transfer experiment, the blocks did no work and were not allowed to exchange heat with their surroundings- only with one another). In such constant internal energy systems, it is straightforward to directly apply the fundamental equation for the entropy and the second law to calculate equilibrium properties of the system. Though the experiments described in those calculations are physically possible, controlling heat and work flow at the boundaries of a real system is often not a simple task- and is unnecessary for most experimental procedures you would be interested in performing. Instead, what we would like to control at the boundaries of our system (are the temperature and pressure (imagine a solution of a material in a test tube, as illustrated below). This is experimentally straightforward- we can place our test tube in a heating or cooling bath to maintain a constant temperature, and if the system is open to the atmosphere, it is maintained at a constant pressure (1 atm). Alternatively, if we seal the test tube with an inflexible barrier, the contents of the tube may be held at constant temperature and volume (what would you worry about in the second case?). (Dill and Bromberg1) o Thus, instead of keeping the internal energy of the system constant, we would like to keep the temperature and pressure or temperature and volume constant, and predict how the system changes when various thermodynamic driving forces are applied (for our test tube example, perhaps we want to carry out a reaction on the material in the solution). Under such conditions, the internal energy of the system can fluctuate. If we have our test tube in a heating bath, internal energy in the form of heat is being transferred into and out of the system to maintain a constant temperature, and we can no longer apply the fundamental equation for the entropy to the system alone to determine the equilibrium state. Because we are exchanging heat with the surroundings, we have to worry about the entropy change in the surroundings as well. The second law only dictates the behavior of the total entropy of the universe. Ack! Lecture 10 – Free energies 3 of 10 2/6/16 3.012 Fundamentals of Materials Science Fall 2003 Isolated system q system B A closed system q surroundings Suniverse = Ssystem q system B A q surroundings Suniverse = SsystemSsurroundings ??? o So how do we get around this problem? We’d much rather make calculations for the system alone, rather than having to understand the thermodynamic behavior of the system and its surroundings. The solution is to define a fundamental equation designed for the conditions at hand. o Mathematically, it is most straightforward to make equilibrium calculations using a thermodynamic function whose independent variables are the variables controlled at the boundaries of the system. Thus for isolated systems as described in our earlier examples, where U, V, and N were controlled at the boundaries, equilibrium is readily calculated by maximizing the fundamental equation for the entropy since S = S(U,V,N). We will now introduce two new functions, the Helmholtz free energy (F) and Gibbs free energy (G), which are useful in different ways for determining equilibrium behavior under laboratory conditions. The Gibbs free energy in particular is useful for common laboratory conditions because G = G(T,P,N). The Helmholtz free energy is useful for conditions of constant temperature and volume because F = F(T,V,N). Lecture 10 – Free energies 4 of 10 2/6/16 3.012 Fundamentals of Materials Science Fall 2003 Equilibrium at constant temperature and volume: Helmholtz Free Energy1 Our objective is to define a thermodynamic function for a system at constant temperature and pressure that has an extremum principle at equilibrium- that is, a function that is maximized or minimized in order to satisfy the second law for this system. This can be derived by considering the system of interest and applying the second law. Imagine for concreteness that we have a test tube in a heat bath as depicted in the left-hand figure above. The bath and test tube are isolated from their surroundings and do not exchange heat, work, or atoms with the atmosphere/benchtop/etc. The test tube is the system of interest, but because the tube is exchanging heat with the bath, we must also consider the entropy of the heat bath (the surroundings). Together, the heat bath + test tube do form an isolated system, so the second law can be applied to the pair (nothing else in the universe is being affected by the test tube and bath): dSuniverse dSsurr dSsystem 0 (Eqn 1) o second law for the tube + heat bath Since the test tube + heat bath form an isolated system, we know that the total energy of the pair must remain constant: dU surr dU system 0 (Eqn 2) o Now we expand the second law for the surroundings and system above using the fundamental equation for the entropy, using the conservation relation given in (Eqn 2): dSuniverse (Eqn 4) dU system dSsystem 0 Tsystem or (Eqn 5) o (Eqn 5) gives us a thermodynamic function that is mimized to satisfy the second law for a system held at constant temperature and pressure. With this equation we need not know the state of the heat bath we only need to know the state of the system itself. The differential function above is defined as a new thermodynamic function: The Helmholtz free energy: F U TS (Eqn 6) dU system dSsystem 0 dU system TdSsystem 0 Tsystem DEFINITION OF HELMHOLTZ FREE ENERGY The total differential of the Helmholtz free energy is given by: (Eqn 7) o dF dU TdS SdT The differential of F at constant temperature reduces to: Lecture 10 – Free energies 5 of 10 2/6/16 3.012 Fundamentals of Materials Science (Eqn 8) dF dU TdS Fall 2003 FUNDAMENTAL EQUATION FOR HELMHOLTZ FREE ENERGY (constant temperature) One important application of the Helmholtz free energy is in model calculations, such as lattice models of solidswhere it is simpler to make predictions at constant volume (harder to model constant pressure). Thus we will return to the Helmholtz free energy when we introduce statistical mechanics and molecular models of materials. The Helmholtz free energy is an example of a change of variables- changing from maximizing entropy of a system at constant (U,V,N) to minimizing free energy of a system at constant (T, V, N). There are multiple ways to arrive at this change of variables, known as a Legendre transformation. (Those of you in 3.16 will recognize this). Lecture 10 – Free energies 6 of 10 2/6/16 3.012 Fundamentals of Materials Science Fall 2003 Equilibrium at constant temperature and pressure: Gibbs Free Energy2 Defining the Gibbs free energy We defined a useful thermodynamic function (the enthalpy, H) by simply subtracting the ‘mechanical’ component of the internal energy from U. In a similar manner, we can define a very useful function called the Gibbs free energy (G), by subtracting both the ‘thermal’ energy and the ‘compressive’ energy from U: G U (PV) TS H TS (Eqn 9) DEFINITION OF GIBBS FREE ENERGY But what is the Gibbs free energy? We’ve taken the total internal energy and subtracted off the thermal energy compressive energy- what’s left? The answer is: energy arising from other kinds of work terms. So far and the we’ve mostly focused on two sources of internal energy, compressive work from an applied pressure and thermal energy due to heat transfer. However we also introduced other types of work: work of polarization, chemical work, magnetic work, etc. o In many practical problems in materials science & engineering, it is these other kinds of work in which we are most interested.. The differential form of the Gibbs free energy (the fundamental equation for the free energy) is useful for many calculations: dG dH TdS SdT (Eqn 10) P TdS i1 P i1 C dN i j i j VdP TdS SdT j1 C dN i j i j VdP SdT j1 …where the sum is over the C components in the system and the P phases in the system. The differential for G reduces to a simple expression under conditions of constant temperature and pressure: (Eqn 11) P dG i1 C dN i j i j at constant temperature and pressure j1 Thus changes in free energy at constant temperature and pressure are dictated by the chemical potential of the components in a system- will they react? Mix? Unmix? Determining equilibrium for experiments in the lab The second law defines equilibrium by the change in entropy in the entire universe. As already discussed, that’s an incredible pain when we are only really interested in what’s happening in our test tube! The Gibbs Free energy gives us a solution to this problem for the case of experiments at constant temperature and pressure. Let’s see how the Gibbs Free energy relates to the second law at equilibrium when we have typical laboratory conditions: a closed system (no exchange of molecules with the surroundings), at constant temperature and pressure. The second law defines equilibrium by: Lecture 10 – Free energies 7 of 10 2/6/16 3.012 Fundamentals of Materials Science dSuniverse 0 (Eqn 12) Fall 2003 dS = 0 mathematically means S is at an extremum (a minimum or a maximum); however, the second law also says: (Eqn 13) process dSuniverse 0 for a spontaneous S(U,V,N) dS = 0 dS = 0 U, V, or N (other variables constant) …which implies that the system has to be approaching a maximum when it reaches equilibrium. Let’s apply the second law to a system at constant temperature and pressure and see what comes out: dSuniverse dSsystem dSsurroundings 0 (Eqn 14) for a spontaneous process From the fundamental equation for the entropy, we have: dSsurroundings (Eqn 15) Tsurr Psurr dVsystem Tsurr Plugging into the second law: dSsystem (Eqn 16) o (Eqn 17) dU system dU system Tsurr Psurr dVsystem 0 Tsurr for a spontaneous process Or: T dSsystem dU system PsurrdVsystem 0 for a spontaneous process …where we’ve dropped the subscript on T (our system is at constant temperature Tsurr = Tsystem = T). Now, if we compare (Eqn 17) to the fundamental equation for the energy: Lecture 10 – Free energies 8 of 10 2/6/16 3.012 Fundamentals of Materials Science Fall 2003 P dU TdS PdV (Eqn 18) o (Eqn 19) i j j1 P C i j Or: dU TdS PdV dN i j i j j1 We thus reduce our condition for a spontaneous process to: P C dN i j (Eqn 20) i1 dN i1 i1 C i j 0 spontaneous process j1 Recalling the differential form of the Gibbs free energy at constant temperature and pressure, we can make a substitution: (Eqn 21) dG 0 spontaneous process at constant temperature and pressure (Eqn 20) and (Eqn 21) are for practical calculations perhaps the most important in thermodynamics. o In words, the second law demands that the Gibbs free energy must be lowered by the change happening to a system for that change to happen spontaneously at constant temperature and pressure. It also means that the Gibbs free energy at constant temperature and pressure is a minimum at equilibrium. Lecture 10 – Free energies 9 of 10 2/6/16 3.012 Fundamentals of Materials Science Fall 2003 References 1. 2. Dill, K. & Bromberg, S. Molecular Driving Forces (New York, 2003). Carter, W. C. (2002). Lecture 10 – Free energies 10 of 10 2/6/16