X-ray observations as a probe of galaxy formation, a topic that encompasses a wide range of key unresolved astrophysical problems such as the nature and distribution of dark matter in the universe and the ejection of metals into the intergalactic medium