the free surface of the downstream flow after the gate.
We also take the bottom surface of the channel as the reference level so that the elevations of points 1 and 2 are y1 and y2, respectively.
The application of the Bernoulli equation between points 1 and 2 gives