The first known appearance of the word "yoga", with the same meaning as the modern term, is in the Katha Upanishad,[10][95] probably composed between the fifth and third century BCE,[96][97] where it is defined as the steady control of the senses, which along with cessation of mental activity, leading to a supreme state.[67][note 13] Katha Upanishad integrates the monism of early Upanishads with concepts of samkhya and yoga. It defines various levels of existence according to their proximity to the innermost being Ātman. Yoga is therefore seen as a process of interiorization or ascent of consciousness.[99][100] It is the earliest literary work that highlights the fundamentals of yoga. White states:
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.[185] 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.[186] Yoga is a significant practice in Tantric Buddhism.[187][188][189]

If the meaning of yoga is understood as the practice of nirodha (mental control), then its goal is "the unqualified state of niruddha (the perfection of that process)",[147] according to Baba Hari Dass. In that context, "yoga (union) implies duality (as in joining of two things or principles); the result of yoga is the nondual state", and "as the union of the lower self and higher Self. The nondual state is characterized by the absence of individuality; it can be described as eternal peace, pure love, Self-realization, or liberation."[148]
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]

Mental illness is described as 'the spectrum of cognitive, emotional, and behavioral conditions that interfere with social and emotional well-being and the lives and productivity of people. Having a mental illness can seriously impair, temporarily or permanently, the mental functioning of a person. Other terms include: 'mental health problem', 'illness', 'disorder', 'dysfunction'.[37]

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.[24] 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.[25]