Conservative force
Classical mechanics 

Core topics 
A conservative force is a force with the property that the work done in moving a particle between two points is independent of the taken path.^{[1]} Equivalently, if a particle travels in a closed loop, the net work done (the sum of the force acting along the path multiplied by the displacement) by a conservative force is zero.^{[2]}
A conservative force is dependent only on the position of the object. If a force is conservative, it is possible to assign a numerical value for the potential at any point. When an object moves from one location to another, the force changes the potential energy of the object by an amount that does not depend on the path taken. If the force is not conservative, then defining a scalar potential is not possible, because taking different paths would lead to conflicting potential differences between the start and end points.
Gravity is an example of a conservative force, while friction is an example of a nonconservative force.
Other examples of conservative forces are: force in elastic spring, electrostatic force between two electric charges, magnetic force between two magnetic poles. The last two forces are called central forces as they act along the line joining the centres of two charged/magnetied bodies. Thus, all central forces are conservative forces.
Informal definition
Informally, a conservative force can be thought of as a force that conserves mechanical energy. Suppose a particle starts at point A, and there is a force F acting on it. Then the particle is moved around by other forces, and eventually ends up at A again. Though the particle may still be moving, at that instant when it passes point A again, it has traveled a closed path. If the net work done by F at this point is 0, then F passes the closed path test. Any force that passes the closed path test for all possible closed paths is classified as a conservative force.
The gravitational force, spring force, magnetic force (according to some definitions, see below) and electric force (at least in a timeindependent magnetic field, see Faraday's law of induction for details) are examples of conservative forces, while friction and air drag are classical examples of nonconservative forces.
For nonconservative forces, the mechanical energy that is lost (not conserved) has to go somewhere else, by conservation of energy. Usually the energy is turned into heat, for example the heat generated by friction. In addition to heat, friction also often produces some sound energy. The water drag on a moving boat converts the boat's mechanical energy into not only heat and sound energy, but also wave energy at the edges of its wake. These and other energy losses are irreversible because of the second law of thermodynamics.
Path independence
A direct consequence of the closed path test is that the work done by a conservative force on a particle moving between any two points does not depend on the path taken by the particle.
This is illustrated in the figure to the right: The work done by the gravitational force on an object depends only on its change in height because the gravitational force is conservative. The work done by a conservative force is equal to the negative of change in potential energy during that process. For a proof, imagine two paths 1 and 2, both going from point A to point B. The variation of energy for the particle, taking path 1 from A to B and then path 2 backwards from B to A, is 0; thus, the work is the same in path 1 and 2, i.e., the work is independent of the path followed, as long as it goes from A to B.
For example, if a child slides down a frictionless slide, the work done by the gravitational force on the child from the top of the slide to the bottom will be the same no matter what the shape of the slide; it can be straight or it can be a spiral. The amount of work done only depends on the vertical displacement of the child.
Mathematical description
A force field F, defined everywhere in space (or within a simplyconnected volume of space), is called a conservative force or conservative vector field if it meets any of these three equivalent conditions:
Proof that these three conditions are equivalent when F is a force field 

Main article: Conservative vector field

The term conservative force comes from the fact that when a conservative force exists, it conserves mechanical energy. The most familiar conservative forces are gravity, the electric force (in a timeindependent magnetic field, see Faraday's law), and spring force.
Many forces (particularly those that depend on velocity) are not force fields. In these cases, the above three conditions are not mathematically equivalent. For example, the magnetic force satisfies condition 2 (since the work done by a magnetic field on a charged particle is always zero), but does not satisfy condition 3, and condition 1 is not even defined (the force is not a vector field, so one cannot evaluate its curl). Accordingly, some authors classify the magnetic force as conservative,^{[3]} while others do not.^{[4]} The magnetic force is an unusual case; most velocitydependent forces, such as friction, do not satisfy any of the three conditions, and therefore are unambiguously nonconservative.
Nonconservative forces
Nonconservative forces can arise in classical physics due to neglected degrees of freedom or from timedependent potentials.^{[5]} For instance, friction may be treated without resorting to the use of nonconservative forces by considering the motion of individual molecules; however that means every molecule's motion must be considered rather than handling it through statistical methods. For macroscopic systems the nonconservative approximation is far easier to deal with than millions of degrees of freedom. Examples of nonconservative forces are friction and nonelastic material stress.
However, general relativity is nonconservative, as seen in the anomalous precession of Mercury's orbit. However, general relativity can be shown to conserve a stress–energy–momentum pseudotensor.
See also
References
 ↑ HyperPhysics  Conservative force
 ↑ Louis N. Hand, Janet D. Finch (1998). Analytical Mechanics. Cambridge University Press. p. 41. ISBN 0521575729.
 ↑ For example, Mechanics, P.K. Srivastava, 2004, page 94: "In general, a force which depends explicitly upon the velocity of the particle is not conservative. However, the magnetic force (qv×B) can be included among conservative forces in the sense that it acts perpendicular to velocity and hence work done is always zero". Web link
 ↑ For example, The Magnetic Universe: Geophysical and Astrophysical Dynamo Theory, Rüdiger and Hollerbach, page 178, Web link
 ↑ Friedhelm Kuypers. Klassische Mechanik. WILEYVCH 2005. Page 9.