The Dow Jones Industrial Average gained 435 points in a seesaw day of trading Thursday as all three major indexes snapped two-day losing streaks.