Despair is the same as the humour produced by excessive mental suffering in one affected by loss of relatives, and so on.
Some say that it is one of the states included in the formations aggregate.
Its characteristic is burning of the mind. Its function is to bemoan. It is manifested as dejection.
It is suffering because it is suffering due to formations, because of the burning of the mind, and because of bodily dejection.
Hence this is said:
So great the pain despair imparts
It burns the heart as with fever’s flame;
The body’s function it impairs
And so despair borrows from pain its name.
This is the exposition of despair.
Sorrow is like the cooking [of oil, etc.]Vibh-a (Be) adds telādīnaṃ; not in Ee and Ae texts. in a pot over a slow fire.
Lamentation is like its boiling over from the pot when cooking over a quick fire.
Despair is like what remains in the pot after it has boiled over and is unable to do so any more, going on cooking in the pot till it dries up