Apple Inc has reported that its quarterly profit dipped for the first time in nearly a decade as it earned less money in the competitive smartphone and tablet markets.

The maker of iPhones, iPads, iPods, and Macintosh computers quickly stepped in to bolster its stock price by announcing a plan to more than double to $100bn the amount it will spend to buy back its stock and pay out dividends.

Apple raised a coming stock dividend by 15 percent to $3.05 per common share.

While Apple's coffers bulged with $144.7bn, the company said most of that money is offshore and it will be shrewder to borrow cash to implement the stock buy-back plan.

"We will fund the capital return programme from operations and borrowing," said Peter Oppenheimer, Apple's chief financial officer.

Apple shares jumped briefly on the news in after-hours trades but slid back down to $403.95, about two dollars below where it was at the close of the Nasdaq.

Sales decrease

The California-based company posted a profit of $9.5bn on revenue of $43.6bn in the first three months of this year, compared to a profit of $11.6bn on $39.2bn in the same quarter in 2012.

It said its gross margin, or the amount of money it makes in profit from its devices, shrank to 37.5 percent from 47.5 percent.

The number of iPhones sold in the quarter rose to 37.4m from 35.1m during the same quarter last year. The number of iPads sold surged to 19.5m from 11.8m a year earlier.

Meanwhile, sales of iPod MP3 players dropped by more than a million to 5.6m and Macintosh computers sales slipped about two percent to just below four million, according to Oppenheimer.

The company's chief executive Tim Cook said that the decline in Apple stock in recent quarters has been "very frustrating for all of us".

Shares in Apple are well below their 52-week peak above $700 in September as the tech giant faces tougher competition from South Korea's Samsung and others.

'Optimistic about future'

"Although we've achieved incredible results, we acknowledge our growth rate has slowed," Cook said during an earnings call with financial analysts.

"We will continue to focus on the long term and we remain very optimistic about our future."

Cook remained adamant that Apple was well-positioned in the booming smartphone and tablet markets.

"We have a lot more innovations in the works," Cook said, promising "some really great stuff coming in the fall and across all of 2014".

"For the size company it is, Apple is plugging along very nicely," said Forrester analyst Frank Gillett.

"The question we are asking ourselves is whether they can bust out a new category. My hunch is there are a bunch of new things brewing."

Revenue in China was up 11 percent to $8.8bn, with iPad sales more than doubling despite Apple reporting that growth had slowed there.

China served as an example of an Apple strategy to win over smartphone buyers with affordable prices on iPhone and iPad models, letting margins shrink in order to build ranks of loyal customers.

"China has an unusually large number of potential first-time smartphone buyers and that is not lost on us," Cook said.

He cited data showing that Apple ranks impressively when it comes to customer loyalty and the willingness of users of its gadgets to spend money on digital songs, music and apps at the iTunes store.

"We do want to grow faster, but we don't look at it as the only measure of our health," Cook said.

The iTunes shop pulled in more than $4bn in revenue in the first three months of the year, setting a new record, according to Oppenheimer.