Pre-philosophical speculations of yoga begin to emerge in the texts of c. 500 – c. 200 BCE. Between 200 BCE and 500 CE, philosophical schools of Hinduism, Buddhism, and Jainism were taking form and a coherent philosophical system of yoga began to emerge. The Middle Ages saw the development of many satellite traditions of yoga. Yoga came to the attention of an educated western public in the mid 19th century along with other topics of Indian philosophy.
The Yoga Sutras are also influenced by the Sramana traditions of Buddhism and Jainism, and may represent a further Brahmanical attempt to adopt yoga from the Sramana traditions. As noted by Larson, there are numerous parallels in the concepts in ancient Samkhya, Yoga and Abhidharma Buddhist schools of thought, particularly from 2nd century BCE to 1st century AD. Patanjali's Yoga Sutras is a synthesis of these three traditions. From Samkhya, the Yoga Sutras adopt the "reflective discernment" (adhyavasaya) of prakrti and purusa (dualism), its metaphysical rationalism, as well its three epistemic methods of gaining reliable knowledge. From Abhidharma Buddhism's idea of nirodhasamadhi, suggests Larson, Yoga Sutras adopt the pursuit of altered state of awareness, but unlike Buddhism's concept of no self nor soul, Yoga is physicalist and realist like Samkhya in believing that each individual has a self and soul. The third concept Yoga Sutras synthesize into its philosophy is the ancient ascetic traditions of meditation and introspection, as well as the yoga ideas from middle Upanishads such as Katha, Shvetashvatara and Maitri.
^ Andrew J. Nicholson (2013). Unifying Hinduism: Philosophy and Identity in Indian Intellectual History. Columbia University Press. p. 26. ISBN 978-0-231-14987-7., Quote: "From a historical perspective, the Brahmasutras are best understood as a group of sutras composed by multiple authors over the course of hundreds of years, most likely composed in its current form between 400 and 450 BCE."
The earliest references to hatha yoga are in Buddhist works dating from the eighth century. The earliest definition of hatha yoga is found in the 11th century Buddhist text Vimalaprabha, which defines it in relation to the center channel, bindu etc. Hatha yoga synthesizes elements of Patanjali's Yoga Sutras with posture and breathing exercises. It marks the development of asanas (plural) into the full body 'postures' now in popular usage and, along with its many modern variations, is the style that many people associate with the word yoga today.
An influential text which teaches yoga from an Advaita perspective of nondualistic idealism is the Yoga-Vāsiṣṭha. This work uses numerous short stories and anecdotes to illustrate its main ideas. It teaches seven stages or bhumis of yogic practice. It was a major reference for medieval Advaita Vedanta yoga scholars and before the 12th century, it was one of the most popular texts on Hindu yoga.
According to Zimmer, Yoga philosophy is reckoned to be part of the non-Vedic system, which also includes the Samkhya school of Hindu philosophy, Jainism and Buddhism: "[Jainism] does not derive from Brahman-Aryan sources, but reflects the cosmology and anthropology of a much older pre-Aryan upper class of northeastern India [Bihar] – being rooted in the same subsoil of archaic metaphysical speculation as Yoga, Sankhya, and Buddhism, the other non-Vedic Indian systems."[note 6]
Ascetic practices, concentration and bodily postures described in the Vedas may have been precursors to yoga. According to Geoffrey Samuel, "Our best evidence to date suggests that [yogic] practices developed in the same ascetic circles as the early sramana movements (Buddhists, Jainas and Ajivikas), probably in around the sixth and fifth centuries BCE."
Alexander Wynne observes that formless meditation and elemental meditation might have originated in the Upanishadic tradition. The earliest reference to meditation is in the Brihadaranyaka Upanishad, one of the oldest Upanishads. Chandogya Upanishad describes the five kinds of vital energies (prana). Concepts used later in many yoga traditions such as internal sound and veins (nadis) are also described in the Upanishad. Taittiriya Upanishad defines yoga as the mastery of body and senses.
^ * Wynne states that "The Nasadiyasukta, one of the earliest and most important cosmogonic tracts in the early Brahminic literature, contains evidence suggesting it was closely related to a tradition of early Brahminic contemplation. A close reading of this text suggests that it was closely related to a tradition of early Brahminic contemplation. The poem may have been composed by contemplatives, but even if not, an argument can be made that it marks the beginning of the contemplative/meditative trend in Indian thought."
Vajrayana is also known as Tantric Buddhism and Tantrayāna. Its texts were compiled starting with 7th century and Tibetan translations were completed in 8th century CE. These tantra yoga texts were the main source of Buddhist knowledge that was imported into Tibet. They were later translated into Chinese and other Asian languages, helping spread ideas of Tantric Buddhism. The Buddhist text Hevajra Tantra and Caryāgiti introduced hierarchies of chakras. Yoga is a significant practice in Tantric Buddhism.
Various yogic groups had become prominent in Punjab in the 15th and 16th century, when Sikhism was in its nascent stage. Compositions of Guru Nanak, the founder of Sikhism, describe many dialogues he had with Jogis, a Hindu community which practiced yoga. Guru Nanak rejected the austerities, rites and rituals connected with Hatha Yoga. He propounded the path of Sahaja yoga or Nama yoga (meditation on the name) instead. The Guru Granth Sahib states: