According to Pāṇini, the term yoga can be derived from either of two roots, yujir yoga (to yoke) or yuj samādhau ("to concentrate"). In the context of the Yoga Sutras of Patanjali, the root yuj samādhau (to concentrate) is considered by traditional commentators as the correct etymology. In accordance with Pāṇini, Vyasa who wrote the first commentary on the Yoga Sutras, states that yoga means samādhi (concentration).
The Bhagavad Gita ('Song of the Lord') is part of the Mahabharata and also contains extensive teachings on Yoga. According to According to Mallinson and Singleton, the Gita "seeks to appropriate yoga from the renunciate milieu in which it originated, teaching that it is compatible with worldly activity carried out according to one's caste and life stage; it is only the fruits of one's actions that are to be renounced." In addition to an entire chapter (ch. 6) dedicated to traditional yoga practice, including meditation, it introduces three prominent types of yoga: