The law of conservation of energy is an empirical law of physics. It states that the total amount of energy in an isolated system remains constant over time (is said to be conserved over time). A consequence of this law is that energy can neither be created nor destroyed, it can only be transformed from one state to another. The only thing that can happen to energy in a closed system is that it can change form, for instance chemical energy can become kinetic energy.
Albert Einstein's theory of relativity shows that energy and mass are the same thing, and that neither one appears without the other. Thus in closed systems, both mass and energy are conserved separately, just as was understood in prerelativistic physics. The new feature of relativistic physics is that "matter" particles (such as those constituting atoms) could be converted to nonmatter forms of energy, such as light; or kinetic and potential energy (example: heat). However, this conversion does not affect the total mass of systems, since the latter forms of nonmatter energy still retain their mass through any such conversion.^{[1]}
Today, conservation of “energy” refers to the conservation of the total system energy over time. This energy includes the energy associated with the rest mass of particles and all other forms of energy in the system. In addition the invariant mass of systems of particles (the mass of the system as seen in its center of mass inertial frame, such as the frame in which it would need to be weighed), is also conserved over time for any single observer, and (unlike the total energy) is the same value for all observers. Therefore, in an isolated system, although matter (particles with rest mass) and "pure energy" (heat and light) can be converted to one another, both the total amount of energy and the total amount of mass of such systems remain constant over time, as seen by any single observer. If energy in any form is allowed to escape such systems (see binding energy) the mass of the system will decrease in correspondence with the loss.
A consequence of the law of energy conservation is that perpetual motion machines can only work perpetually if they deliver no energy to their surroundings. If such machines produce more energy than is put into them, they must lose mass and thus eventually disappear over perpetual time, and are therefore not possible.
Contents 
Ancient philosophers as far back as Thales of Miletus had inklings of the conservation of which everything is made. However, there is no particular reason to identify this with what we know today as "massenergy" (for example, Thales thought it was water). In 1638, Galileo published his analysis of several situations—including the celebrated "interrupted pendulum"—which can be described (in modern language) as conservatively converting potential energy to kinetic energy and back again. It was Gottfried Wilhelm Leibniz during 1676–1689 who first attempted a mathematical formulation of the kind of energy which is connected with motion (kinetic energy). Leibniz noticed that in many mechanical systems (of several masses, m_{i} each with velocity v_{i} ),
was conserved so long as the masses did not interact. He called this quantity the vis viva or living force of the system. The principle represents an accurate statement of the approximate conservation of kinetic energy in situations where there is no friction. Many physicists at that time held that the conservation of momentum, which holds even in systems with friction, as defined by the momentum:
was the conserved vis viva. It was later shown that, under the proper conditions, both quantities are conserved simultaneously such as in elastic collisions.
It was largely engineers such as John Smeaton, Peter Ewart, Karl Hotzmann, GustaveAdolphe Hirn and Marc Seguin who objected that conservation of momentum alone was not adequate for practical calculation and who made use of Leibniz's principle. The principle was also championed by some chemists such as William Hyde Wollaston. Academics such as John Playfair were quick to point out that kinetic energy is clearly not conserved. This is obvious to a modern analysis based on the second law of thermodynamics but in the 18th and 19th centuries, the fate of the lost energy was still unknown. Gradually it came to be suspected that the heat inevitably generated by motion under friction, was another form of vis viva. In 1783, Antoine Lavoisier and PierreSimon Laplace reviewed the two competing theories of vis viva and caloric theory.^{[2]} Count Rumford's 1798 observations of heat generation during the boring of cannons added more weight to the view that mechanical motion could be converted into heat, and (as importantly) that the conversion was quantitative and could be predicted (allowing for a universal conversion constant between kinetic energy and heat). Vis viva now started to be known as energy, after the term was first used in that sense by Thomas Young in 1807.
The recalibration of vis viva to
which can be understood as finding the exact value for the kinetic energy to work conversion constant, was largely the result of the work of GaspardGustave Coriolis and JeanVictor Poncelet over the period 1819–1839. The former called the quantity quantité de travail (quantity of work) and the latter, travail mécanique (mechanical work), and both championed its use in engineering calculation.
In a paper Über die Natur der Wärme, published in the Zeitschrift für Physik in 1837, Karl Friedrich Mohr gave one of the earliest general statements of the doctrine of the conservation of energy in the words: "besides the 54 known chemical elements there is in the physical world one agent only, and this is called Kraft [energy or work]. It may appear, according to circumstances, as motion, chemical affinity, cohesion, electricity, light and magnetism; and from any one of these forms it can be transformed into any of the others."
A key stage in the development of the modern conservation principle was the demonstration of the mechanical equivalent of heat. The caloric theory maintained that heat could neither be created nor destroyed but conservation of energy entails the contrary principle that heat and mechanical work are interchangeable.
The mechanical equivalence principle was first stated in its modern form by the German surgeon Julius Robert von Mayer.^{[3]} Mayer reached his conclusion on a voyage to the Dutch East Indies, where he found that his patients' blood was a deeper red because they were consuming less oxygen, and therefore less energy, to maintain their body temperature in the hotter climate. He had discovered that heat and mechanical work were both forms of energy, and later, after improving his knowledge of physics, he calculated a quantitative relationship between them.
Meanwhile, in 1843 James Prescott Joule independently discovered the mechanical equivalent in a series of experiments. In the most famous, now called the "Joule apparatus", a descending weight attached to a string caused a paddle immersed in water to rotate. He showed that the gravitational potential energy lost by the weight in descending was equal to the thermal energy (heat) gained by the water by friction with the paddle.
Over the period 1840–1843, similar work was carried out by engineer Ludwig A. Colding though it was little known outside his native Denmark.
Both Joule's and Mayer's work suffered from resistance and neglect but it was Joule's that, perhaps unjustly, eventually drew the wider recognition.
In 1844, William Robert Grove postulated a relationship between mechanics, heat, light, electricity and magnetism by treating them all as manifestations of a single "force" (energy in modern terms). Grove published his theories in his book The Correlation of Physical Forces.^{[4]} In 1847, drawing on the earlier work of Joule, Sadi Carnot and Émile Clapeyron, Hermann von Helmholtz arrived at conclusions similar to Grove's and published his theories in his book Über die Erhaltung der Kraft (On the Conservation of Force, 1847). The general modern acceptance of the principle stems from this publication.
In 1877, Peter Guthrie Tait claimed that the principle originated with Sir Isaac Newton, based on a creative reading of propositions 40 and 41 of the Philosophiae Naturalis Principia Mathematica. This is now generally regarded as nothing more than an example of Whig history.
Entropy is a function of a quantity of heat which shows the possibility of conversion of that heat into work.
Laws of thermodynamics 

