Wayne Rooney and Robin van Persie were on target as Manchester United eased to a 3-1 win against Newcastle.