Manchester United survived with 10 men for over 45 minutes to leave Old Trafford with a 3–2 victory over Ipswich Town.