He did homage to the traditions of modern science by specializing at first in mathematics and physics, but his faculty for analysis soon brought him face to face with the metaphysical problems that lurk behind every science; and he turned spontaneously to philosophy.