The S&P 500 and the Nasdaq opened higher on Tuesday as AI-linked shares recouped some of the previous session's sharp losses and a mixed bag of corporate earnings fueled volatility.