Let x length of the chain be on the table at a particular instant.
Consider a small element of length 'dx' and mass 'dm' on the table.
dm =
Work done by the friction on this element is
Total work done by friction on two third part of the chain,
The total work done by friction during the period the chain slips off the table is .