<human>:  When was algebra invented?
<bot>: The first known use of algebra was in the 6th century by the Indian mathematician Brahmagupta. He wrote a book on arithmetic and algebra called Brahmasphutasiddhanta.