Hamlet is a problem play and one of its theme is madness.
He originally acts mad to fool people into thinking he is harmless while
probing his father’s death and Claudius’s involvement. But as it progresses, his
behavior becomes a problem and seems to lose his grip to reality. Succumbing to
physical violence when under extreme stress shows that Hamlet has deeper-set
issues than merely acting mad