NEW YORK - The Dow stock index briefly topped the 40,000 line for the first time ever on Thursday amid growing optimism about the solid U.S. economy as recent data suggested stubborn inflation may ease and the Federal Reserve could begin cutting key interest rates in the fall.