lesson

Thermal Physics · High School

The First Law of Thermodynamics

Apply energy conservation to thermodynamic systems through heat, work, internal energy, and matter-flow accounting.

The first law of thermodynamics is energy conservation applied to a carefully chosen system. It connects changes in stored internal energy with energy transferred across the system boundary by heating, work, and, in open systems, flowing matter. The equation is short, but its signs cannot be used responsibly until the system and work convention are declared. A good analysis therefore begins with a boundary diagram and a qualitative prediction before any arithmetic. This lesson develops that complete accounting method and shows how familiar thermodynamic processes emerge as constrained cases of one conservation principle.

A thermodynamic system boundary separates stored internal energy from heat and work transfers crossing the boundary.

Begin with the system boundary

A thermodynamic system is the matter or region selected for analysis. Everything outside that boundary is called the surroundings. A sealed gas in a piston, a cup of water, a battery, an engine cylinder, or an entire power plant can be selected as a system. The choice is not merely verbal because it determines which energy transfers cross the boundary and which interactions are internal. State the system before assigning signs.

A closed system contains a fixed amount of matter, although energy can still cross its boundary. An open system, also called a control volume, permits matter to enter or leave and therefore requires an additional matter-carried energy account. An isolated system exchanges neither matter nor energy with its surroundings under the ideal model. These categories describe the chosen boundary over the selected time interval. The same physical device can be analyzed with different boundaries for different questions.

Draw the boundary as a closed curve around the selected contents. Add arrows for every identified transfer and label each arrow with both mechanism and direction. Heating, shaft work, electrical work, pressure–volume work, radiation, and matter flow must not be combined prematurely into a vague “energy” arrow. This diagram makes the signs consequences of physical direction rather than guesses made after calculation. It also exposes transfers that an equation-only solution may omit.

Separate stored energy from transferred energy

Internal energy UU is energy stored in microscopic degrees of freedom within the system. It can include translational, rotational, and vibrational molecular kinetic energy, intermolecular potential energy, chemical energy, electronic energy, and nuclear energy. The relevant contributions depend on the model and process. Internal energy does not include the macroscopic kinetic or gravitational potential energy of the system as a whole when those are tracked separately. Its SI unit is the joule.

Heat QQ is energy transferred because of a temperature difference. Work WW is energy transferred through an organized macroscopic interaction such as a force through displacement, shaft rotation, electrical current through potential difference, or boundary motion against pressure. A system does not contain a quantity of heat or work after the process ends. It contains energy, while heat and work name ways energy crossed the boundary during the process. This language distinction protects the bookkeeping model.

The phrase “heat flows” is common shorthand, but rigorous interpretation remains energy transfer by heating. Temperature is not energy, and a temperature change is not identical to a heat transfer. A gas can change temperature during adiabatic compression even though Q=0JQ=0\,\mathrm{J}. It can receive heat during isothermal expansion while its temperature remains constant. Process constraints determine how transfer and storage changes relate.

Declare the work sign convention

Theory Commons uses WbyW_{\mathrm{by}} for work done by the system on its surroundings. The closed-system first law is ΔU=QWby\Delta U=Q-W_{\mathrm{by}}. The change ΔU=UfUi\Delta U=U_f-U_i is final internal energy minus initial internal energy. Positive QQ means energy enters the system by heating. Positive WbyW_{\mathrm{by}} means energy leaves the system because the system does work.

Under this convention, compression work performed by the surroundings has Wby<0W_{\mathrm{by}}<0. Subtracting a negative work transfer increases the calculated internal-energy change. Heat released by the system has Q<0Q<0. The algebra therefore mirrors boundary-arrow directions. Write the sign convention beside every first-law solution rather than assuming all readers use the same one.

Many chemistry texts define WonW_{\mathrm{on}} as work done on the system and write ΔU=Q+Won\Delta U=Q+W_{\mathrm{on}}. This form is equally correct because Won=WbyW_{\mathrm{on}}=-W_{\mathrm{by}}. A problem arises only when a work value defined under one convention is inserted into the other equation without conversion. Compare the words accompanying the symbols before comparing signs. Conservation is invariant even when bookkeeping conventions differ.

