In discussions about the equations of motion for vertical springs, the force of gravity (mg) is often ignored to simplify the analysis, particularly when the system is treated as horizontal or when the gravitational force does not significantly affect the motion. Including gravity complicates the equations without adding substantial value for learning basic concepts of simple harmonic motion. In practical scenarios, the tension in the spring can be much greater than the weight of the object, making the gravitational force negligible. Additionally, for small oscillations, the period of motion can be affected by the angle of displacement, but this effect is often minimal in real-world applications. Therefore, ignoring mg allows for a clearer understanding of the fundamental principles of oscillation.