Chapter V Sloka 23

z²aetIhEv y> saeFu< ąa]rIrivmae][at!, 
kam³aexaeŃv< veg< s yuKt> s suoI nr>.

žaknotŸhaiva ya× sożhuÕ 
pr˜k’arŸravimok’aõ˜t | 
k˜makrodhodbhavaÕ vegaÕ 
sa yukta× sa sukhŸ nara× ( 5|23)||

He who is able, while still here (in this world) to withstand, before the liberation from the body, the impulse born out of desire and anger-he is a Yogi, he is a happy man.

Commentary:

Yukta means 'harmonised' or steadfast in Yoga or self-abiding. Desire and anger are powerful enemies of peace. It is very difficult to annihilate them. We will have to make very strong efforts to destroy these enemies.

Kama or 'desire' is the flood of thoughts sweeping down  from the pinnacles of our intellect, along the valleys of our heart, towards an object of desire in the outer world. When this flood of thought is barricaded by a substantial obstacle before it reaches its destination, the blast with which it gets shattered on that obstacle is called 'anger'. Kama and Krodha, desire and anger, are two sides of the same coin. Kama denied leads to Krodha; the greater the desire, the greater the disappointment and consequent anger. Purandaradasar stated this beautifully thus: "aasaigal eshto niraasigal inneshto" "so much desire, and, much more disappointment".

He who has gained mastery over kama and krodha is the one who can afford to live and act in this world of multiplicity and imperfections, as an independent man of true and steady happiness.

The Yogi controls the impulse born of desire and anger, destroys the currents of likes and dislikes and attains to equanimity of the mind, by resting in the innermost Self, and revelling in eternal Bliss. ( Cf . VI. 18)