The Three Opening Sutras
The Yoga Sutras begin with three statements that contain the entire teaching:
*Atha yoga-anushasanam.*
"Now, the teaching of yoga."
*Yogas-chitta-vritti-nirodhah.*
"Yoga is the cessation of the fluctuations of the mind."
*Tada drashtuh svarupe avasthanam.*
"Then the seer rests in its own nature."
Three lines. The subject, the definition, the result. Everything that follows is elaboration.
The Science
Yoga in Patanjali's system is not primarily physical. It is a psychology - a systematic analysis of the mind (chitta) and its fluctuations (vrittis).
The fluctuations are of five kinds: valid cognition, error, imagination, sleep, and memory. They are either painful or not painful. They can be colored by attraction and aversion and ignorance, or they can be uncolored.
The practice is to still them progressively.
The Eight Limbs
The Ashtanga - eight limbs - of yoga:
Yama (ethical restraints), Niyama (personal observances), Asana (posture), Pranayama (breath), Pratyahara (withdrawal of senses), Dharana (concentration), Dhyana (meditation), Samadhi (absorption).
The first four are outer. The last four are inner. The final three - concentration, meditation, absorption - together are called samyama: the complete discipline.
Samadhi
Samadhi is the goal: the state where the mind is completely still and the seer - the consciousness - rests in its own nature, without the colorings and disturbances of the fluctuating mind.
This is liberation in the Yoga Sutras' terms: not escape from the world, but seeing the world without the distortions of an agitated mind.
Patanjali
The tradition credits Patanjali with authoring the Yoga Sutras, a great Sanskrit grammar commentary, and a text on Ayurveda. He may have been multiple people, or one person of extraordinary range. The Yoga Sutras are what survive as his central achievement.