In fact, the answer to the question "What is mathematics?" has changed several times during the course of history... It was only in the last twenty years or so that a definition of mathematics emerged on which most mathematicians agree: mathematics is the science of patterns.
Sets, Functions, and Logic: An Introduction to Abstract Mathematics, Third Edition (ed. CRC Press, 2003) - ISBN: 9781482258127