Match ends, Manchester United 2, Cardiff City 0.
Record signing Juan Mata made a confident start to his Manchester United career by playing his part in a morale-boosting win over Cardiff, as Robin van Persie scored on his return after 11 games out.
Six days after United's calamitous Capital One Cup semi-final defeat by Sunderland, Mata improved the mood around Old Trafford by helping to create Van Persie's opener as United kept in touch with the race for next season's Champions League.
Ashley Young cracked in a superb 25-yard shot after the break to make the game more comfortable against a quicksilver Cardiff side.
And although Mata missed two decent chances to crown his debut with a goal, it was an evening of several positives for manager David Moyes as his new £37.1m acquisition departed late on to a standing ovation.
One was the way the 25-year-old Spaniard quickly linked well with his new team-mates following his arrival from Chelsea, while United were also boosted by the return from injury of strikers Van Persie and Wayne Rooney, the latter starting on the bench.
It was not a totally fluent performance, but it brought three points that moved United within two of sixth-placed Everton and made them the first team to win 1,000 points at home in the Premier League.
After losing four of their past six games, the win and the return of key personnel will give United a chance to build momentum before they face Premier League leaders Arsenal on 12 February.
It was a less happy evening for Cardiff boss Ole Gunnar Solskjaer, who was denied a winning return to the club where he was such a prolific striker. His side enjoyed good spells but could not find a cutting edge to go with their possession.
Despite two wins in the FA Cup, the 40-year-old Norwegian is still looking for his first league win as his side remain bottom of the table.
After a miserable month for Moyes's side, the atmosphere has been similarly gloomy at Old Trafford.
But following Mata's signing on Sunday and news of Van Persie and Rooney's return, there was a sense of optimism before kick-off.
And it continued into the match as United took a sixth-minute lead, with Mata involved.
The attacking midfielder, who played behind striker Van Persie, raked the ball out to the left from a deep position and, after Antonio Valencia headed Young's cross onto the bar, the Dutchman scored from close range at the second attempt.
It was a dream start for United and it could have been even better before half-time.
Mata almost set up Young for a second United goal but the winger was inches from the Spaniard's deep cross before Van Persie pulled an effort wide from a narrow angle.
Although Cardiff had fewer chances before the break, they were dangerous on the counter-attack with Craig Noone lively and Mark Hudson drawing a stop from David De Gea following a corner.
There were further nervous moments for the hosts in the second half as Cardiff continued to break quickly.
But Young's strike out of the blue before the hour mark led to a more comfortable spell for Moyes's side.
Mata and Jonny Evans both had decent long-range efforts and, with the crowd urging United to attack, Rooney replaced Van Persie for his first action since 1 January following a groin injury.
His lob almost brought a third goal, as did a Valencia strike that Cardiff goalkeeper David Marshall turned onto the post.
For Moyes, though, this was an encouraging evening that suggested his January transfer dealings have already had a more positive impact than last summer's did.
Check out photos from Tuesday's Premier League matches on the BBC Sport Facebook page.
- 1de Gea
- 2da Silva
- 25A Valencia
- 11GiggsSubstituted forCleverleyat 71'minutes
- 20van PersieSubstituted forRooneyat 63'minutes
- 8MataSubstituted forJanuzajat 85'minutes
- 5HudsonSubstituted forTurnerat 69'minutes
- 16NooneSubstituted forDaehliat 78'minutes
- 18MutchSubstituted forKimat 52'minutes
- 39BellamyBooked at 21mins
- 15Wolff Eikrem
- Craig Pawson
- Shots on Target
Second Half ends, Manchester United 2, Cardiff City 0.
Attempt missed. Wayne Rooney (Manchester United) right footed shot from outside the box is close, but misses to the right. Assisted by Adnan Januzaj.
Attempt missed. Adnan Januzaj (Manchester United) right footed shot from the centre of the box is close, but misses to the right. Assisted by Patrice Evra.
Corner, Cardiff City. Conceded by Phil Jones.
Attempt blocked. Kim Bo-Kyung (Cardiff City) left footed shot from outside the box is blocked. Assisted by Declan John.
Attempt missed. Wayne Rooney (Manchester United) right footed shot from more than 35 yards misses to the right. Assisted by Patrice Evra with a headed pass.
Corner, Cardiff City. Conceded by Rafael.
Corner, Cardiff City. Conceded by Chris Smalling.
Substitution, Manchester United. Adnan Januzaj replaces Juan Mata.
Offside, Manchester United. Juan Mata tries a through ball, but Ashley Young is caught offside.
Fraizer Campbell (Cardiff City) wins a free kick in the attacking half.
Foul by Phil Jones (Manchester United).
Corner, Manchester United. Conceded by Ben Turner.
Attempt blocked. Juan Mata (Manchester United) left footed shot from the centre of the box is blocked. Assisted by Patrice Evra.
Foul by Fraizer Campbell (Cardiff City).
Phil Jones (Manchester United) wins a free kick in the defensive half.
Substitution, Cardiff City. Mats Daehli replaces Craig Noone.
Corner, Manchester United. Conceded by Craig Noone.
Attempt saved. Luis Antonio Valencia (Manchester United) right footed shot from the right side of the box is saved in the bottom left corner. Assisted by Phil Jones with a through ball.