Finding difficulty in understanding spring potential energy? when we stretch a spring it stores a potential energy due to its elastic properties. if i assume a block connected to the spring (as potential energy is defined as external work done against internal conservative force) then at some displacement both block and spring are applying equal and opposite forces on each other which are conservative. so does this means both will store a potential energy and if yes how will both be represented and if no what i am missing in my concept.
It will be very helpful if u explain it both ways mathematically and with an example.
thank you
 A: Newtonian mechanics is usually taught using idealized concepts like "point particles" and "rigid bodies" which do not exist in reality.
Also, Newton did not have any clear concept of "energy" at all so the original historical descriptions of the theory made no use of energy concepts.
"External work done against internal conservative force" is a rather vague description of what is going on. Things become much clearer conceptually in continuum mechanics, where the internal strain energy of a body whose volume is $V$ is simply $$\frac{1}{2}\int_V \sigma \cdot \epsilon\,dV$$ where $\sigma$ and $\epsilon$ are the stress and strain tensors.
With that formulation, you can find the internal strain energy without having to consider the process which created it. Of course the work-energy theorem still holds, to relate the change in internal energy to the external work done on the system.
The above equation implies that the internal strain energy in a rigid body, where $\epsilon = 0$, is always zero. If you consider a rigid block attached to a flexible spring, there is no energy stored in the block, unless it is moving and therefore has kinetic energy.
A: An example that might be easier to think of: gravitational potential energy. If we have two masses, there is a gravitational force between them. As the objects move closer or farther apart, the potential energy of the system changes. Even though mass 1 exerts a force on mass 2 while, by Newton's third law, mass 2 also exerts an equal but opposite force on mass 1, there is still only one potential energy: the potential energy of the system. If you were to consider both forces in the N3L pair, then you would be double-counting the energy.
Similarly, in your spring example the potential energy is a property of the system. You don't count both forces in the N3L pair.
