Consider a strip of thickness dy at a height y from bottom of the gate.
Area of this strip is 4 dy
Force on the strip
dF=ρg(2−y)4dy;
Torque due to this force about top edge of the plate is
dτ=4ρg(2−y)2dy
τ=ρg4[4y+y33−2y2]20
=103×10×4[8+83−8]
=10.67×104 N-m.