The first part of the answer is only correct, if "r" is replaced by "-r". Otherwise the ball is not inside the sphere. Of course this is only a short test, however in the exact mathematical sciences a single example is sufficient to proof that something is wrong.