f(x)=4^(x-1/2)-a*2^x+a^2/2+1=1/2*(2^x)^2-a*2^x+a^2/2+1令2^x=t(1<=t<=4)f(x)=1/2[(t-a)^x+2] (1<=t<=4)若a<=1,最大值f(2),最小值f(0);若14,最小值f(2),最大值f(0) 。