"The fundamental fact about all of us is that we're alive for a while but will die before long. This fact is the real root cause of all our anger and pain."
I would not dare to say that there is a direct relation between mathematics and madness, but there is no doubt that great mathematicians suffer from maniacal characteristics.