Matrix representation of a transformation of polynomials generated by a bilinear transformation