square matrix associated to two univariate polynomials with coefficients in a field or a commutative ring