integrate max(x^2, (1-x^3)/3) from 0 to 1