NEW YORK (AP) — Strong earnings from a pair of technology giants helped the stock market recover some of its losses Friday, a positive end to Wall Street's worst week in five months.
Microsoft and Google both beat earnings expectations, yields of government bonds ticked up and copper — a key industrial metal — continued its fall, losing 2 percent.
Microsoft gained 3 percent to $29.77, leading the Dow Jones industrial average higher. The software giant reported earnings late Thursday that beat analysts' forecasts and showed solid results from its Office, software tools and Xbox divisions.
Google's stock climbed 3 percent to $799.87. The leader in Internet search boosted prices for ads distributed to smartphones and tablet computers.
The Standard & Poor's 500 index rose 13.64 points to 1,555.25, an increase of 0.9 percent. The Dow rose 10.37 points to 14,547.51, a gain of 0.1 percent. The Dow spent most of the day down, pulled lower by disappointing results from IBM.
Traders, like everyone else, were following the news out of Boston, where police were hunting for one of two brothers suspected to be behind Monday's Boston Marathon bombings. One brother was killed in a gun battle with police overnight. But the news had no impact on markets, traders said.
Friday's slight gains couldn't overcome a tough week for the market, when both the S&P 500 and the Dow lost 2.1 percent. That's their biggest weekly drop since last November.
"Compared to the rest of the week, it looks like we're going to slide into the weekend on a quiet note," said Jim Baird, Partner and Chief Investment Officer for Plante Moran Financial Advisors
By many measures, the financial markets have endured a rough five days. News that economic growth had slowed in China set off a plunge in commodity prices on Monday, leading the stock market to its worst day of the year. Gold dropped below $1,400 an ounce for the first time in two years.
The stock market bounced back the next day, then fell again on Wednesday, its third worst day this year.
Most big corporations have managed to beat analysts' low expectations for first-quarter profits. Of the 104 companies that turned in results through Friday morning, 70 have trumped forecasts, according to S&P Capital IQ.
Analysts estimate that earnings for companies in the S&P 500 inched up just 2 percent over the previous year, a slowdown from the 7.7 percent rise in the fourth quarter of 2012.
Next week marks another big week for earnings as 10 members of the Dow and 181 companies in the S&P 500 report results.
On Friday, IBM fell 8 percent to an even $190. Quarterly earnings for the country's largest provider of computer services fell short of forecasts for the first time since 2005. IBM said delays in closing several large software and mainframe computer deals hindered sales.
Chipotle Mexican Grill surged 12 percent to $366.25, the best gain in the S&P 500. Chipotle's results easily topped Wall Street expectations late Thursday as the burrito-maker said new restaurants drove sales higher.
The Nasdaq composite index gained 39.69 points to 3,206.06, up 1.3 percent.
In the market for U.S. government bonds, Treasury prices slipped, nudging yields up from their lowest levels of the year. The yield on the 10-year Treasury note inched up to 1.70 percent from 1.68 percent late Thursday.
Traders cautiously returned to buying certain key commodities on Friday, including gold and oil, after big sell-offs earlier this week. But copper continued its fall, losing 2 percent to $3.16 per pound.
Rex Macey, the chief investment officer at the Wilmington Trust Investment Advisors, said markets are bound to encounter turbulence as long as the economy continues to advance at a slow pace. Forecasts say the U.S. economy will expand 2 percent this year. In practice, Macey said, that means there will be times when the economy looks ready to stall and others when it looks ready to steam ahead.
"You'll hear that Europe's in trouble again and we'll get a pullback in the market," Macey said. "Then you'll go through periods when we're off to the races again. I say, 'Get used to it.'"
Even after a rough week, Macey and others said the basic storyline for investors hasn't changed. The economy and corporate profits are still headed in the right direction. And as long as that's true, the stock market will follow their lead.
"We're going to have a stronger 2013 than 2012," said Joseph Tanious, the global market strategist at J.P. Morgan Funds. "But the recovery is going to be much more bumpy than people thought."
Among other companies making big moves:
— SeaWorld Entertainment soared in its first day of trading as a public company. The theme park operator raised $702 million in its initial public offering, with the bulk of the money going to the Blackstone Group, the private equity firm that still controls the company. SeaWorld's stock jumped 24 percent to $33.52, up from its IPO price of $27.
— Dell sank 4 percent to $13.40 following news that the Blackstone Group withdrew its bid to buy the computer maker. That left Dell with two remaining bidders: a group led by Michael Dell, the company's founder and CEO, and Carl Icahn, the well-known investor.