Microsoft has announced that its profits for the three months to the end of September jumped to more than $36.6bn (£27.5bn) - a figure it shared just days after revealing plans to cut its workforce by more than a quarter.

On Monday, the Windows developer said it would offer voluntary buyouts to around 60,000 of its workers to cut costs as it pours billions of dollars into artificial intelligence (AI). Nothing says "we're doing great" quite like a profit announcement that arrives in the same week as a buyout offer for one in four employees.

Like other tech firms, Microsoft is investing heavily in the infrastructure that powers AI, even as questions remain over whether such enormous spending will actually pay off. Investors, apparently, remain unfazed: Microsoft shares rose by almost 2.9% in after-hours trading in New York on Wednesday.

The recent financial results of tech companies have been closely watched by investors as they gauge whether the heavy spending on AI is sustainable - a bit like watching someone buy a Ferrari and then asking, very politely, whether they can still make rent.

Microsoft said on Wednesday that its quarterly revenue rose to $92.3bn, driven by strong growth in its cloud computing business.

The firm's chairman and chief executive Satya Nadella said in a statement: "We are delivering greater capability, choice, control, and cost efficiency for customers across our entire stack."

"By helping organisations build and own their own intelligence, and earning trust through agent safety and security, we are translating our innovation into growing adoption and real-world impact across every industry," Nadella said. The "cost efficiency" part, presumably, refers to the customers - though the 60,000 workers offered buyouts might have their own interpretation.