Find the function range: y = 2x-4x-2, X belongs to (- 1 / 2,2)

Find the function range: y = 2x-4x-2, X belongs to (- 1 / 2,2)

y=2x^2-4x-2
=2(x-1)^2-4
When the symmetry axis X = 1, the quadratic coefficient 2 > 0, the function image opening upward, x = 1, there is
ymin=-4
f(-1/2)=1/2
f(2)=-2
When x = - 1 / 2, there is ymax = 1 / 2
The range of the function is [- 4,1 / 2]