Conservation of energy

# Overview
In physics, the law of conservation of energy states that the total amount of energy in any isolated system remains constant but cannot be recreated, although it may change forms, e.g. friction turns kinetic energy into thermal energy. In thermodynamics, the first law of thermodynamics is a statement of the conservation of energy for thermodynamic systems, and is the more encompassing version of the conservation of energy. In short, the law of conservation of energy states that energy can not be created or destroyed, it can only be changed from one form to another.

# History
Ancient philosophers as far back as Thales of Miletus had inklings of the conservation of some underlying substance of which everything is made. However, there is no particular reason to identify this with what we know today as "mass-energy" (for example, Thales thought it was water). In 1638, Galileo published his analysis of several situationsincluding the celebrated "interrupted pendulum"which can be described (in modern language) as conservatively converting potential energy to kinetic energy and back again. However, Galileo did not state the process in modern terms and again cannot be credited with the crucial insight. It was Gottfried Wilhelm Leibniz during 16761689 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, mi  each with velocity vi ),
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, Gustave-Adolphe 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 Pierre-Simon Laplace reviewed the two competing theories of vis viva and caloric theory. 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 Gaspard-Gustave Coriolis and Jean-Victor Poncelet over the period 18191839. The former called the quantity quantite de travail (quantity of work) and the latter, travail mecanique (mechanical work), and both championed its use in engineering calculation.
In a paper Uber die Natur der Warme, published in the Zeitschrift fur 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 . 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. 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 18401843, 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. In 1847, drawing on the earlier work of Joule, Sadi Carnot and Emile Clapeyron, Hermann von Helmholtz arrived at conclusions similar to Grove's and published his theories in his book Uber 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.

# The first law of thermodynamics
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 \delta Q is the amount of energy added to the system by a heating process, \delta W is the amount of energy lost by the system due to work done by the system on its surroundings and \mathrm{d}U is the increase 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 \mathrm{d}U increment of internal energy. 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 \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 \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 \mathrm{d}S is a small change in the entropy of the system. Temperature and entropy are also system variables.

# Mechanics
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 system is scleronomous (neither kinetic nor potential energy are explicit functions of time)
- The kinetic energy is a quadratic form with regard to velocities.
- The potential energy doesn't depend on velocities.

## Noether's Theorem
The conservation of energy is a common feature in many physical theories.  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".  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 time-varying theory can be embedded within a time-invariant meta-theory energy conservation can always be recovered by a suitable re-definition of what energy is.  Thus conservation of energy is valid in all modern physical theories, such as special and general relativity and quantum theory (including QED).

## Relativity
With the invention of special relativity by Albert Einstein, energy was proposed to be one component of an energy-momentum 4-vector.  Each of the four components (one of energy and three of momentum) of this vector is separately conserved in any given inertial reference frame.  Also conserved is the vector length (Minkowski norm), which is the   rest 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 the massive particle, or the center-of-momentum frame for objects or systems), the total energy of particle or object (including internal kinetic energy in systems) is related to its rest mass via the famous equation E=mc^2. Thus, the rule of conservation of energy in special relativity was shown to be a special case of a more general rule, alternatively called the conservation of mass and energy, the conservation of mass-energy, the conservation of energy-momentum, the conservation of invariant mass or now usually just referred to as conservation of energy.
In general relativity conservation of energy-momentum is expressed with the aids of a stress-energy-momentum pseudotensor.

## Quantum theory
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).  However, quantum theory in general, and the uncertainty principle specifically, do not violate energy conservation.

# Mathematical viewpoint
From a mathematical point of view, 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 (see: Noether's theorem). Philosophically this can be stated as "nothing depends on time per se".

# Notes
-  Lavoisier, A.L. & Laplace, P.S. (1780) "Memoir on Heat", Academie Royal des Sciences pp4-355
-  von Mayer, J.R. (1842) "Remarks on the forces of inorganic nature" in Annalen der Chemie und Pharmacie, 43, 233
-  Grove, W. R. (1874). The Correlation of Physical Forces (6th ed. ed.). London: Longmans, Green.CS1 maint: Extra text (link) .mw-parser-output cite.citation{font-style:inherit}.mw-parser-output q{quotes:"\"""\"""'""'"}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-lock-free a{background:url("")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-limited a,.mw-parser-output .cs1-lock-registration a{background:url("")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-subscription a{background:url("")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{display:none;font-size:100%}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}