令t=√(x-2) (t≥0),那么x=t²+2
于是y=t-1/2*(t²+2)
=t-1/2*t²-1
=-1/2*(t²-2t)-1
=-1/2*(t-1)²-1/2
而t≥0,所以当t=1时,y取最大值-1/2
于是y≤-1/2,即值域为(-∞,-1/2]
令t=√(x-2) (t≥0),那么x=t²+2
于是y=t-1/2*(t²+2)
=t-1/2*t²-1
=-1/2*(t²-2t)-1
=-1/2*(t-1)²-1/2
而t≥0,所以当t=1时,y取最大值-1/2
于是y≤-1/2,即值域为(-∞,-1/2]