www.accesstoinsight.org
I have heard that on one occasion the Blessed One was staying at Varanasi in the Game Refuge at Isipatana. There he addressed the group of five monks:
"There are these two extremes that are not to be indulged in by one who has gone forth. Which two? That which is devoted to sensual pleasure with reference to sensual objects: base, vulgar, common, ignoble, unprofitable; and that which is devoted to self-affliction: painful, ignoble, unprofitable. Avoiding both of these extremes, the middle way realized by the Tathagata — producing vision, producing knowledge — leads to calm, to direct knowledge, to self-awakening, to Unbinding."
OK, let me break it down:
"There are these two extremes that are not to be indulged in by one who has gone forth. Which two?
- That which is devoted to sensual pleasure with reference to sensual objects: base, vulgar, common, ignoble, unprofitable;
this is id function--pleasure principle
- and that which is devoted to self-affliction: painful, ignoble, unprofitable
this is superego function--perfecting principle
- Avoiding both of these extremes, the middle way realized by the Tathagata — producing vision, producing knowledge — leads to calm, to direct knowledge, to self-awakening, to Unbinding."
this is ego function--reality principle. Notice how it produces vision and knowledge and leads to calm, to direct knowledge, to self-awakening, to Unbinding. Without the ego, we will remain ignorant, trapped within the suffering caused by the warring between the id and the superego. The middle path.