f(x)=x^2-(a+1)x+a f(x)+1=0
x^2+(a+1)x+a+1=0
deta>=0 (a+1)^2-4*1*(a+1)>=0
(a+1)[(a+1)-4]>=0
a+1=4
a=3
f(x)