The quote: "Though this be madness, yet there is method in it" (Act 2, scene 2, 206) is from William Shakespeare's play, "Hamlet" (1602). These words, spoken by Polonius as an aside, are significant as they shows he suspects Hamlet is not actually mentally unstable. Here, Polonius is talking with prince Hamlet in the hope of unearthing a real reason for his madness. By telling someone “there is a method in your madness”, it is a way of asking the other person to trust you until the outcome becomes more apparent. Hamlet and Polonius are now facing this type of situation.

The setting between the two men is made more understandable since the quote coming from the mouth of Polonius is exceeding satirical. In light of some of the things facing Hamlet and not known to Polonius, Hamlet accordingly, at this point, has to think it is advantageous to pretend to be a mad and Polonius must say what he does. Hamlet must appear to be mad; he can't just be a foolish individual.

More Info: grammarist.com