integral from 0 to 1 of integral from 0 to b of (min(2-m,sqrt(b^2+m^2))-b) dm db