Note that:
We compute the moment of another volume and then note that the moment of the original volume is 26/27 of that of the other volume. The other volume is formed by extending the three upper planes of cube to the water. These three planes and the water surface bound a tetrahedron whose moment is much easier to compute. We refer to this tetrahedron as BT, the big tent. BT is the union of the above water cube and three small tents which are each similar to BT. Their large faces are also the surface of the water. They are each a scale model of BT with scale factor 1/3. Their moment is 1/81 of the moment of BT for the volume is 1/27 of BT and their center of gravity is 1/3 as far from the water line. Thus the moment of the above water cube is 26/27 of the moment of BT.
The length of an above water edge of BT is 3/2. The length of the edge of the base of BT is (√2)3/2. The area of the base of BT (an equilateral triangle) is ((√2)3/2)2√3/4. The altitude of BT is √3/2. The volume of BT is (((√2)3/2)2√3/4)(√3/2)/3 = 9/16. The height of the center of gravity of BT is 1/4 its altitude = √3/8. The moment of BT = volume times (CG height) = 9√3/128. Here we compute the moment from the corner of the cube.
The moment of the above water portion of the cube is (26/27)(9√3/128) = 13((√3)/3)/64 = 0.11727427 . The Monte Carlo C code below gets about the same answer:
#include <stdio.h> #include <math.h> #include <stdlib.h> double const c = 1./(1LL<<31); int const m = 1<<27; double g(){return random()*c;} int main(){double s = 0; for(int n=0; n<m; ++n) s += fabs(g()+g()+g() - 1.5); printf ("%10.7f %4.1f\n", s/(2*sqrt(3)*m), log(c)/log(2)); return 0;} // => 0.1172766 -31.0The code above integrates |x+y+z − 3/2| over the interior of a unit cube. The coordinates are those natural to the cube. The integrand is (the absolute value of the distance of the volume element to the water line)/(√3/2). The other factor of 2 is because the geometric moment computed above included only the part above water.
This does not suffice to show that the answer is corner up but the following lemma seems relevant and suggestive:
The force of the water on the cube generally includes a torque. To be at rest the torque must be zero. The 2nd moment of the area of intersection of the cube and water surface …