Manchester United put on a show in their final Premier League home match of the season against Newcastle.