Solution:
Key idea: Two matrices are equal only when every pair of corresponding entries is equal. So A2−xA+yI=O gives four equations in x and y.
Step 1 — Work out A2.
We multiply A by itself, each row by each column.
A2=[4235][4235]=[(4)(4)+(3)(2)(2)(4)+(5)(2)(4)(3)+(3)(5)(2)(3)+(5)(5)]=[22182731]
Step 2 — Write A2−xA+yI as one matrix.
We multiply A by x and I by y, then combine entry by entry. The term yI only affects the leading diagonal.
A2−xA+yI=[22182731]−x[4235]+y[1001]=[−4x+y+2218−2x27−3x−5x+y+31]
Step 3 — Use an entry without y to find x.
The (1,2) entry must be zero, and it contains x only.
27−3x3xx=0=27=9
The (2,1) entry agrees: 18−2(9) is 0.
Step 4 — Use a diagonal entry to find y.
The (1,1) entry must be zero. We put x=9 into it.
22−4(9)+y22−36+y−14+yy=0=0=0=14
Step 5 — Check the last entry.
The (2,2) entry must also be zero with these values.
31−5(9)+14=31−45+14=0
Therefore, x=9 and y=14.