how is mechanical energy conserved in a swinging pendulum?
In a simple pendulum with no friction, mechanical energy is conserved. Total mechanical energy is a combination of kinetic energy and gravitational potential energy. As the pendulum swings back and forth, there is a constant exchange between kinetic energy and gravitational potential energy.