An electric string of length l is elastically stretched through a length e by a…