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