Mathematics is defined as the science which deals with logic of shape, quantity and arrangement. During ancient times in Egypt, the Egyptians used maths and complex mathematic equations like geometry and algebra. That is how they managed to build the pyramids.