Solution:Al-beruni was born in AD 973 in the territory of Khwarizm, now called Khiva, in Central Asia. He was not a secular writer because Al-beruni never gave any sympathetic reference to the contemporary event of Somnath temple raid by Mahmud of Ghazni in 1025/1026.He spent the first twenty-five years of his life in Khwarezm where he studied Islamic jurisprudence, theology, grammar, mathematics, astronomy, medicine, philosophy and most other sciences. In AD 1017, when Mahmud of Ghazni was the ruler, most scholars, including Alberuni, were taken to Ghazni, the capital of the Ghaznavid dynasty. Abu Rayhan Muhammad was made a court astrologer and accompanied Mahmud of Ghazní on his invasions into India in the 11th century (probably in Punjab), living here for a few year. In his book Tahqiq-i-Hind, he described the social, political, religious and economic condition of India. In his account he highlights choice parts of the Gita, the Upanishads, Patanjali, Puranas, the four Vedas