Interpret the first law as a balance

The first law can be rearranged as Q=ΔU+WbyQ=\Delta U+W_{\mathrm{by}}. In this form, heat entering the system can be divided between increased internal energy and work delivered to the surroundings. The equation does not require all three terms to be positive. It is an algebraic balance in which signs carry transfer direction. A qualitative arrow diagram should predict those signs before substitution.

Suppose a gas absorbs 500J500\,\mathrm{J} by heating and does 200J200\,\mathrm{J} of work while expanding. The first law gives ΔU=500J200J=300J\Delta U=500\,\mathrm{J}-200\,\mathrm{J}=300\,\mathrm{J}. Energy stored internally increases because inflow by heating exceeds outflow by work. The joule units match on every term. No energy has disappeared during the process.

Suppose instead that a compressor does 420J420\,\mathrm{J} of work on a sealed gas while the gas releases 150J150\,\mathrm{J} by heating its surroundings. Under the work-by convention, Q=150JQ=-150\,\mathrm{J} and Wby=420JW_{\mathrm{by}}=-420\,\mathrm{J}. Thus ΔU=150J(420J)=270J\Delta U=-150\,\mathrm{J}-(-420\,\mathrm{J})=270\,\mathrm{J}. Compression transfers more energy inward than heating transfers outward. The positive result agrees with that qualitative prediction.

Treat internal energy as a state function

Internal energy is a state function, meaning its value is determined by the equilibrium state rather than by the path taken to reach that state. If a system begins at state ii and ends at state ff, then ΔU=UfUi\Delta U=U_f-U_i has one value. Different paths between those states can involve different heat and work transfers. The first law requires their combination QWbyQ-W_{\mathrm{by}} to remain equal to the same ΔU\Delta U. This is the distinction between a state quantity and path quantities.

Temperature, pressure, volume, density, entropy, and internal energy can serve as state variables under appropriate models. Heat and work cannot be assigned as properties of one isolated equilibrium state. Notation such as UiU_i is meaningful, while “QiQ_i stored in the state” is not. One may report heat transferred during process A or work during process B. The process label supplies the path information those quantities require.

Imagine two paths connecting the same initial and final gas states. Path A may involve large work output and correspondingly large heat input, while path B may involve smaller work output and smaller heat input. Their QQ and WbyW_{\mathrm{by}} values differ, but subtracting them yields the same internal-energy change. A pressure–volume diagram can display this difference geometrically. Endpoint equality does not imply path-transfer equality.

Connect ideal-gas internal energy to temperature

For an ideal gas, internal energy depends only on temperature. For a monatomic ideal gas, U=32nRTU=\dfrac32nRT. The symbol nn is amount of substance in moles, R=8.314JmolKR=8.314\,\mathrm{\dfrac{J}{mol\,K}} is the ideal-gas constant, and TT is absolute temperature in kelvins. The dimensionless factor 32\dfrac32 reflects three translational degrees of freedom in this model. Multiplying moles, joules per mole-kelvin, and kelvins produces joules.

For a fixed amount of monatomic ideal gas, ΔU=32nRΔT\Delta U=\dfrac32nR\Delta T. A positive temperature change gives positive internal-energy change, and a negative temperature change gives negative internal-energy change. This relationship does not by itself say whether the change came from heat, work, or both. The first law identifies the boundary transfers. Temperature provides the state link.

Real substances can change internal energy without a temperature change. During melting or boiling, intermolecular potential-energy contributions change while temperature can remain constant. Polyatomic ideal gases have rotational and sometimes vibrational contributions, producing different heat capacities. The statement that UU depends only on TT is an ideal-gas result, while the coefficient connecting them depends on the active degrees of freedom. Model assumptions belong beside the formula.

Derive pressure–volume boundary work

