There are numerous ways of going about doing this, I've tinkered quite a bit myself on similar things and have gotten them to work for very specific conditions. As far as I can tell there is a tesseract that is made for equations and math in general. Tesseract for math and equations
And here is a link to an open source project that has a working iOS tesseract Pocket-OCR And here is the openCV framework for iOS openCV for iOS
If that's the route you want to go those links should get you up and running.