Almost everyone loves to hear about cosmology. Public lectures on the subject pack in large and enthusiastic audiences. And what's not to like? Cosmology deals with the deepest questions in science: the beginning of the universe, the end of the universe, and everything in between. Recent years have seen numerous breakthroughs in our understanding of the universe, and yet the remaining mysteries, like dark matter and dark energy, provide tantalizing clues that much remains to be discovered.
So cosmology ought to figure prominently in science fiction, right? Actually, not so much. And I think there's a very good reason for this.
Probably the first story science fiction story to give a prominent place to cosmology was Olaf Stapledon's Star Maker, which sweeps across the entire history of the universe. What's that? You've never heard of Star Maker? Maybe that's because for all its majestic scale, it's dry as dirt.
A more famous story with a cosmological theme is Isaac Asimov's "The Last Question" (often confused with Fredric Brown's "Answer," since both stories deal with computers that achieve "extreme" powers). I won't spoil Asimov's story for you - if you haven't read it, go track down a copy. But it does a good job of conveying the awesome sweep of the future history of the universe.
So why haven't we seen more stories with cosmological themes? I think the answer is that good science fiction, at its core, is always about people and their problems. And cosmology is very much not about people. It's extraordinarily difficult to combine the enormous length scales and time scales of cosmology with the lives of ordinary human beings. An excellent example of how to do this is Stephen Baxter's "Last Contact." In Baxter's story, a scientist has helped to discover that the entire universe will be destroyed shortly in a "big rip", and the story chronicles the remaining few months of her life through conversations with her mother in their garden. Baxter succeeds in putting a human face on cosmology by zooming in on intimate personal relationships in the midst of this cosmological catastrophe. I tried to do something similar in my story "Extra Innings", which was consciously patterned after Asimov's short story. Whether I succeeded or not you can decide for yourself.