'Eldest' is used for the oldest person within a family. 'Oldest' can be used for people or things outside of a family context. 'Elder' is used before a noun (e.g., 'elder brother') or as a noun itself meaning an older person, but 'the eldest' is used for the superlative within a family.