Valentin K. answered 03/13/24
Expert PhD tutor in Calculus, Statistics, and Physics
Set up a coordinate system with an origin at the deepest triangle vertex and a vertical y axis pointing up.
At height y above the vertex, the horizontal width of the triangle will be w = y, since at height 1, the width is 1.
Consider a horizontal slab of water at height y above the vertex:
width = y
length = 4
thickness = dy
mass = density . width . length . thickness = 1000 * y * 4 * dy = 4000ydy
This slab has to be raised to the rim of the trough by a vertical distance 1 - y
The necessary work: dW = mass . g. (1 - y) = 4000ydy . g . (1-y), where g = 9.8 m/s^2 is the gravitational acceleration.
The total work is the sum of the work for lifting all the slabs to the rim i.e. the integral:
W = integral of 4000 g y (1-y) dy for y = 0 to 1.