Input: factor(x^2+3*x+2)
Write: `factor(x^2+3*x+2)`
Output: $$ factor :\\ \ {x}^{2}+3\ x+2 == (1+x)\ (2+x) $$ Result:$$(1+x)\ (2+x)$$