Summary:
At highest point:
Kinetic energy = 0
Gravitational potential energy = mgh
Elastic potential energy = 0
Total energy = mgh = λ(e + x)2/(2a)
When string just becomes slack:
Kinetic energy = ½ mv2
Gravitational potential energy = mg(e + x)
Elastic potential energy = 0
Total energy = ½ mv2 + mg(e+x) = λ(e + x)2/(2a)
At equilibrium position:
Kinetic energy = ½ mv2
Gravitational potential energy = mgx
Elastic potential energy = λe2/(2a)
Total energy = ½ mv2 + mgx+ λe2 / (2a) = λ(e + x)2/(2a)
At lowest point:
Kinetic energy = 0
Gravitational potential energy = 0
Elastic potential energy = λ(e + x)2/(2a)
Total energy = λ(e + x)2/(2a)