Math Wizard came sweeping around the final turn on the far outside and poured on the speed in the stretch to pull off a huge upset in the $1 million Pennsylvania Derby (G1) on Saturday at Parx Racing.