I want to check whether a term was expanded correctly.
For example:should be written as .
I would like to have an answer like
Analogously when factoring a term, e.g. should be written as .
A term with fewer factors should be evaluated as incorrect. There should be as many factors as possible.
How do I do that?