That mathematics describes how the universe works is a consequence of there being uniform laws that describe it. In the oldest book of the Bible, God said that there are regularities/laws of the universe, saying to Job,
"Do you know the laws of the heavens? Can you set up God’s dominion over the earth?" Job 38:33 (NIV)
As far as we can tell, all laws of nature are a consequence of a few fundamental laws. We would say that God is the one who created those laws in the first place. Also, the reason these laws exist still today is because of God's faithfulness in upholding the universe.
God actually has referred to the laws of nature to explain how certain his own promises are and how faithful he is. Through the prophet Jeremiah, it says,
"Thus says the Lord: If I have not established my covenant with day and night and the fixed order of heaven and earth, then I will reject the offspring of Jacob and David my servant and will not choose one of his offspring to rule over the offspring of Abraham, Isaac, and Jacob. For I will restore their fortunes and will have mercy on them.", Jeremiah 33:25-26 (ESV)
The Bible doesn't say anything about God using mathematics to create the universe, but it says a lot about his faithfulness. God's faithfulness is part of the foundation why science is even possible. Science is possible because of a combination of several things:
- God is faithful and not capricious. (Capricious gods like that of Greek mythology would make science impossible.)
- God is rational.
- God created the universe in a way that can be understood. (The laws of nature are both understandable and discoverable.)
- God commanded humans to "fill the Earth and subdue it" (Genesis 1:28). Science, engineering, and technology are part of how we subdue the Earth. If God created humans in his image, then that sure would be very good reason to think we have the capacity to understand what God did. Also, if it wasn't possible to subdue the earth, then it would be a pretty odd thing to command.
Does the Bible suggest that God created mathematics?
No, the Bible does not suggest that God created mathematics. Speaking as a mathematician, I find it odd that many Christians think that God did create mathematics, but could God have made 2+2 be anything other than 4? Of course not. Could God have made the Pythagorean Theorem false in Euclidean geometry? Of course not. Theorems are consequences of the axioms upon which math is based.
"All things were made through him, and without him was not any thing made that was made.", John 1:3 (ESV)
This says that of all the things that are made, they were made by Jesus. It doesn't say that mathematics was created by God.
Some Christians seem to dislike the idea that mathematics is in some sense uncreated, but did God create morality? No, God has been perfectly good and righteous from eternity past; he did not invent or create righteousness. Did God create rationality? No, being rational is part of God's nature. Just as moral goodness and rationality are uncreated and have existed eternally, so also mathematics is uncreated.
To jump into the philosophy of math for just a bit, allow me to state that math is in one sense uncreated and so discovered by humans, and in another sense created by humans. What do I mean?
When you speak in English, are you creating the sentences you speak, or are you discovering them? Either way you answer, you are not creating truth but rather describing it. But back to the question, it at least sometimes is appropriate to say that we create sentences (but not the truth they describe). Mathematics, is closely joined with how it is described. Precisely how math is described is created by humans. But once axioms are set, there are (perhaps limitless) consequences of them, called theorems (and lemmas and corollaries). Mathematicians have a lot of freedom in how they describe the theorems they prove (as well as what to prove), and this freedom is similar to the freedom we have in choosing which words to use when speaking or writing. Since math is so closely tied to the choice of how it is presented, the word "creating" in describing what humans do isn't totally inappropriate. When you speak, if you want to speak truth, you are constrained by external reality. When you describe mathematics, if you want to speak truth, you are constrained by logic itself.
Just as humans create furniture, buildings, and computers, humans also invent ways of describing new mathematics. God has left us work to do in creating many things, and he has also given us the ability do mathematics. Personally, I prefer to say that I discover mathematics than say that I create it. Since 2+2 can't be anything other than 4 though, the one who finds that out isn't creating anything but is instead discovering it. And yet, when I do math research, there are many choices to be made in how the math is described. Math is intimately connected with how it is described. So in that sense, it isn't totally inappropriate to say that humans create mathematics. (Of course, we will never come up with anything that God didn't already know.)
So if God didn't create math, did he use it when making the universe?
God is omniscient; he knows everything. Hence, he knows precisely all the consequences of any possible laws to run a universe by. He knew perfectly well how the incredible properties of water and of the carbon atom would be consequences of the laws he set up. He knew how he could get the entire periodic table of elements from just three parts: protons, neutrons, and electrons. He knew what the properties of light would be, as well as how light would be formed. He knew (and knows) all consequences of any laws he could choose, even when those consequences are mathematical necessities of those laws. So sure, you could say that he used math when he created the world. Of course, one thing he didn't have to do is, once he "considered" possible laws to implement, say to the other members of the trinity, "Wait one second while I work out all the consequences of those rules." He knows everything already.
God is the one who invented the carbon atom (and the whole periodic table). God invented electromagnetic radiation (including visible light).