Answer by taking a quote from the following article:

David was born on 28 January 1858, in St. Fagans near Cardiff, Wales, the eldest son of the Rev. William David, a fellow of Jesus College, Oxford, a classical scholar and naturalist and his wife Margaret Harriette (nee Thomson). His mother's cousin, William A. E. Ussher of the Geological Survey, first interested David in what was to be his life work. At the age of 12, David went to Magdalen College School, Oxford in 1870. In 1876 he gained a classical scholarship to New College, Oxford.

In 1896 the Davids bought 26 acres (10.5 hectares) at Woodford, in the Blue Mountains, with an existing weatherboard cottage, two-roomed with two skillion rooms at the back. To emphasise his Welsh origins, Edgeworth David named the Woodford cottage 'Tyn-y-Coed', the 'house in the trees' (often mistranslated as 'the shack in the bush': 'ty' is a proper house in Welsh, not a mere hut).  In 1915 the Davids offered their home to the Red Cross convalescent home for the rehabilitation of injured servicemen and the Woodford Academy boys erected a flagstaff for the Union Jack and Red Cross flags for the soldiers in residence. When the Cooee marchers trooped past in November 1915 some of the wounded soldiers were brought up to the main road to greet the marchers. Although they had work and commitments in Sydney, Woodford was the David's primary residence from 1899 until 1920. They retained the Woodford cottage as a favoured country retreat until Edgeworth's death in 1934. Tyn-y-Coed was destroyed by bushfire in 1944 with only a chimney stump remaining. Its grounds are now occupied by eight modern houses, their gardens and adjoining bush.  In September 1920, David was created a Knight Commander of the Order of the British Empire for services during the war.  Returning to Australia, David purchased Coringah, a cottage in the Sydney suburb of Hornsby. He also took up a long-cherished project, the writing of a definitive work, The Geology of the Commonwealth of Australia. In 1921-22 David helped set up the Australian National Research Council and served as its first President. In 1924 he retired as Professor of Geology at the University of Sydney, the chair passing to his student Leo Cotton, a neighbour in Hornsby, New South Wales, whose brother Max Cotton created Lisgar Gardens in Hornsby. In 1928 he discovered what he believed were Precambrian fossils, creating controversy which remained until his death.  In 1931 he published the Geological Map of the Commonwealth and the accompanying Explanatory Notes, designed to be part of his Geology of the Commonwealth of Australia. He died in 1934 without being able to complete this work and was given a state funeral.

Did he live alone or was he married?