Final answer:
The fictional book 'A History of Magic' mentioned in the Harry Potter series was written by the character Bathilda Bagshot.
Step-by-step explanation:
The Hogwarts textbook 'A History of Magic' was written by Bathilda Bagshot. This fictional book is mentioned in the Harry Potter series created by J.K. Rowling, and is frequently used by student witches and wizards to learn about the history and the different aspects of the magical world, including magic's origin, evolution, and impact on the wizarding society. While the book plays an integral role in the education of magical history at Hogwarts School of Witchcraft and Wizardry, please note that this is a literary creation and not an actual historical textbook.