# Factorizing matrix entries that are polynomials

Suppose i have a polynomial matrix like:

```
var('x')
g=graph.CompleteGraph(4)
h=g.am()
t=h-x*identity_matrix(4)
t1=t.adjugate()
t1
```

Then, how do i get `t1`

in the factorized/simplified form. Specifically, I see that there are exactly two distinct entries in `t1`

, and each of them can be factorized into two distinct monomial powers. But, how do I get this directly, without having to factorize each element separately. Any hints? Thanks beforehand.