The formula for the distance from the point (x,y,z) to the point (0,0,0) is \sqrt{x^2+y^2+z^2}. The square of this number is x2+y2+z2.