2 electrons that have (nearby) the ¨same position¨ (i put it under quotes, because it is not the classical position, in fact it is about the same quantum orbital state) will have very high energy (because electrons tend to repel each other because they have the same electric charge). so diferent positions will lower the energy, and this (is forced to) happen when they have the same spin (because the pauli exclusion principle), so, one of the electrons change its orbit to a higher energy one (for itself), but overall system energy system fall dawn.
but anyway this is a kind of classical interpretation, the better one is the quantum:
why this is forced to happen ?? read about exchange interaction:
http://en.wikipedia.org/wiki/Exchange_energy
so essentially u must consider 4 states and its energy levels (here for simplicity I consider only 2 electrons (the las two outer free electrons of some kind of atoms), but the analogous calculations can be dozen for more complicated atomic (molecular) configurations):
1. same orbit, different spins (may be anti ferromagnetism)
2. different orbit, different spins (this is not ferromagnetism)
3. different orbit, same spins (this is this case, ferromagnetism)
4. same orbit, same spins (forbidden by the exclusion principle)
why system goes to state 3 and not to state 2 ?? it seems that 1 has lower energy than 2. so i believe that
state 2 is unstable, it falls (falls because energy falls dawn) to state 1. because 1 has lower energy than 2.
so when spins are in opposite directions, lower state energy its 1. when spins are in same direction, lower
state energy its 3.
why some systems goes to 3, and others to 1 ?? that is... when 3 has lower energy than 1 or the converse ??
I think that u must do specific calculation about the kind of atom (material) u have in consideration. u must carry out the hartree-fock aproximations. so u will have the exchange energy (and the orbital_energy see below). so in one side (3) u have the energy cost because one electron change its orbit to a more energetical one (lets call this, orbital_energy). in the other side (1) both electrons remains in the same orbit, but u have to pay the cost of the exchange energy because both electrons have the same spins.
so if orbital_energy > exchange energy then state 1 has the lower energy and then it is the state.
so if orbital_energy < exchange energy then state 3 has the lower energy and then it is the state.
here orbital_energy is the energy cost to pay because u have 2 electrons in different orbits (here this energy cost is positive because instead of have 2 electrons in the lowest orbital energy level available u have one of them in one level above).
here exchange energy is the energy cost to pay because u have 2 electrons in same spin orientation (this
amount of energy depends on the orbital state as is shown in wiki, hartree-fock aproximation).
best regards
rayo