Text this: Mathematical principles of natural philosophy: optics