Compute the characteristic polynomial of the matrix
over the field of rational functions Q ( X ) {\displaystyle {}\mathbb {Q} (X)} .