Evolution of Matter and Energy on a Cosmic and Planetary Scale