The first chance of the game fell to Bayern as early as the third minute thanks to Franck Ribery.
The French winger carved his way into the visitors' penalty box and flashed the ball across the face of the goal, but Mario Mandzukic was not present in the vicinity to turn it home.
Bayern did not have to wait long to open the scoring though, as Ribery found the target in the 19th minute.
The 29-year-old galloped past Hoffenheim defender Andreas Beck and fired in from a tight angle.
The win sees Bayern remain at the top of the league table with 21 points from seven matches.