Van Gaal had lost 1-2 at home to Swansea in his first game as United manager last season and having also seen his team go down by the same scoreline in the return fixture, he was given more reason to curse Garry Monk’s side on the occasion of his 50th game in English football.

Swansea climbed to fourth place in the table, a point above United and four below early leaders Manchester City, having started a top-flight campaign with four unbeaten games for the first time in their history.

With Morgan Schneiderlin and Bastian Schweinsteiger restored to the team after starting Wednesday’s 4-0 Champions League play-off win over Club Brugge on the bench, United started purposefully, but Swansea enjoyed a purple patch mid-way through the first half.

Gomis sliced off target, Gylfi Sigurdsson shot inches wide from Jonjo Shelvey’s cleverly disguised free-kick and Gomis then prodded a shot against the post after wriggling into the box from the right.

Encouraging signsThey were encouraging signs for a team bereft of the livewire Jefferson Montero due to injury, but three minutes into the second half they fell behind. Luke Shaw was given space to motor down the United left and after his cross passed between Wayne Rooney and Neil Taylor at the near post, Mata ghosted in behind Swansea captain Ashley Williams to slam home.

Swansea goalkeeper Lukasz Fabianski had to save from both his own teammate Williams and Mata as United looked to press home their advantage, but a tactical switch saw the hosts turn the game around in just five minutes.

Ki Sung-yueng replaced Wayne Routledge, bolstering Swansea’s midfield, and three minutes later Sigurdsson crossed from the right for Ayew to beat Sergio Romero with a downward header.

Five minutes later Ayew turned provider with an exquisite, outside-of-the-foot pass from wide on the right, but Romero should have done better than allow Gomis’s tame shot to trickle beneath him.

It was Gomis’ fourth goal of the campaign with Ayew having earlier claimed his third.