Returns the factored form of a polynomial. It does the reverse of what Expand does, but limited to polynomials.
For polynomials of degree > 2 this function makes use of pSolve. If pSolve can find real roots, then Factor can return a factored form of the given function.