The basic urge is surprisingly complex and can go awry as we age