Introduction :

all kinds of fields such as gravity , magnetic field and electric field are a kind of energy stored in matter , for gravity part of the energy forms the matter and part is responsible for the field, i.e energy is not all in the form of matter some is in the form of a field .

Experiments :

Experiment No 1:

imagine that there is a piece of iron one meter away from a permanent magnet , then I let go of the piece to move freely towards the magnet and stuck on it , I can now demagnetizing the magnet , with a flame above Curie temperature , then work is done , because I can take it again to its place -one meter a part - with force approaches zero , now we have kinetic energy coming from the losing of the field .

Experiment no 2:

imagine that there are two pieces of iron are one meter apart in space iron no 1 and iron no 2 , they are free to move, you can put each one everywhere in space with force tends to zero ,you magnetize iron no 1 , and iron no 2 is fixed not to move , now let go of iron no 2 to freely move toward iron no 1, there is work done ,so the idea of magnetizing caused work to be done , magnetizing itself is work done , notice that iron no 2 may not move and stay there forever , which means I did work by magnetizing and I want to store it and using it later that why field is stored energy, if also there are a large number of pieces of iron around iron no 1 and I magnetized it, all these iron pieces will be attracted towards it giving more energy .

Theory :

The energy stored to form field is the sum of the potential energy of a piece of iron put in every possible place in universe around the magnet until infinity , take in consideration that if a piece of iron is at infinity and it did work coming to the magnet then I can not take it from its place its place is used , another piece from infinity will come to stop over this one and so on ,also the larger mass of iron the larger the stored energy , in fact the calculation is for a total energy and not for the stored energy as in the equations below , the sum of all this energy is the total energy we can extract from it the stored energy to cause field. calculating this sum is mathematically difficult but it is possible because potential energy at infinity equals zero , so putting the iron at every possible place in space and calculating all possible potential energy until infinity will be a specific number and not infinity , this number is the total energy by which we can calculate the energy stored in a magnet or mass to cause field.

Equation :

The energy stored (E) in a mass (m) should be: E=km , where (k) is the constant of equation.

it is proportional to just the mass , now we see how gravitational stored energy is part of the mass itself , that why there is not a way of canceling gravity as canceling magnetism ,this energy will spread in universe until infinity , the larger stored energy the larger is a mass and the larger is gravitational force .That just like saying in the Newton equation of gravity let a unit mass be at constant distance from a particular mass M , when this mass M increases the force on the 1 unit mass will increase as well, because also the stored energy increased.

the gravitational force (F) between two massive objects is proportional to their stored energy, because the stored energy is just the collection of the all possible potential energy ,and the gravitational force is proportional to the potential energy , if we have two masses m1 and m2 , then we have stored energy in each mass ,E1 and E2, E1=km1 , E2=km2, and F∝ E1*E2 .

for calculating the stored energy in mass (M) by collecting all the potential energy possible for a mass (m), in a case (M) and (m) are attracted to each other , we actually calculating the stored energy in both masses, i.e the total energy U , U=E1+E2= k(M+m) , the stored energy in mass (M) , is when the mass (m) equals zero, U=E1+E2 = K(M+0)=kM.

for magnetism when we take two identical magnetic fields-identical magnetic fields are magnetic fields of two or more magnets , when a piece of iron is put at constant distance , it will undergo the same force in each of these magnets -one of these identical magnetic field is caused by electricity another one is caused by permanent magnet they should have the same stored energy, which can be calculated by the electric energy consumed.

now we can take two identical field one gravitational and the other is magnetic , they have the same energy , we take the calculated energy from magnetism and apply it in the above equation to calculate the constant K.

to get a identical magnetic field and gravitational field , we have a specific ratio between two masses , the same ratio between two magnetic fields , then the same ratio will be for their stored energies , if the force is equal at constant distances both the magnetic field and the gravitational field have the same stored energy.

the three field equations can be integrated in one equation , by calculating the stored energy for a mass , a magnet or an electric charge ,instead of mass , magnet and electric charge we have stored energy , that can be a factor in one equation for these fields. but that actually will not happen! we can't say amount of stored energy in a magnet is affecting a particular amount of stored energy in a mass, the mass and magnet won't attract , because they are stored energy but in different forms, take an example a non-conductor , electric current does not flow through it and does not have effect on it like producing light or heat ,etc , while the same conductor can be affected by kinetic energy. magnetic field stored energy does not affect matter.

Conclusion :

the process of magnetizing or demagnetizing results in a work done, this work does not come from nothing as the thermodynamics first law states, so it should be that the process of magnetizing and demagnetizing is a work done to be stored as energy inside matter to cause permanent potential energy.

this amount of energy can be calculated theoretically for all kinds of fields the same way, by collecting all potential energy for a mass , magnet , electric charge,for example when magnetizing a piece of iron and letting iron pieces to come from space to this permanent magnet , and calculating how much possible work can be done this way.

this article does not cover calculating stored energy by calculating the sum of all possible potential energy for a field , which is mathematically difficult , however for gravity the equation to calculate this field stored energy is : E=km, where (m) is the mass containing field stored energy (E) , and k is the equation constant.