The mathml() funciton Mobius regularly adds extra parentheses unnecessarily where the MathML function in Maple does not. Why not use the Maple one. You should not see things like (4x^2+2x)+4=0 . There equations are correct but it is both odd and confusing to students to have the extra parenthese there.