Factorising a cubic polynomial (Method 2)