Let's say I have to factor $x^3 + 1$.
Now I know that the first factor will be $(x+1)$ because when you input -1 into the function you get $0$. And the rest is all about the factor-remainder theorem right.
Now i will obtain another factor when i divide $x^3 +1$ by $(x+1)$, which is $x^2 - x + 1$.
How do I know if the third factor is then factorizable? I'm asking because if I had to perform partial fraction decomposition, I would have to know.
I cannot test the factorizability of it by finding the discriminant, because the discriminant also tells me that the expression is factorizable when the solutions are not whole numbers.
And when spreading an expression into partial fractions , i believe that you are only asked to do that when the solutions are whole numbers.
So is there another way i can know?
If the discriminant is less than $0$, then the quadratic cannot be factorised. If it is greater than or equal to $0$, then the quadratic can be factorised, although this factorisation might be messy. The quadratic $ax^2+bx+c$ can be factorised over the integers if you can find two numbers $p$ and $q$ such that $p\cdot q = a \cdot c$ and $p+q=b$. Here is an example: \begin{align} 3x^2+10x+8 &= 3x^2+6x+4x+8 \\[5pt] &= 3x(x+2)+4(x+2) \\[5pt] &= (3x+4)(x+2) \, . \end{align} This is sometimes called the "AC method".