Astronomy is the study of objects and phenomena beyond Earth, whereas cosmology is a branch of astronomy that studies the origin of the universe and how it has evolved. For example, the big bang, the origin of the chemical elements, and the cosmic microwave background are all subjects of cosmology. However, other subjects such as extrasolar planets and stars in the present Milky Way Galaxy are not.