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,[8] in ancient India's ascetic and śramaṇa movements.[9][note 2] The chronology of earliest texts describing yoga-practices is unclear, varyingly credited to Upanishads.[10] The Yoga Sutras of Patanjali date from the first half of the 1st millennium CE,[11][12] but only gained prominence in the West in the 20th century.[13] Hatha yoga texts emerged around the 11th century with origins in tantra.[14][15]
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]
^ "application or concentration of the thoughts, abstract contemplation, meditation , (esp.) self-concentration, abstract meditation and mental abstraction practised as a system (as taught by Patañjali and called the yoga philosophy; it is the second of the two sāṃkhya systems, its chief aim being to teach the means by which the human spirit may attain complete union with īśvara or the Supreme Spirit; in the practice of self-concentration it is closely connected with Buddhism". Monier-Williams, A Sanskrit Dictionary (1899)
The first Hindu teacher to actively advocate and disseminate aspects of yoga, not including asanas, to a western audience, Swami Vivekananda, toured Europe and the United States in the 1890s.[204] The reception which Swami Vivekananda received built on the active interest of intellectuals, in particular the New England Transcendentalists, among them Ralph Waldo Emerson (1803–1882), who drew on German Romanticism and philosophers and scholars like G. W. F. Hegel (1770–1831), the brothers August Wilhelm Schlegel (1767–1845) and Karl Wilhelm Friedrich Schlegel (1772–1829), Max Mueller (1823–1900), Arthur Schopenhauer (1788–1860), and others who had (to varying degrees) interests in things Indian.[205][206]

One of the best known early expressions of Brahmanical Yoga thought is the Yoga Sutras of Patanjali , the original name of which may have been the Pātañjalayogaśāstra-sāṃkhya-pravacana (c. sometime between 325 - 425) which some scholars now believe included both the sutras and a commentary.[129] As the name suggests, the metaphysical basis for this text is the Indian philosophy termed Sāṃkhya. This atheistic school is mentioned in Kauṭilya's Arthashastra as one of the three categories of anviksikis (philosophies) along with Yoga and Cārvāka.[130][131] The two schools have some differences as well. Yoga accepted the conception of "personal god", while Samkhya developed as a rationalist, non-theistic/atheistic system of Hindu philosophy.[132][133][134] Sometimes Patanjali's system is referred to as Seshvara Samkhya in contradistinction to Kapila's Nirivara Samkhya.[135] The parallels between Yoga and Samkhya were so close that Max Müller says that "the two philosophies were in popular parlance distinguished from each other as Samkhya with and Samkhya without a Lord."[136]