f(x)=x^2-2x-1,在[a,a+2]上最小值,怎么解这样类型的题?