Consider a gas pushing a piston of area AA through a small displacement dxdx. An external pressure PextP_{\mathrm{ext}} corresponds to resisting force F=PextAF=P_{\mathrm{ext}}A. The volume change is dV=AdxdV=A\,dx. Therefore the infinitesimal work done by the system is dWby=Fdx=PextdVdW_{\mathrm{by}}=F\,dx=P_{\mathrm{ext}}\,dV. Integrating over the process gives Wby=ViVfPextdVW_{\mathrm{by}}=\int_{V_i}^{V_f}P_{\mathrm{ext}}\,dV.

Expansion has dV>0dV>0 and therefore positive boundary work when pressure is positive. Compression has dV<0dV<0 and therefore negative work by the system. The relevant pressure is the pressure resisting boundary motion. During a quasistatic process, internal and external pressures differ only infinitesimally and the system passes through near-equilibrium states. During rapid irreversible change, the gas may not possess one uniform equilibrium pressure, so careless substitution of an equation of state can fail.

Pressure times volume has energy units. One pascal is 1Pa=1Nm21\,\mathrm{Pa}=1\,\mathrm{\dfrac{N}{m^2}}, so 1Pam3=1Nm=1J1\,\mathrm{Pa\,m^3}=1\,\mathrm{N\,m}=1\,\mathrm{J}. This cancellation should appear in numerical work. It confirms that the area under a pressure-versus-volume curve represents energy. It does not determine the sign, which comes from the oriented volume change.

Read work from a pressure–volume diagram

On a PPVV diagram, pressure is plotted vertically and volume horizontally. The signed area under a quasistatic process curve is WbyW_{\mathrm{by}}. An expansion path proceeds toward greater volume and gives positive oriented area. A compression path proceeds toward smaller volume and gives negative work by the system. The endpoints alone do not determine the area.

Two pressure-volume paths connect the same states but enclose different work areas.

Suppose a gas expands from 1.00×103m31.00\times10^{-3}\,\mathrm{m^3} to 3.00×103m33.00\times10^{-3}\,\mathrm{m^3} against constant pressure 2.00×105Pa2.00\times10^5\,\mathrm{Pa}. Its work is WA=(2.00×105Pa)(2.00×103m3)=400JW_A=(2.00\times10^5\,\mathrm{Pa})(2.00\times10^{-3}\,\mathrm{m^3})=400\,\mathrm{J}. At constant pressure 1.00×105Pa1.00\times10^5\,\mathrm{Pa} over the same volume change, path B gives WB=200JW_B=200\,\mathrm{J}. Both paths have the same horizontal width on the diagram. Rectangle height differs, so the areas and work transfers differ.

If the two paths connect the same equilibrium states, their internal-energy changes are equal. The first law then requires QA=ΔU+400JQ_A=\Delta U+400\,\mathrm{J} and QB=ΔU+200JQ_B=\Delta U+200\,\mathrm{J}. Path A needs 200J200\,\mathrm{J} more heat input because it sends 200J200\,\mathrm{J} more work outward. A diagram makes the path dependence concrete. Heat compensates differently while the state change remains fixed.

Analyze isochoric and isobaric processes

An isochoric process occurs at constant volume. Because dV=0dV=0, pressure–volume boundary work is zero. The closed-system first law reduces to ΔU=Q\Delta U=Q when no other work mode occurs. Heating a gas in a rigid sealed vessel therefore changes internal energy without moving a boundary. Pressure may change even though volume does not.

An isobaric process occurs at constant pressure. Boundary work becomes Wby=Pext(VfVi)W_{\mathrm{by}}=P_{\mathrm{ext}}(V_f-V_i). In expansion, some incoming heat can raise internal energy while some leaves as work. In compression, VfVi<0V_f-V_i<0 and the surroundings do work on the system. The word isobaric provides one constraint but does not imply constant temperature or zero heat transfer.

