{"id":1516,"date":"2021-02-26T23:30:20","date_gmt":"2021-02-27T04:30:20","guid":{"rendered":"http:\/\/underthehood.blogwyrm.com\/?p=1516"},"modified":"2022-07-28T06:28:23","modified_gmt":"2022-07-28T10:28:23","slug":"thermodynamic-partials-maxwells-relation","status":"publish","type":"post","link":"https:\/\/underthehood.blogwyrm.com\/?p=1516","title":{"rendered":"Thermodynamic Partials &#8211; Maxwell&#8217;s Relation"},"content":{"rendered":"\n<p>Last month\u2019s installment presented a clean derivation of the classic relations between partial derivatives and showed a simple example of how they work in the concrete.&nbsp; As nice as that presentation is, the real power of these relations is only realized when dealing with systems with a large number of variables in play and in which various manipulations are required to extract meaning from the systems involved.&nbsp; The prototypical example is classical thermodynamics.&nbsp; &nbsp;<\/p>\n\n\n\n<p>The fundamental concept in thermodynamics is the existence of a <a rel=\"noreferrer noopener\" href=\"https:\/\/en.wikipedia.org\/wiki\/Thermodynamic_potential\" target=\"_blank\">thermodynamic potential<\/a>, which is a scalar function that encodes the state of the thermodynamic system in terms of the measurable quantities that describe the system, such as volume or temperature.&nbsp; Changes in the values, these independent physical variables (sometimes called the natural variables), relate directly to the potential of the corresponding partial derivatives.&nbsp;<\/p>\n\n\n\n<p>The textbook example of this type of relation is defined in the first law of thermodynamics, which asserts that there exists a function, called the internal energy $$U$$, that is a function of the entropy $$S$$, the volume $$V$$, and the number of particles $$N$$ making up the physical system being modeled (assuming a single type of substance; generalizations to multiple species is straightforward but cumbersome).&nbsp; Changes in the internal energy $$U$$ can be calculated by<\/p>\n\n\n\n<p>\\[ dU = T dS \u2013 P dV + \\mu dN \\; ,\\]<\/p>\n\n\n\n<p>where the temperature, pressure and chemical potential are defined as<\/p>\n\n\n\n<p>\\[ {T} = \\left( \\frac{\\partial U}{\\partial S} \\right)_{V,N} \\; , \\]<\/p>\n\n\n\n<p>\\[ {P} = -\\left( \\frac{\\partial U}{\\partial V} \\right)_{S,N} \\; , \\]<\/p>\n\n\n\n<p>and<\/p>\n\n\n\n<p>\\[ {\\mu} = \\left( \\frac{\\partial U}{\\partial N} \\right)_{S,V} \\; , \\]<\/p>\n\n\n\n<p>respectively.<\/p>\n\n\n\n<p>Without dwelling on the theory, suffice it to stay that laboratory conditions vary and there are many circumstances where it is preferable to work with a different set of independent variables.&nbsp; For example, heating water on a stove top in an uncovered pan is better understood in terms of fixed pressure rather than fixed volume.&nbsp;<\/p>\n\n\n\n<p>Thermodynamics supplies an approach for dealing with these cases using the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Legendre_transformation\">Legendre transformation<\/a>.&nbsp; In the stove-top experiment mentioned above, the appropriate potential is called the enthalpy, defined as<\/p>\n\n\n\n<p>\\[ H = U + PV \\; . \\]<\/p>\n\n\n\n<p>Taking the first differential gives<\/p>\n\n\n\n<p>\\[ dH = dU + P dV + V dP \\\\ = T dS \u2013 P dV + \\mu dN + P dV + V dP  \\\\ = T dS + V dP + \\mu dN \\; , \\]<\/p>\n\n\n\n<p>which demonstrates that $$H = H(S,V,N)$$.<\/p>\n\n\n\n<p>Assuming that the order of differentiation can be exchanged, there are several relationships that exist (called <a href=\"https:\/\/en.wikipedia.org\/wiki\/Maxwell_relations\">Maxwell relations<\/a>) between various partial derivatives.&nbsp; For example:<\/p>\n\n\n\n<p>\\[ \\left( \\frac{\\partial T}{\\partial V} \\right)_{S,N} = \\left( \\frac{\\partial \u00a0}{\\partial V } \\left( \\frac{\\partial U}{\\partial S} \\right)_{V,N} \\right)_{S,N} \\\\ = \\left( \\frac{\\partial }{\\partial S} \\left( \\frac{\\partial U}{\\partial V} \\right)_{S,N} \\right)_{V,N} \\\\ = -\\left( \\frac{\\partial P}{\\partial S} \\right)_{V,N} \\; . \\]<\/p>\n\n\n\n<p>Obviously, there is a lot of notational overhead in the above relation.&nbsp; For the sake of this analysis, we will make two simplifications to improve the clarity.&nbsp; First, we will assume a single species with a fixed number of moles.&nbsp; This assumption removes the need to carry $$N$$ and $$\\mu$$.&nbsp; Second, we will forego keeping track of the other variables being held constant.&nbsp; Since we will be tacitly tracking which thermodynamic potential is being used, there is little chance of confusion.<\/p>\n\n\n\n<p>The primary purpose the Maxwell relations serve is to eliminate terms involving the entropy in favor of physical parameters that can be experimentally measured, such as temperature, volume, or pressure.<\/p>\n\n\n\n<p>A useful mnemonic exists for looking up the various relations without scanning through a table.&nbsp; It\u2019s called the thermodynamic square, and it&#8217;s constructed as below<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/thermodynamic-square.png\" alt=\"\" class=\"wp-image-1515\" width=\"400\" height=\"400\" srcset=\"https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/thermodynamic-square.png 857w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/thermodynamic-square-300x300.png 300w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/thermodynamic-square-150x150.png 150w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/thermodynamic-square-810x813.png 810w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/thermodynamic-square-54x54.png 54w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure><\/div>\n\n\n\n<p>The 4 most important thermodynamic potentials, the Helmholtz free energy $$F = U &#8211; TS$$, the Gibbs free energy $$G = U + PV &#8211; TS$$, the enthalpy $$H = U + PV$$, and the internal energy $$U$$, are arranged along the edges starting up at the top and going clockwise.&nbsp; The thermodynamic variables \u2013 the temperature $$T$$, the pressure $$P$$, the entropy $$S$$, and the volume $$V$$ \u2013 are arranged at the corners, starting just after $$F$$ and also going clockwise.&nbsp; The Maxwell relations relate a partial derivative expressed in terms of three consecutive corners (shaded blue below) to the partial derivative expressed in terms another three consecutive corners (shaded yellow).&nbsp; The arrows lying along the diagonal set the sign of the partial derivative based on which variable is in the numerator:&nbsp; those with the arrowhead positive and those without negative.&nbsp;<\/p>\n\n\n\n<p>These rules are far easier to understand with the mixed partial derivatives of $$U$$ discussed above.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"540\" src=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_u_large-1024x540.png\" alt=\"\" class=\"wp-image-1514\" srcset=\"https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_u_large-1024x540.png 1024w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_u_large-300x158.png 300w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_u_large-768x405.png 768w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_u_large-810x427.png 810w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_u_large.png 1100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The blue shaded region reads counterclockwise while the yellow region reads clockwise.&nbsp; These orientations follow from the overlap they share on the left-hand side of the square (the one labeled $$U$$).&nbsp; The signs are determined by the arrows.&nbsp; Since the $$T$$ corner is the numerator and it has an arrowhead, the partial derivative is positive.&nbsp; Likewise, since the $$P$$ corner is the numerator and it lacks an arrowhead, the partial derivative is negative.<\/p>\n\n\n\n<p>Once the basic operations using the square are understood, it is easier to present a single square with the common side being both shaded in blue and yellow, resulting in green.&nbsp; An example for the Maxwell relations coming from the Helmholtz free energy $$F$$ being<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_f.png\" alt=\"\" class=\"wp-image-1510\" width=\"433\" height=\"433\" srcset=\"https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_f.png 857w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_f-300x300.png 300w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_f-150x150.png 150w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_f-768x768.png 768w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_f-810x810.png 810w, https:\/\/underthehood.blogwyrm.com\/wp-content\/uploads\/2021\/02\/Thermo_square_f-54x54.png 54w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/figure><\/div>\n\n\n\n<p>With these tools, we can get to the meatier topics, namely using a combination of the classical rules for partial derivatives and the Maxwell relations, as presented in the thermodynamic square, to eliminate the entropy in favor of physically measurable quantities.&nbsp; But this will be the topic for next month\u2019s post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last month\u2019s installment presented a clean derivation of the classic relations between partial derivatives and showed a simple example of how they work in the concrete.&nbsp; As nice as that&#8230; <a class=\"read-more-button\" href=\"https:\/\/underthehood.blogwyrm.com\/?p=1516\">Read more &gt;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1516","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/1516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1516"}],"version-history":[{"count":15,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/1516\/revisions"}],"predecessor-version":[{"id":1768,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/1516\/revisions\/1768"}],"wp:attachment":[{"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underthehood.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}