If you say that someone is a know-all, you are critical of them because they think that they know a lot more than other people. [British, informal, disapproval]
The photograph of the author on his first book is everything you would hope for from a maths know-all.
regional note: in AM, use know-it-allSynonyms: smart aleck, wise guy [informal], smarty [informal], clever-clogs [informal]