Classical yoga incorporates epistemology, metaphysics, ethical practices, systematic exercises and self-development techniques for body, mind and spirit.[144] Its epistemology (pramana) and metaphysics is similar to that of the Sāṅkhya school. The metaphysics of Classical Yoga, like Sāṅkhya, is mainly dualistic, positing that there are two distinct realities. These are prakriti (nature), which is the eternal and active unconscious source of the material world and is composed of three gunas, and the puruṣas (persons), the plural consciousnesses which are the intelligent principles of the world, and are multiple, inactive and eternal witnesses. Each person has a individual puruṣa, which is their true self, the witness and the enjoyer, and that which is liberated. This metaphysical system holds that puruṣas undergo cycles of reincarnation through its interaction and identification with prakirti. Liberation, the goal of this system, results from the isolation (kaivalya) of puruṣa from prakirti, and is achieved through a meditation which detaches oneself from the different forms (tattvas) of prakirti.[243] This is done by stilling one's thought waves (citta vritti) and resting in pure awareness of puruṣa.
^ Gavin Flood: "These renouncer traditions offered a new vision of the human condition which became incorporated, to some degree, into the worldview of the Brahman householder. The ideology of asceticism and renunciation seems, at first, discontinuous with the brahmanical ideology of the affirmation of social obligations and the performance of public and domestic rituals. Indeed, there has been some debate as to whether asceticism and its ideas of retributive action, reincarnation and spiritual liberation, might not have originated outside the orthodox vedic sphere, or even outside Aryan culture: that a divergent historical origin might account for the apparent contradiction within 'Hinduism' between the world affirmation of the householder and the world negation of the renouncer. However, this dichotomization is too simplistic, for continuities can undoubtedly be found between renunciation and vedic Brahmanism, while elements from non-Brahmanical, Sramana traditions also played an important part in the formation of the renunciate ideal. Indeed there are continuities between vedic Brahmanism and Buddhism, and it has been argued that the Buddha sought to return to the ideals of a vedic society which he saw as being eroded in his own day."[48]
Modern yoga was created in what has been called the Modern Yoga Renaissance[216] by the blending of Western styles of gymnastics with postures from Haṭha yoga in India in the 20th century, pioneered by Shri Yogendra and Swami Kuvalayananda.[217] Before 1900 there were few standing poses in Haṭha yoga. The flowing sequences of salute to the sun, Surya Namaskar, were pioneered by the Rajah of Aundh, Bhawanrao Shrinivasrao Pant Pratinidhi, in the 1920s.[218] Many standing poses used in gymnastics were incorporated into yoga by Krishnamacharya in Mysore from the 1930s to the 1950s.[219] Several of his students went on to found influential schools of yoga: Pattabhi Jois created Ashtanga Vinyasa Yoga,[220] which in turn led to Power Yoga;[221] B. K. S. Iyengar created Iyengar Yoga, and systematised the canon of asanas in his 1966 book Light on Yoga;[222] Indra Devi taught yoga to many film stars in Hollywood; and Krishnamacharya's son T. K. V. Desikachar founded the Krishnamacharya Yoga Mandalam in Chennai.[223][224][225] Other major schools founded in the 20th century include Bikram Choudhury's Bikram Yoga and Swami Sivananda of Rishikesh's Sivananda Vedanta Schools of Yoga. Modern yoga spread across America and Europe, and then the rest of the world.[226][227]

According to Tattvarthasutra, 2nd century CE Jain text, yoga is the sum of all the activities of mind, speech and body.[6] Umasvati calls yoga the cause of "asrava" or karmic influx[172] as well as one of the essentials—samyak caritra—in the path to liberation.[172] In his Niyamasara, Acarya Kundakunda, describes yoga bhakti—devotion to the path to liberation—as the highest form of devotion.[173] Acarya Haribhadra and Acarya Hemacandra mention the five major vows of ascetics and 12 minor vows of laity under yoga. This has led certain Indologists like Prof. Robert J. Zydenbos to call Jainism, essentially, a system of yogic thinking that grew into a full-fledged religion.[174] The five yamas or the constraints of the Yoga Sutras of Patanjali bear a resemblance to the five major vows of Jainism, indicating a history of strong cross-fertilization between these traditions.[174][note 16]
The Rigveda, however, does not describe yoga, and there is little evidence as to what the practices were.[7] Early references to practices that later became part of yoga, are made in Brihadaranyaka Upanishad, the earliest Hindu Upanishad.[67] For example, the practice of pranayama (consciously regulating breath) is mentioned in hymn 1.5.23 of Brihadaranyaka Upanishad (c. 900 BCE), and the practice of pratyahara (concentrating all of one's senses on self) is mentioned in hymn 8.15 of Chandogya Upanishad (c. 800–700 BCE).[68][note 8] The Jaiminiya Upanishad Brahmana teaches mantra repetition and control of the breath.[71]
The hymns in Book 2 of the Shvetashvatara Upanishad, another late first millennium BCE text, states a procedure in which the body is held in upright posture, the breath is restrained and mind is meditatively focussed, preferably inside a cave or a place that is simple, plain, of silence or gently flowing water, with no noises nor harsh winds.[102][103][100]
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."[109] In addition to an entire chapter (ch. 6) dedicated to traditional yoga practice, including meditation,[113] it introduces three prominent types of yoga:[114]

The origins of yoga have been speculated to date back to pre-Vedic Indian traditions; it is mentioned in the Rigveda,[note 1] but most likely developed around the sixth and fifth centuries BCE, in ancient India's ascetic and śramaṇa movements.[8][note 2] The chronology of earliest texts describing yoga-practices is unclear, varyingly credited to Upanishads.[9] The Yoga Sutras of Patanjali date from the first half of the 1st millennium CE,[10][11] but only gained prominence in the West in the 20th century.[12] Hatha yoga texts emerged sometimes between the 9th and 11th century with origins in tantra.[13][14]