Investors are roaring in approval of Google's second quarter earnings reported after the bell Thursday, sending the company's stock up almost 11 percent in after-hours trading to $585.96 (up $56.76).

Google (NASDAQ: GOOG) shares had closed on the day, just before the earnings announcement, at $528.94, down 1.73 percent.

Google's reported sales and profit beat analysts' estimates, showing how the company is successfully expanding into mobile and display advertising.

Google is the world's largest Internet search engine, and it has products including the Android operating system. Google has also just launched in a field trial phase a new social network, Google+, that has already attracted more than 10 million users with millions more waiting to get in.

Google's second-quarter sales rose to $6.92 billion, topping the $6.57 billion analysts expected as a consensus, according to Bloomberg. Google's net income rose 36 percent in the second quarter to $2.51 billion, or $7.68 a share, from $1.84 billion, or $5.71, the previous year in the second quarter.

Google's second quarter profit, excluding some items, was $8.74 a share, exceeding the $7.85 average of analysts' estimates, according to Bloomberg.

Google benefitted in the second quarter from expanded revenue derived from using ads on mobile devices and the YouTube video site to diversify beyond its traditional Internet search ads.

For a long time, I think it was fair to knock the company as a one-trick pony, but I don't think that's the case anymore, said Clayton Moran, an analyst at Benchmark Co. in Boca Raton, Florida, in an interview with Bloomberg.