Zeroth Law 
First Law 
Second Law 
Third Law 
Fundamental Relation 
For a thermodynamic system with a fixed number of particles, the first law of thermodynamics may be stated as:
where δQ is the amount of energy added to the system by a heating process, δW is the amount of energy lost by the system due to work done by the system on its surroundings and dU is the change in the internal energy of the system.
The δ's before the heat and work terms are used to indicate that they describe an increment of energy which is to be interpreted somewhat differently than the dU increment of internal energy (see Inexact differential). Work and heat are processes which add or subtract energy, while the internal energy U is a particular form of energy associated with the system. Thus the term "heat energy" for δQ means "that amount of energy added as the result of heating" rather than referring to a particular form of energy. Likewise, the term "work energy" for δW means "that amount of energy lost as the result of work". The most significant result of this distinction is the fact that one can clearly state the amount of internal energy possessed by a thermodynamic system, but one cannot tell how much energy has flowed into or out of the system as a result of its being heated or cooled, nor as the result of work being performed on or by the system. In simple terms, this means that energy cannot be created or destroyed, only converted from one form to another.
For a simple compressible system, the work performed by the system may be written
where P is the pressure and dV is a small change in the volume of the system, each of which are system variables. The heat energy may be written
where T is the temperature and dS is a small change in the entropy of the system. Temperature and entropy are also system variables.
In mechanics, conservation of energy is usually stated as
where T is kinetic and V potential energy.
Actually this is the particular case of the more general conservation law
where L is the Lagrangian function. For this particular form to be valid, the following must be true:
The conservation of energy is a common feature in many physical theories. From a mathematical point of view it is understood as a consequence of Noether's theorem, which states every symmetry of a physical theory has an associated conserved quantity; if the theory's symmetry is time invariance then the conserved quantity is called "energy". The energy conservation law is a consequence of the shift symmetry of time; energy conservation is implied by the empirical fact that the laws of physics do not change with time itself. Philosophically this can be stated as "nothing depends on time per se". In other words, if the theory is invariant under the continuous symmetry of time translation then its energy (which is canonical conjugate quantity to time) is conserved. Conversely, theories which are not invariant under shifts in time (for example, systems with time dependent potential energy) do not exhibit conservation of energy – unless we consider them to exchange energy with another, external system so that the theory of the enlarged system becomes time invariant again. Since any timevarying theory can be embedded within a timeinvariant metatheory energy conservation can always be recovered by a suitable redefinition of what energy is. Thus conservation of energy for finite systems is valid in all modern physical theories, such as special and general relativity^{[citation needed]} and quantum theory (including QED).
With the discovery of special relativity by Albert Einstein, energy was proposed to be one component of an energymomentum 4vector. Each of the four components (one of energy and three of momentum) of this vector is separately conserved across time, in any closed system, as seen from any given inertial reference frame. Also conserved is the vector length (Minkowski norm), which is the rest mass for single particles, and the invariant mass for systems of particles (where momenta and energy are separately summed before the length is calculated—see the article on invariant mass).
The relativistic energy of a single massive particle contains a term related to its rest mass in addition to its kinetic energy of motion. In the limit of zero kinetic energy (or equivalently in the rest frame) of a massive particle; or else in the center of momentum frame for objects or systems which retain kinetic energy, the total energy of particle or object (including internal kinetic energy in systems) is related to its rest mass or its invariant mass via the famous equation E = mc^{2}.
Thus, the rule of conservation of energy over time in special relativity continues to hold, so long as the reference frame of the observer is unchanged. This applies to the total energy of systems, although different observers disagree as to the energy value. Also conserved, and invariant to all observers, is the invariant mass, which is the minimal system mass and energy that can be seen by any observer, and which is defined by the energy–momentum relation.
In general relativity conservation of energymomentum is expressed with the aid of a stressenergymomentum pseudotensor.
In quantum mechanics, energy is defined as proportional to the time derivative of the wave function. Lack of commutation of the time derivative operator with the time operator itself mathematically results in an uncertainty principle for time and energy: the longer the period of time, the more precisely energy can be defined (energy and time become a conjugate Fourier pair).
The law of conservation of energy is an empirical law of physics. It states that the total amount of energy in an isolated system remains constant over time (is said to be conserved over time). A consequence of this law is that energy can neither be created nor destroyed: it can only be transformed from one state to another. The only thing that can happen to energy in a closed system is that it can change form: for instance chemical energy can become kinetic energy.
Albert Einstein's theory of relativity shows that energy and mass are the same thing, and that neither one appears without the other. Thus in closed systems, both mass and energy are conserved separately, just as was understood in prerelativistic physics. The new feature of relativistic physics is that "matter" particles (such as those constituting atoms) could be converted to nonmatter forms of energy, such as light; or kinetic and potential energy (example: heat). However, this conversion does not affect the total mass of systems, since the latter forms of nonmatter energy still retain their mass through any such conversion.^{[1]}
Today, conservation of “energy” refers to the conservation of the total system energy over time. This energy includes the energy associated with the rest mass of particles and all other forms of energy in the system. In addition, the invariant mass of systems of particles (the mass of the system as seen in its center of mass inertial frame, such as the frame in which it would need to be weighed) is also conserved over time for any single observer, and (unlike the total energy) is the same value for all observers. Therefore, in an isolated system, although matter (particles with rest mass) and "pure energy" (heat and light) can be converted to one another, both the total amount of energy and the total amount of mass of such systems remain constant over time, as seen by any single observer. If energy in any form is allowed to escape such systems (see binding energy), the mass of the system will decrease in correspondence with the loss.
A consequence of the law of energy conservation is that perpetual motion machines can only work perpetually if they deliver no energy to their surroundings.
Contents 
Ancient philosophers as far back as Thales of Miletus had inklings of the conservation of which everything is made. However, there is no particular reason to identify this with what we know today as "massenergy" (for example, Thales thought it was water). In 1638, Galileo published his analysis of several situations—including the celebrated "interrupted pendulum"—which can be described (in modern language) as conservatively converting potential energy to kinetic energy and back again. It was Gottfried Wilhelm Leibniz during 1676–1689 who first attempted a mathematical formulation of the kind of energy which is connected with motion (kinetic energy). Leibniz noticed that in many mechanical systems (of several masses, m_{i} each with velocity v_{i} ),
was conserved so long as the masses did not interact. He called this quantity the vis viva or living force of the system. The principle represents an accurate statement of the approximate conservation of kinetic energy in situations where there is no friction. Many physicists at that time held that the conservation of momentum, which holds even in systems with friction, as defined by the momentum:
was the conserved vis viva. It was later shown that, under the proper conditions, both quantities are conserved simultaneously such as in elastic collisions.
It was largely engineers such as John Smeaton, Peter Ewart, Karl Hotzmann, GustaveAdolphe Hirn and Marc Seguin who objected that conservation of momentum alone was not adequate for practical calculation and who made use of Leibniz's principle. The principle was also championed by some chemists such as William Hyde Wollaston. Academics such as John Playfair were quick to point out that kinetic energy is clearly not conserved. This is obvious to a modern analysis based on the second law of thermodynamics but in the 18th and 19th centuries, the fate of the lost energy was still unknown. Gradually it came to be suspected that the heat inevitably generated by motion under friction, was another form of vis viva. In 1783, Antoine Lavoisier and PierreSimon Laplace reviewed the two competing theories of vis viva and caloric theory.^{[2]} Count Rumford's 1798 observations of heat generation during the boring of cannons added more weight to the view that mechanical motion could be converted into heat, and (as importantly) that the conversion was quantitative and could be predicted (allowing for a universal conversion constant between kinetic energy and heat). Vis viva now started to be known as energy, after the term was first used in that sense by Thomas Young in 1807.
The recalibration of vis viva to
which can be understood as finding the exact value for the kinetic energy to work conversion constant, was largely the result of the work of GaspardGustave Coriolis and JeanVictor Poncelet over the period 1819–1839. The former called the quantity quantité de travail (quantity of work) and the latter, travail mécanique (mechanical work), and both championed its use in engineering calculation.
In a paper Über die Natur der Wärme, published in the Zeitschrift für Physik in 1837, Karl Friedrich Mohr gave one of the earliest general statements of the doctrine of the conservation of energy in the words: "besides the 54 known chemical elements there is in the physical world one agent only, and this is called Kraft [energy or work]. It may appear, according to circumstances, as motion, chemical affinity, cohesion, electricity, light and magnetism; and from any one of these forms it can be transformed into any of the others."
A key stage in the development of the modern conservation principle was the demonstration of the mechanical equivalent of heat. The caloric theory maintained that heat could neither be created nor destroyed but conservation of energy entails the contrary principle that heat and mechanical work are interchangeable.
The mechanical equivalence principle was first stated in its modern form by the German surgeon Julius Robert von Mayer.^{[3]} Mayer reached his conclusion on a voyage to the Dutch East Indies, where he found that his patients' blood was a deeper red because they were consuming less oxygen, and therefore less energy, to maintain their body temperature in the hotter climate. He had discovered that heat and mechanical work were both forms of energy, and later, after improving his knowledge of physics, he calculated a quantitative relationship between them.
Meanwhile, in 1843 James Prescott Joule independently discovered the mechanical equivalent in a series of experiments. In the most famous, now called the "Joule apparatus", a descending weight attached to a string caused a paddle immersed in water to rotate. He showed that the gravitational potential energy lost by the weight in descending was equal to the thermal energy (heat) gained by the water by friction with the paddle.
Over the period 1840–1843, similar work was carried out by engineer Ludwig A. Colding though it was little known outside his native Denmark.
Both Joule's and Mayer's work suffered from resistance and neglect but it was Joule's that, perhaps unjustly, eventually drew the wider recognition.
In 1844, William Robert Grove postulated a relationship between mechanics, heat, light, electricity and magnetism by treating them all as manifestations of a single "force" (energy in modern terms). Grove published his theories in his book The Correlation of Physical Forces.^{[4]} In 1847, drawing on the earlier work of Joule, Sadi Carnot and Émile Clapeyron, Hermann von Helmholtz arrived at conclusions similar to Grove's and published his theories in his book Über die Erhaltung der Kraft (On the Conservation of Force, 1847). The general modern acceptance of the principle stems from this publication.
In 1877, Peter Guthrie Tait claimed that the principle originated with Sir Isaac Newton, based on a creative reading of propositions 40 and 41 of the Philosophiae Naturalis Principia Mathematica. This is now regarded as an example of Whig history.^{[5]}
Entropy is a function of a quantity of heat which shows the possibility of conversion of that heat into work.
For a thermodynamic system with a fixed number of particles, the first law of thermodynamics may be stated as:
where $\backslash delta\; Q$ is the amount of energy added to the system by a heating process, $\backslash delta\; W$ is the amount of energy lost by the system due to work done by the system on its surroundings and $\backslash mathrm\{d\}U$ is the change in the internal energy of the system.
The δ's before the heat and work terms are used to indicate that they describe an increment of energy which is to be interpreted somewhat differently than the $\backslash mathrm\{d\}U$ increment of internal energy (see Inexact differential). Work and heat are processes which add or subtract energy, while the internal energy $U$ is a particular form of energy associated with the system. Thus the term "heat energy" for $\backslash delta\; Q$ means "that amount of energy added as the result of heating" rather than referring to a particular form of energy. Likewise, the term "work energy" for $\backslash delta\; W$ means "that amount of energy lost as the result of work". The most significant result of this distinction is the fact that one can clearly state the amount of internal energy possessed by a thermodynamic system, but one cannot tell how much energy has flowed into or out of the system as a result of its being heated or cooled, nor as the result of work being performed on or by the system. In simple terms, this means that energy cannot be created or destroyed, only converted from one form to another.
For a simple compressible system, the work performed by the system may be written
where $P$ is the pressure and $dV$ is a small change in the volume of the system, each of which are system variables. The heat energy may be written
where $T$ is the temperature and $\backslash mathrm\{d\}S$ is a small change in the entropy of the system. Temperature and entropy are also system variables.
In mechanics, conservation of energy is usually stated as
where T is kinetic and V potential energy.
Actually this is the particular case of the more general conservation law
where L is the Lagrangian function. For this particular form to be valid, the following must be true:
The conservation of energy is a common feature in many physical theories. From a mathematical point of view it is understood as a consequence of Noether's theorem, which states every continuous symmetry of a physical theory has an associated conserved quantity; if the theory's symmetry is time invariance then the conserved quantity is called "energy". The energy conservation law is a consequence of the shift symmetry of time; energy conservation is implied by the empirical fact that the laws of physics do not change with time itself. Philosophically this can be stated as "nothing depends on time per se". In other words, if the theory is invariant under the continuous symmetry of time translation then its energy (which is canonical conjugate quantity to time) is conserved. Conversely, theories which are not invariant under shifts in time (for example, systems with time dependent potential energy) do not exhibit conservation of energy – unless we consider them to exchange energy with another, external system so that the theory of the enlarged system becomes time invariant again. Since any timevarying theory can be embedded within a timeinvariant metatheory energy, conservation can always be recovered by a suitable redefinition of what energy is. Thus conservation of energy for finite systems is valid in such modern physical theories as special relativity and quantum theory (including QED) in the flat spacetime.
With the discovery of special relativity by Albert Einstein, energy was proposed to be one component of an energymomentum 4vector. Each of the four components (one of energy and three of momentum) of this vector is separately conserved across time, in any closed system, as seen from any given inertial reference frame. Also conserved is the vector length (Minkowski norm), which is the rest mass for single particles, and the invariant mass for systems of particles (where momenta and energy are separately summed before the length is calculated—see the article on invariant mass).
The relativistic energy of a single massive particle contains a term related to its rest mass in addition to its kinetic energy of motion. In the limit of zero kinetic energy (or equivalently in the rest frame) of a massive particle; or else in the center of momentum frame for objects or systems which retain kinetic energy, the total energy of particle or object (including internal kinetic energy in systems) is related to its rest mass or its invariant mass via the famous equation $E=mc^2$.
Thus, the rule of conservation of energy over time in special relativity continues to hold, so long as the reference frame of the observer is unchanged. This applies to the total energy of systems, although different observers disagree as to the energy value. Also conserved, and invariant to all observers, is the invariant mass, which is the minimal system mass and energy that can be seen by any observer, and which is defined by the energy–momentum relation.
In general relativity conservation of energymomentum is expressed with the aid of a stressenergymomentum pseudotensor.
In quantum mechanics, energy is defined as proportional to the time derivative of the wave function. Lack of commutativity of the time derivative operator with the time operator itself mathematically results in an uncertainty principle for time and energy: the longer the period of time, the more precisely energy can be defined (energy and time become a conjugate Fourier pair).
