You need to have all of the spells that Erasmus asks you about.
There are some impassable parts to the maze, that don't look all that much like dead ends. If you find one, just take another approach to the finish.
You will need to move boulders and ladders to clear a path.