Please consider a standard horizontal spring mass oscillator system (with no friction).
When doing SHM physics problems I would assume energy is conserved. However, I never got why it was conserved.
If you consider the spring and the mass itself to be the system, why doesn't the force from the wall (which the spring is attached to) do any work? Does that mean the wall is considered part of the system (making the force an internal force?)?
If the wall isn't considered part of the system, then wouldn't it mean momentum in $x $ direction isn't conserved either (net external force from wall)?