At the University of Glasgow, Haldane took the standard course for at this time all university students basically studied the same subjects. He then went to the University of Edinburgh where he studied divinity. After this he acted as a tutor to the Robinson family of Leddriegreen House, Strathblane, and then to the Moray family of Abercairney, Perthshire. On 5 December 1797 he was licensed by the presbytery of Auchterarder. He then was appointed minister at Drumelzier in Peeblesshire and was ordained on 9 March 1807. Thirty months later he resigned this position when appointed as Regius Professor of Mathematics at the University of St Andrews. The chair had fallen vacant on the death of Nicholas Vilant on 25 May 1807 and had remained vacant until Haldane was appointed.
We have not included Haldane in this collection of biographies of mathematicians because of his expertise in mathematics. Sadly around this time appointments to the Regius Chair of Mathematics at St Andrews were not made on the strength of mathematical abilities. Rather the Church dominated appointments to the University, so that it could control the scientific views taught there, and standing in Church politics was a far more important factor than was scientific ability. In fact Haldane was appointed to the Regius Chair in preference to several other candidates who were in a different class to him as a mathematician. The two most mathematically talented of the candidates who were rejected in favour of Haldane were Wallace and Ivory. Despite this Haldane appears to have made a good teacher for Conolly writes  that:-
... it was well known that his mathematical drilling was the most successful ever exhibited in any of our Scottish colleges.In 1819 Leslie, who had been the professor of mathematics at Edinburgh since 1805, resigned the chair when appointed to the more prestigious post of professor of natural philosophy. Haldane applied for the Edinburgh Chair of Mathematics which was at that time considered the most prestigious mathematics chair in Scotland. Wallace and Babbage were also applicants but Babbage stood little chance since he was an Englishman. In the end it came down to a straight contest between Haldane and Wallace; Wallace was appointed by 18 votes to 10. Another position opened up, however. When Professor George Hill, principal of St Mary's College in St Andrews (the divinity College of the University), died it was Haldane who succeeded him as principal of St Mary's College and professor of theology on 21 September 1820. Earlier that year, on 24 January, he had been elected a Fellow of the Royal Society of Edinburgh.
The positions of principal of St Mary's College and professor of theology were not well paid and it was the custom that the holder of these positions was also minister at the Holy Trinity Church in South Street, St Andrews. Haldane followed the custom and was appointed to the parish church. As principal of St Mary's College, Haldane came into conflict with Sir David Brewster, principal of the United College of St Salvator and St Leonard :-
Brewster [conducted a] vendetta against Haldane, [who put up a] sturdy defence of his administration and financial management of his college.Haldane did not publish a single item on mathematics. Indeed he only published one work which was a pamphlet on poverty in St Andrews (1841). As to his character, Conolly writes  that he was:-
... of unceasing charity ..., his heart was entirely in the well-being of his students.Haldane never married. He died in St Mary's College and was buried six days later in the cathedral cemetery.
Article by: J J O'Connor and E F Robertson