When play began, Nottinghamshire led by 127 with seven wickets in hand, but it was soon clear there was more than enough in the pitch for a seam attack of Yorkshire’s quality to inflict more damage.
White struck with the fourth ball of the day, finding the outside edge as Jack Haynes defended his off stump.
He quickly chalked up another scalp when he drew Ben Martindale into a drive outside off stump and caught the edge again, Dom Bess snaring the catch at third slip.
Mitchell Hay was beaten past the inside edge to be leg before as White claimed his third of the day, while Coad took two in two balls as Bess grabbed two more catches to remove Liam Patterson-White and Brett Hutton.
Tom Giles, Nottinghamshire’s injury replacement for Olly Stone, became victim number five for White before Lyndon James was cleaned up by Coad to complete the destruction in just short of an hour-and-a-half.
Leading wicket-taker George Hill, needing two more to total 50 first-class wickets or more for the second season running, did not get a look-in.
Chasing 158 should have been plain sailing, especially with Stone out of the game after feeling hamstring discomfort following his first-innings five-for.
Openers Luxton and Adam Lyth gave the innings a solid foundation with 54 in 12 overs before Lyth pushed at one outside off stump from Hutton and was caught behind.
Hutton then removed Sam Whiteman via a thin outside edge before left-arm spinner Patterson-White had James Wharton leg before.
Luxton, who had just completed a half-century from 78 balls, lost his composure and was caught off a top edge with an attempted pull, but needing just 50 more at tea with six wickets in hand, Yorkshire remained strong favourites.
Yet Pakistan seamer Ali bowled Matt Revis with one that shot through and had Dom Bess caught at slip, either side of Hill falling stumped, to turn the pressure up still further.
Bairstow drew on his experience – and mental toughness – hitting two fours and a six in one Ali over, then swishing and missing at four balls of the next before getting the job done.
ECB Reporters’ Network supported by Rothesay.