Using conservation of energy I get:
This is by breaking the chain into 2 parts: the part of length L-b lying on the table and the part b over the edge. I also take PE = 0 at height L/2 below the table to simplify calculations later
When the chain has fallen off the table, PE = 0 (since...