From the 'six schools of philosophy,' Nyaya is the school of rationalists that focuses on knowledge and logic. The six schools of Indian philosophy are Sāṅkhya, Yoga, Nyāya, Vaiśeṣika, Mīmāṁsā, and Vedānta. Composed by Akṣapāda Gautama, the sutras are divided into five chapters, each with two sections. The work begins with a statement of the subject matter, the purpose, and the relation of the subject matter to the attainment of that purpose. The ultimate purpose is salvation—i.e., complete freedom from pain—and salvation comes from the attainment of knowledge.