Maxwell's book on electromagnetism, it shows his hindsight perspective on interpreting the phenomena. One can look at the papers and works he wrote that led up to it, but they are full of detours and unbalanced attention with small dead ends. When he writes his book he tries to convince the audience of his time in one comprehensive work. What I love especially, is that he is very careful and systematic about his conc…
Which book is this? I believe reading the original masters who came up with the discoveries is the way to understanding. It is said that when the Great Mathematician Gauss was asked as to how he made his discoveries, replied; "By studying the Masters and not their Students". There is something about the process of trial and error, testing various hypothesis', going down dead ends and then doubling back and finally li…
vol I
https://archive.org/details/electricandmagne01maxwrich
vol II
https://archive.org/details/electricandmag02maxwrich
The relevant section is in the preliminaries in Vol I : I assume you already know electromagnetism, I suggest jumping to pdf pages 52 "on potentials" and reading till 57. No modern textbook will explicitly introduce such an assumption, instead modern textbooks assume the student has been indoctrinated with cartesian product spaces i.e. R^3 etc. Such students would have seen in prior analysis courses that the line integral of the gradient of a scalar function does not depent on the path [... in R^n!]. So if curricula and students implicitly and a priori exclude spaces other than R^n, then no student will protest that for example the line integral of the electric field between 2 points could depend on the exact path, making all subsequent math and theorems more tractable, at the "small price" of a priori excluding the (arguably) confusing possibilities of handles (if you are a mathematiciann), wormholes (if your a physicist).
Maxwell on the contrary refuses compromise on investigative accuracy to "ease the job of didactics", theres many examples of that throughout the treatise.