To get the second derivative (D squared Y over DX squared) just take the derivative of the derivative. DY over DX is just the first derivative of the function
m = ∫∫∫r³sinθdΦdrdθ. We integrate from θ = 0 to π (since it is a hemisphere), Φ = 0 to 2π and r = 0 to 2 and the maximum values of r = 2 in those directions. So