First law of thermodynamics Created 2026-09-24 Updated 2026-10-14
The first law applies conservation of energy to a thermodynamic system. For a closed system with unchanged bulk kinetic energy and potential energy, write
Here is internal energy, is heat entering the system and is work done by the system on its surroundings. Compression therefore gives negative . Some references define work positive when done on the system; their plus sign represents the same balance with a different convention. If bulk kinetic energy or potential energy changes, include it in the total energy balance. [ref]
Supplying of heat while a gas does of work increases its internal energy by . Compressing it with of input work in an adiabatic process instead gives , and .
The distinction between and records state versus path: internal energy is a state function, whereas heat and work depend on the process. For an ideal gas expanding reversibly at constant temperature, and , since internal energy of an ideal gas depends only on temperature. Choose and : then . An insulated free expansion into vacuum between the same equilibrium endpoints has . Both have , yet their transfers differ. Their common entropy increase is . [ref]
For a simple compressible equilibrium system of fixed composition, combining the laws gives
Here is pressure and is volume. This identity relates neighboring equilibrium states. Identifying with actual heat and with actual work requires a suitable reversible thermodynamic process; an irreversible piston calculation uses the external resisting pressure for boundary work. This distinction prevents applying a reversible ideal-gas adiabat to an irreversible adiabatic piston compression.
For an inviscid fluid with specific internal energy , let . In a prescribed potential , , where is external heat supply. A static gravitational potential can instead be included in the conserved energy.
Fourier series Created 2026-09-24 Updated 2026-10-13
A Fourier series describes a periodic function through sines and cosines whose frequencies are integer multiples of one base frequency. These Fourier harmonics give a useful alternative to describing the value at every input: each Fourier coefficient measures how much of one oscillating pattern is present. For a real, integrable function of period , the real form is
The cosine formula includes ; the sine formula uses . Thus is the mean value over a period, not itself. The symbol associates a function with its Fourier coefficients; an equality requires a specified kind of convergence, such as pointwise convergence. For general period , replace by and the coefficient prefactor by . Fourier orthogonality explains why integrating against one mode removes the others. [ref].
For a finite example, take
Its mean is , its real Fourier coefficients are , , , and all other vanish. At , the three contributions add to . The function is already a trigonometric polynomial, so retaining these modes reconstructs it exactly. Here is an angular coordinate in radians; if it instead represents time, a base angular frequency must supply the corresponding units.
Figure 1.
Three simple components reconstruct a periodic signal exactly
. The constant function , the cosine , and the sine add to the displayed trigonometric polynomial. The marked input has output . Each contribution can be measured separately by its Fourier coefficient. Details.
The change of viewpoint is useful because many linear problems act separately on these modes. The second derivative maps to and maps in the same way. Consequently a differential equation that is complicated for a whole profile can become a simpler calculation for each Fourier harmonic. A linear time-invariant system similarly has a separate response to each complex exponential. Superposition combines the responses when the relevant sums and operations are justified. [ref].
The infinite case contains a subtlety absent from the finite example. Under pointwise convergence of a piecewise smooth Fourier series, the value at a jump discontinuity is the average of the two one-sided limits. For a square-integrable function, the complex Fourier series instead converges in the norm: the integrated squared error tends to zero. Neither statement says that the error becomes small everywhere at once. A square wave shows the difference vividly through the Gibbs phenomenon.
A historical source for this connection between profiles and modes is Joseph Fourier's 1822 book Théorie analytique de la chaleur. Chapter III develops expansions in sines and cosines while studying the propagation of heat. The heat equation gives a continuing application of this approach. [ref].
Fourier's law Created 2026-09-24 Updated 2026-09-24
Fourier's law relates the conductive heat-flux density to the temperature gradient by .
Free expansion Created 2026-10-14 Updated 2026-10-14
Free expansion occurs when a gas spreads into an initially evacuated region without driving an external load. The standard idealization uses a rigid, insulated vessel: initially a partition confines the gas to volume , while the remaining compartment contains vacuum. Open a passage and wait for thermodynamic equilibrium; the same fixed amount of substance now occupies the larger accessible volume . The outer vessel never changes size. This simple release separates three questions: what energy is conserved, whether temperature changes, and why entropy increases. [ref]
Figure 1.
Free expansion changes the accessible volume; the apparatus affects the observed temperature
. Original schematic, with equal compartments chosen for illustration. The top row assumes an insulated gas with negligible wall heat capacity. The bottom left sketches the water-bath arrangement of Joule's free-expansion experiment, rather than a reconstruction to scale. The bottom right uses stipulated heat capacities and an illustrative energy demand to show signal suppression; it contains no measured data. Details.
Choose the gas as the closed system, neglect heat exchange with the walls, and assume negligible changes in bulk kinetic energy and potential energy between the equilibrium endpoints. Insulation gives ; no moving outer boundary or external load receives work, so . The first law of thermodynamics therefore gives
The gas can develop internal motion during the release; this does not supply external work. The intermediate state need not have one equilibrium pressure or temperature, so there is no actual quasistatic process curve to integrate. In particular, substituting the equilibrium ideal gas law into would describe a different process. [ref]
For an ideal gas, internal energy of an ideal gas depends only on temperature. With positive heat capacity at constant volume, implies , and the ideal gas law gives . Doubling the accessible volume thus halves the final pressure without changing the final temperature. This is an endpoint statement; it does not assert a spatially uniform, constant temperature during the rush. Insulation alone does not imply constant temperature: a reversible adiabatic expansion cools an ideal gas because it supplies work. [ref]
For a real gas, can depend on volume as well as temperature, so unchanged internal energy need not mean unchanged temperature. For a fixed-composition simple compressible system in a single thermodynamic phase, equilibrium identities using a Maxwell relation give
Here is the whole sample's heat capacity at constant volume. The sign depends on the equation of state; for an ideal gas the numerator vanishes. For a finite free expansion, solve , or integrate this slope along equilibrium states of equal internal energy; that mathematical curve does not describe the actual release. [ref]
Free expansion is useful because it tests how internal energy depends on number density while eliminating external expansion work. Its beautiful surprise is that an ideal gas can finish with the same temperature and internal energy but greater entropy: a thermometer alone cannot diagnose reversibility. See entropy change in free expansion for the calculation and temperature sensitivity of a free-expansion experiment for the experimental qualification. The continuous-flow throttling associated with the Joule-Thomson coefficient has a different balance: under its usual assumptions it preserves enthalpy, whereas the gas-only idealization here preserves internal energy. [ref]
Heat Created 2026-09-24 Updated 2026-10-14
Heat is energy transferred across a thermodynamic system's boundary because of a temperature difference. It is measured in joules, like work and internal energy. A hot cup transfers heat to cooler surroundings; its temperature describes its state, while the transferred heat describes a process. The cup stores internal energy, rather than a substance called heat. [ref]
For a closed system with unchanged bulk kinetic energy and potential energy, choose for heat entering and for work done by the system. The first law of thermodynamics gives
Here is the stored internal energy. For example, a sealed piston cylinder receiving of heat and delivering of work gains of internal energy. A closed system retains its matter while exchanging energy; it need not be an isolated system. [ref]
Figure 1.
Heat input and work output determine the internal energy increase
. The dashed boundary encloses a closed system in a sealed piston cylinder. The incoming arrow carries of heat; the outgoing arrow carries of work done by the system. With unchanged bulk kinetic energy and potential energy, . No matter crosses the boundary. Details.
Unlike internal energy, heat is not a state function: different paths between the same equilibrium states can transfer different , with compensating differences in work. The symbol records this dependence on the path; there is no stored quantity whose difference is always . The two paths in first law of thermodynamics illustrate this directly. Supplied heat can raise temperature as sensible heat, change a phase fraction through latent heat, or help supply expansion work. Measuring temperature alone therefore does not determine transferred heat.
For a reversible thermodynamic process, , where is absolute temperature and is entropy. This identification requires reversibility: an irreversible adiabatic process has and can nevertheless increase entropy. Likewise , with enthalpy , requires the particular fixed-pressure conditions in enthalpy. These distinctions make heat useful as a precise boundary-transfer quantity in heat engines, refrigerators and heating calculations.
Historically, James Prescott Joule's paddle experiments showed that stirring water with input work could raise its temperature, helping establish conservation of energy. The lesson is still useful: a temperature rise can result from work even without incoming heat. [ref]