The potential energy of a pendulum can be calculated using the formula P.E = mg(L - Lcosθ), where "L" is the length of the pendulum and "θ" is the angle of displacement. To find the vertical displacement "h," a right triangle is formed, leading to the relationship h = L - Lcosθ. Additionally, kinetic energy can be expressed as K(θ) = mgL(cosθmax - cosθ), with total mechanical energy being the sum of potential and kinetic energy. The discussion also explores the challenge of plotting energy versus time, particularly how it relates to the sinusoidal nature of simple harmonic motion (SHM) and variations for small and large angles. The complexities of energy graphs for different angles are acknowledged, indicating a need for further analysis.