I'm supposed to find the matrix P here. I've found the characteristic polynomial p(lamda) = -x - x^2 + x^3 + x^4 (just writing x instead of lamda). And I found the roots:

x=0

x=1

x=-1

But I can't make sense of what the book does next to find P... Any help would be very appreciated! =)