Consider a gas absorbing 500J500\,\mathrm{J} while expanding by 2.00×103m32.00\times10^{-3}\,\mathrm{m^3} against 1.00×105Pa1.00\times10^5\,\mathrm{Pa}. It does Wmathrmby=(1.00×105Pa)(2.00×103m3)=200JW_{mathrm{by}}=(1.00\times10^5\,\mathrm{Pa})(2.00\times10^{-3}\,\mathrm{m^3})=200\,\mathrm{J}. The internal-energy change is 300J300\,\mathrm{J}. If the same heat entered a rigid vessel, the full 500J500\,\mathrm{J} would increase internal energy under the simplified model. The process constraint changes the allocation.

Analyze isothermal and adiabatic processes

An isothermal process occurs at constant temperature. For an ideal gas, internal energy depends only on temperature, so ΔU=0J\Delta U=0\,\mathrm{J}. The first law then gives Q=WbyQ=W_{\mathrm{by}}. During isothermal expansion, heat enters while the gas does equal work. Isothermal does not mean no energy crosses the boundary.

For reversible isothermal expansion of an ideal gas, Wby=nRTln ⁣(VfVi)W_{\mathrm{by}}=nRT\ln\!\left(\dfrac{V_f}{V_i}\right). The natural logarithm acts on the dimensionless ratio VfVi\dfrac{V_f}{V_i}. If Vf>ViV_f>V_i, the logarithm and work are positive. For compression, the ratio is below one and work by the gas is negative. The formula follows from integrating P=nRTVP=\dfrac{nRT}{V} at constant TT.

An adiabatic process has Q=0JQ=0\,\mathrm{J}. The first law becomes ΔU=Wby\Delta U=-W_{\mathrm{by}}. Ideal-gas adiabatic expansion produces positive work and negative internal-energy change, so temperature falls. Adiabatic compression gives negative work by the gas and positive internal-energy change, so temperature rises. Adiabatic and isothermal describe different constraints.

Distinguish heat capacity and latent energy

For a temperature change without phase change, a common model is Q=mcΔTQ=mc\Delta T. The mass mm is measured in kilograms, specific heat capacity cc in JkgK\mathrm{\dfrac{J}{kg\,K}}, and temperature change in kelvins or Celsius degrees. The product has joule units. This equation calculates a heat transfer under stated conditions, not the complete first-law balance by itself. Work may also occur.

At constant volume for an ideal gas, QV=nCVΔTQ_V=nC_V\Delta T and Wmathrmby=0W_{mathrm{by}}=0, so ΔU=nCVΔT\Delta U=nC_V\Delta T. At constant pressure, QP=nCPΔTQ_P=nC_P\Delta T while expansion work also occurs. Consequently CP>CVC_P>C_V for an ideal gas. The difference reflects energy leaving through boundary work during constant-pressure heating. Heat capacity depends on the process constraint.

During a phase change at approximately constant temperature, heat transfer can be modeled as Q=mLQ=mL, where LL is specific latent energy in Jkg\mathrm{\dfrac{J}{kg}}. Internal energy changes through molecular rearrangement even when ΔT=0K\Delta T=0\,\mathrm{K}. Temperature alone is therefore not a complete measure of stored energy. The phase must be included among the state descriptors. The first law accommodates sensible heating, latent processes, and work within one balance.

Analyze cycles and heat engines

A thermodynamic cycle returns a system to its initial state. Because internal energy is a state function, ΔUcycle=0J\Delta U_{\mathrm{cycle}}=0\,\mathrm{J}. The first law gives Qnet=Wnet,byQ_{\mathrm{net}}=W_{\mathrm{net,by}}. Net heat entering over the cycle equals net work delivered. Individual legs can have nonzero internal-energy changes that cancel around the full path.

On a PPVV diagram, net cyclic work is the signed area enclosed by the loop. A clockwise loop ordinarily represents positive net work by the gas. A counterclockwise loop represents net work input under the same axis orientation. Shape and direction both matter. The system returns to its original internal energy even though energy has crossed its boundary throughout the cycle.

A heat engine receives heat, delivers part as work, and rejects the remainder while returning cyclically to its initial state.

