Symbolic approach to the general quadratic polynomial decomposition