Mathematics is the study of quantity, structure, and space, dealing with the logic of quantity, shape, and arrangement. It originated from the Greek word 'Mathematika', meaning learning. Mathematics is studied because it teaches us a way of thinking and provides methods for solving problems. Its main branches include algebra, calculus, geometry, trigonometry, and statistics.