A heat engine absorbs QHQ_H from a hot reservoir, performs net work WnetW_{\mathrm{net}}, and rejects QCQ_C to a colder reservoir. Magnitudes satisfy QH=Wnet+QCQ_H=W_{\mathrm{net}}+Q_C. The first law requires this accounting but does not determine the maximum possible work fraction. The second law supplies directionality and efficiency limits. Energy conservation alone cannot distinguish a physically reversible engine from an impossible perfect converter.

Analyze refrigerators and heat pumps

A refrigerator uses work input to move energy from a colder region to a warmer environment. For one cycle, energy accounting in magnitudes is QH=QC+WinQ_H=Q_C+W_{\mathrm{in}}. The device removes QCQ_C from the cold space and rejects the larger amount QHQ_H to the warm surroundings. The first law explains why the rear coils release more energy than was removed from the compartment. Work input supplies the difference.

A heat pump uses the same physical cycle but is evaluated for heating the warm space. Its desired transfer is QHQ_H, whereas a refrigerator’s desired transfer is QCQ_C. Coefficients of performance compare desired heat transfer with work input. They can exceed one because they are not thermal efficiencies and because the device moves existing energy in addition to converting work. No conservation law is violated.

Opening a refrigerator door cannot cool a closed room overall. The device removes energy from air near its interior but releases that energy plus electrical work into the same room. Net room internal energy rises. Drawing the room boundary makes this conclusion immediate. System choice prevents a locally cold region from being mistaken for global cooling.

Extend the balance to open systems

When matter crosses a boundary, it carries energy with it. A control-volume balance must include mass-flow contributions in addition to heat and work. In steady-flow devices, incoming and outgoing rates can be compared rather than total amounts over an arbitrary interval. Enthalpy h=u+Pvh=u+Pv packages internal energy and the flow work required to push matter across a boundary. Here lowercase symbols denote specific energy per unit mass.

A simplified steady-flow balance for one inlet and one outlet is Q˙W˙s=m˙[(h2h1)+v22v122+g(z2z1)]\dot Q-\dot W_s=\dot m\left[(h_2-h_1)+\dfrac{v_2^2-v_1^2}{2}+g(z_2-z_1)\right]. A dot denotes a rate per unit time, m˙\dot m is mass-flow rate, W˙s\dot W_s is shaft-work output, vv is flow speed, and zz is elevation. Subscripts 11 and 22 label inlet and outlet states. Every bracketed term has units Jkg\mathrm{\dfrac{J}{kg}}. Multiplying by kgs\mathrm{\dfrac{kg}{s}} gives watts.

Turbines, compressors, nozzles, pumps, and heat exchangers are naturally treated as open systems. Different devices permit different terms to be neglected after scale analysis. A nozzle often converts enthalpy change into kinetic energy, while a turbine produces shaft work from a flowing fluid’s energy decrease. The full balance should be written before terms are crossed out. Approximation follows physical reasoning rather than device-name memorization.

Use a systematic accounting workflow

First name the system and interval. Decide whether matter crosses the boundary, draw the boundary, and label every heat, work, and flow arrow. State the work convention beside the governing equation. Identify initial and final states and any process constraints. Predict the signs of transfers and storage changes in words.

Next write the most general relevant balance before applying constraints. Set a term to zero only because a stated condition justifies it, such as Q=0Q=0 for adiabatic behavior or WPV=0W_{PV}=0 for rigid volume. Solve symbolically so sign structure remains visible. Substitute values with units and keep pressure, volume, energy, and temperature units compatible. Distinguish a transfer magnitude from an algebraic signed value.

Finally test the result. Confirm units, boundary-arrow directions, and energy balance. For an ideal gas, compare the sign of ΔU\Delta U with the sign of ΔT\Delta T. For a cycle, confirm total state-function change is zero. A physically contradictory sign should trigger review before the answer is reported.

Repair common misconceptions

A common mistake is saying that a system “contains heat.” The system stores internal energy, while heat describes a temperature-difference-driven transfer. Another mistake is assuming a temperature increase proves Q>0Q>0. Adiabatic compression raises temperature with zero heat transfer. Isothermal expansion can receive heat without a temperature increase. Mechanism and state change must remain distinct.

