Math is discovered. To be invented requires an inventor, but math exists outside of humanity. But ultimately, the laws of the universe will be reduced down to a single equation, perhaps no more than one inch long. But leaves the final question, where did that one inch equation come from?
Some advice: keep the flame of curiosity and wonderment alive, even when studying for boring exams. That is the well from which we scientists draw our nourishment and energy. And also, learn the math. Math is the language of nature, so we have to learn this language.