Theory 1
Work is a measure of energy expended to achieve some effect. According to physics:
To compute the work performed against gravity while lifting some matter, decompose the matter into horizontal layers at height
The work performed on each single layer is summed by an integral to determine the total work performed to lift all the layers:
Work performed
for water