ChatGPT understands Latex (a markup language for writing formulas), but using it is not simple and takes time.
To the rescue comes https://mathpix.com/image-to-latex - a service that recognizes formulas in images and converts them to Latex format.
So, the algorithm is as follows:
1. Take a screenshot
2. Convert from image to Latex using https://mathpix.com/image-to-latex
3. Copy the Latex formula into ChatGPT and ask a question (for example, solve the equation, write code, find an error, etc.)
4. If necessary, convert back from Latex to image using the online compiler https://latexbase.com/