Quickfire goals from the recalled Franck Ribery and Robert Lewandowski saw the home side race into a 2-0 lead inside 10 minutes before a stunning Raphael Guerreiro strike halved the deficit. If we play well against Dortmund then obviously our confidence goes up ahead of the Real game.
Ribery finished a first time cross from Philipp Lahm in the fourth minute to start Bayern's rampage in the match.
Pierre-Emerick Aubameyang, who started the day as the Bundesliga's top scorer with 25 goals but ended it one behind Lewandowski, was largely anonymous but could have halved the deficit after 67 minutes, bursting clean through only to see his shot cleared off the line by Boateng.
Bayern go into the Dortmund match looking to bounce back from their first defeat since November in midweek, when they went down 1-0 to Hoffenheim.
"We want to win the game, to stay in the flow and take a good mood into the game against Real".
In the 50th minute Robben got on the score sheet to give Bayern the win.More news: IRS assigns some old debts to private collection agencies
Dortmund visits Bayern Munich in the Bundesliga on Saturday before welcoming French league leader Monaco for the first leg of the Champions League quarterfinals on Tuesday.
Earlier, Yussuf Poulsen's goal deep in added time gave 10-man RB Leipzig a 1-0 victory over Bayer Leverkusen.
This story has been corrected to show that Yussuf Poulsen scored Leipzig's victor, not Emil Forsberg. "We expect the best possible Bayern side and trust we can match them for 90 minutes", Tuchel said. So far this season he has played in 31 of the team's 39 competitive games, contributing five goals and setting up four more.
Wolfsburg, the 2009 champions, are just one point above the bottom three after a 4-1 hammering away to mid-table Schalke, for whom Guido Burgstaller netted twice.
Mainz are only outside the relegation places on goal difference after their 1-0 defeat at Freiburg, whose striker Nils Petersen scored the second-half victor off the bench. They're one point behind third place Hoffenheim, but a comfortable nine points ahead of fifth place Freiburg.
Cologne lost 3-2 at home to local rivals and fellow European hopefuls Borussia Moenchengladbach. Horn conceded two more after halftime, including 'Gladbach captain Lars Stindl's 80th-minute victor.