Frazer was admitted to the University of Pennsylvania in 1828, where he became interested in science. While at the university, and for some time after graduating, he assisted in the laboratory of professor
Alexander Dallas Bache, where he studied
magnetic variance and the
Aurora Borealis. He then studied law, and briefly practiced as a lawyer from 1833, before turning to the study of medicine. He became a member of the Academy of Natural Sciences in September 1835 and of the
Franklin Institute in November 1835. He assisted in the geological survey of Pennsylvania in 1836, under professor
Henry Darwin Rogers. Frazer was a professor at the Philadelphia high school from 1836 to 1844, when he was chosen as Professor of Chemistry and Physics at the University of Philadelphia to replace professor Bache, a position he held until his death. For a period, he studied in the laboratory that
James Curtis Booth, the eminent chemist, established in 1836. ==Professor of chemistry and physics==