If A is an nxn matrix, derive the characteristic polynomial of A.