Returning Alfredo Morelos helped Rangers to bounce back from their midweek setback at Celtic with a double in Sunday's 5-0 hammering of Hearts at Ibrox.
The reigning champions lost top spot in the Scottish Premiership when they were comprehensively beaten 3-0 by Celtic at Parkhead on Wednesday night and there was pressure to keep right behind the Hoops, who won at Motherwell earlier in the day.
Morelos, back after missing his club's previous four matches while on international duty with Colombia, knocked in the opener on 11 minutes and added a second with a drive in the 63rd minute before setting up substitute Glen Kamara for a third.
Scott Arfield and substitute Fashion Sakala added further goals to keep Rangers one point behind their Old Firm rivals.
Giovanni Van Bronckhorst's side came in for heavy criticism following their midweek capitulation to Celtic and the Dutchman made four changes with Morelos, defender Leon Balogun and midfielder John Lundstram coming in along with playmaker Ryan Jack, who made his first start since February 2021.
Hearts defender John Souttar, who has signed a pre-contract with Rangers which will see him switch to Ibrox in the summer, was not even named among the substitutes as Aaron McEneff and Alex Cochrane replaced Ellis Simms and Andy Halliday.
McEneff made an early impact, blocking Joe Aribo's first-minute header from a James Tavernier corner and, after Balogun had headed the second corner over the bar, he robbed Gers defender Calvin Bassey then drove just wide of the target at the other end.
Ryan Kent curled a shot just past Craig Gordon's left-hand post before the former Celtic goalkeeper saved a drive from Morelos.
However, the Colombian was not to be denied a second time as he knocked in a cut-back from Kent, who had raced on to a defence-splitting pass from Bassey.
The home side had the upper hand and, in the 24th minute, a wonderful move with Morelos and Kent ended with the latter curling another shot past the far post.
Rangers fans screamed for a penalty in the 35th minute when Nathaniel Atkinson looked to have grabbed Kent's shirt inside the box but referee Willie Collum was unimpressed.
Gordon saved Morelos' effort from the edge of the box to finish of the first-half action and, after Simms was introduced in place of McEneff at the start of the second half, the visitors missed two quick chances to level.
Atkinson got in behind Bassey to send a Stephen Kingsley cross past the post and then, when the Rangers left-back was short with a headed pass back to Allan McGregor, Jambos midfielder Cammy Devlin lobbed the ball wide of the target.
As the match became increasingly tetchy, Jambos boss Robbie Neilson was booked by Collum, presumably for something said to the fourth official Andrew Dallas.
Morelos' second goal came when he tried to play in Scott Arfield but his pass broke off Kingsley and back into his path and, from the edge of the box, he curled the ball past Gordon and into the far corner of the net.
Moments later, the Ibrox striker had a chance of a hat-trick when he powered through the Gorgie defence but drove straight at Gordon before McGregor denied Barrie McKay at the other end.
In the 71st minute Morelos took a pass from Aribo and moved it on to Kamara, on for Jack, and he wrong-footed chasing Alex Cochrane before blasting the ball past Gordon.
Arfield then hammered in a fourth from 16 yards in the 74th minute before Aaron Ramsey, the deadline-day loan signing from Juventus, replaced him to make his Rangers debut, with Sakala also coming on for Aribo and the striker converted a Kent pass in the 84th minute to seal a convincing performance.