Mathematics thesis