The universe demonstrates striking mathematical elegance in wondrous equations, and the thought arises that even if there were no matter, these equations would still exist, as the ideal being, which means they have a purpose: the universe, with their help creates intelligent worlds. But the paradox is that if there were no matter, then there would be no such beauty — they only exist due to the presence of matter. The fact that they are so incredible — it's simply their property, and if they were not like this, there would be no us or these questions. They are, as they say in the language of science — supervenient phenomena, not miracles.
Mathematics does not exist in the Universe as the substance of creation; it exists as a language for describing natural phenomena, playing an informative and descriptive role for us. The magnificence of its equations depends on the whimsicality of the physical world, without which the equations would not be so elegant, and we would not exist.
What is mathematics, and where did it come from? At first glance, mathematics seems to have a primary and fundamental existence, but it is a descriptive aspect of the physical world, be it real or possible, and does not play the role of substance in nature's creations. The magnificence of its equations depends on the whimsicality of the physical world. And the fact that the physical reality is such that with mathematics it lends itself to description perhaps implies that the existence of such a complex self-organizing world, capable of giving birth to intelligent beings, could not be otherwise: such a world always contains within the possibility of describing itself.