Context: I am an assistant professor of mathematics at a small school in the US.
Many of my courses have homework assignments administered by WeBWorK. A small minority of students struggle mightily (mostly with parenthesis) when assembling inline text expressions like $$ \texttt{[(e^(3x^2-7)(6x))(5x+2)-(e^(3x^2-7))(5)][(5x+2)^2]} $$ in order to represent mathematical expressions like $$ \frac{(e^{3x^2-7}(6x))(5x+2)-(e^{3x^2-7})(5)}{(5x+2)^2}. $$ This brings me to my question: Are there any online tools that could allow a student to assemble something in "pretty print" and then decompose the given expression into inline text? Wolfram Alpha and LaTeX both go the wrong way--they transform inline text into beautiful expressions.
Note: I believe that the students learn something significant from learning how to carefully type these inline expressions, but for those who really struggle, I don't want that to be what prevents them from completing an assignment.