A second mistake is switching work conventions midcalculation. Write either ΔU=QWby\Delta U=Q-W_{\mathrm{by}} or ΔU=Q+Won\Delta U=Q+W_{\mathrm{on}}, define the work symbol, and use it consistently. A negative result is often meaningful rather than an error. Retain the algebraic sign rather than replacing it with an absolute value. Translate signs back into boundary directions after solving.

A third mistake is using PΔVP\Delta V for every process. That shortcut requires constant resisting pressure. Variable-pressure quasistatic work requires an integral, and rapid irreversible processes require careful boundary-pressure modeling. Process names do not erase path dependence. The pressure–volume diagram should agree with the chosen calculation.

Practice with units and interpretation

A system absorbs 80.0J80.0\,\mathrm{J} by heating and does 30.0J30.0\,\mathrm{J} of work. Under the work-by convention, ΔU=80.0J30.0J=+50.0J\Delta U=80.0\,\mathrm{J}-30.0\,\mathrm{J}=+50.0\,\mathrm{J}. Internal energy increases because net transfer is inward. State which arrow enters and which leaves the system. Explain why both heat and work can be positive in the same process.

A gas releases 240J240\,\mathrm{J} while 600J600\,\mathrm{J} of work is done on it. Thus Q=240JQ=-240\,\mathrm{J} and Wby=600JW_{\mathrm{by}}=-600\,\mathrm{J}. The first law gives ΔU=240J(600J)=+360J\Delta U=-240\,\mathrm{J}-(-600\,\mathrm{J})=+360\,\mathrm{J}. The gas loses energy through heating but gains more through compression work. Predict the likely ideal-gas temperature-change sign.

A gas expands at 1.50×105Pa1.50\times10^5\,\mathrm{Pa} from 2.00×103m32.00\times10^{-3}\,\mathrm{m^3} to 5.00×103m35.00\times10^{-3}\,\mathrm{m^3} while internal energy rises by 120J120\,\mathrm{J}. Work is Wby=(1.50×105Pa)(3.00×103m3)=450JW_{\mathrm{by}}=(1.50\times10^5\,\mathrm{Pa})(3.00\times10^{-3}\,\mathrm{m^3})=450\,\mathrm{J}. Rearrangement gives Q=ΔU+Wby=570JQ=\Delta U+W_{\mathrm{by}}=570\,\mathrm{J}. Explain why heat input must exceed the internal-energy increase. Verify that Pam3\mathrm{Pa\,m^3} reduces to joules.

Consolidate the first-law framework

The first law is an accounting identity grounded in energy conservation. For a closed system using work done by the system, ΔU=QWby\Delta U=Q-W_{\mathrm{by}}. Internal energy is stored and state-dependent, while heat and work are path-dependent transfers. The system boundary and sign convention give every term meaning. Without them, a correct-looking equation can represent the wrong physical story.

Process constraints simplify the balance. Isochoric means zero pressure–volume boundary work, isobaric permits PΔVP\Delta V, isothermal ideal-gas motion gives zero internal-energy change, and adiabatic means zero heat transfer. Cycles give zero net state-function change while permitting net heat and work. Open systems add energy carried by matter. These are branches of one framework rather than unrelated formulas.

Strong thermodynamic reasoning moves among boundary diagrams, words, equations, units, and process graphs. It predicts signs before arithmetic and checks that energy entering, leaving, and remaining is fully accounted for. The first law states what energy amounts must balance, while the second law will add direction and quality constraints. Conservation is necessary, but it is not the entire thermodynamic story. Mastering the accounting framework makes that later distinction much clearer.

Knowledge Map

Where this lesson fits

Prerequisites

Thermal PhysicsHeat and Internal EnergyWork and EnergyWork by a Constant Force

Next lessons

Thermal PhysicsThe Second Law and Entropy

Continue exploring

Connections

Related lessons

Work and EnergyNonconservative WorkThermal PhysicsThe Second Law and Entropy

Applications

  • engines
  • refrigerators
  • gas compression
  • calorimetry
  • energy-system analysis