>>400
t = 2^x とおくと
(1/2) ≦ t ≦ 4

y = t^2 -6t +10 = (t-3)^2 +1

t = 3 で最小値 1
t = (1/2) で最大値 29/4