Patanjali lived earlier than 2nd century BC. Near Taxila. He compiled the existing material on Yoga and systematized it into ‘Yoga sutra’. He also composed the ‘Mahabhasya’, a treatise on Panini’s grammar and the present form of ‘Carak Pamhita’, the text of Ayurveda.