The S.&P. 500 ended the day down 0.55 percent, after a fall of more than 2 percent. Losses in Asia and Europe foreshadowed the drop, then a poor earnings report from 3M and gloomy forecasts from Caterpillar caused the markets to tumble early. A drop in oil prices drove further losses. The apparent recovery came as a surprise to many.