When the pendulum swings from point A to point B while ignoring friction and air resistance, its total mechanical energy remains constant. The total mechanical energy of the pendulum is the sum of its potential energy (PE) and kinetic energy (KE).
At point A (the highest point), the pendulum has maximum potential energy and minimum kinetic energy. As it swings down towards point B, potential energy converts into kinetic energy, increasing the pendulum's speed. At point B (typically the lowest point), the pendulum has maximum kinetic energy and minimum potential energy.
Throughout this motion, the total mechanical energy, given by the equation \( E = PE + KE \), stays constant. This is a result of the conservation of energy principle.