Question: how is mechanical energy conserved in a swinging pendulum?
Answer: 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.