A second key element to a Shakespearean comedy is: the comic solution. Every comedy must come to a happy ending in which the deception of the comic individual is wiped away, and he is able to see, once again, his true job. In The Tempest, the comic solution comes in Act 5 Scene 1 when Alonso forgives Prospero and returns him to Duke status. At this point Prospero knows what he has done and know that he must be more vigilant as the Duke of Milan. He knows not to be distracted by his books or studies anymore and is returned to his senses. In the end, everyone is returned to Italy, Prospero has been returned, the King has been forgiven, and Ariel has been freed. Not tragedy occurs.
-Kevin Connor