I'm planning on creating a program to generate worked solutions for problems in a math text book by using OCR to pipe the equations into Wolfram Alpha and then displaying the step-by-step solutions from there. The equations wouldn't be too complex

[![some equations as example](https://i.stack.imgur.com/KGcBJ.png)](https://i.stack.imgur.com/KGcBJ.png)

I'm wondering if there is a suitable OCR program (preferably FOSS) or API that will be able to handle these equations.