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 Yajnavalkya is a classical treatise on yoga attributed to the Vedic sage Yajnavalkya. It takes the form of a dialogue between Yajnavalkya and Gargi, a renowned philosopher. The text contains 12 chapters and its origin has been traced to the period between the second century BCE and fourth century CE. Many yoga texts like the Hatha Yoga Pradipika, the Yoga Kundalini and the Yoga Tattva Upanishads have borrowed verses from or make frequent references to the Yoga Yajnavalkya. The Yoga Yajnavalkya discusses eight yoga Asanas – Swastika, Gomukha, Padma, Vira, Simha, Bhadra, Mukta and Mayura, numerous breathing exercises for body cleansing, and meditation.
The spiritual sense of the word yoga first arises in Epic Sanskrit, in the second half of the 1st millennium BCE, and is associated with the philosophical system presented in the Yoga Sutras of Patanjali, with the chief aim of "uniting" the human spirit with the Divine. The term kriyāyoga has a technical meaning in the Yoga Sutras (2.1), designating the "practical" aspects of the philosophy, i.e. the "union with the supreme" due to performance of duties in everyday life.