Consider the given quadratic equation,
Since the tangent at the vertex is a perfectly horizontal line, so its slope will be zero.
So we can equate the first derivative of the function to zero, in order to obatin the vertex as,
Solve for the corresponding y-coordinate as,
Thus, the vertex of the parabola lies at (-1,1).
Now, let us find the right end of the parabola, which lies at the x-axis. So its y-coordinate will be zero,
Thus, the parabola intersects the x-axis at points (-1/2, 0) and (-3/2, 0).
The rightmost point of these two will be the other extreme of the parabolic curve.
So the parabola has right end point at x= -1/2.
Also note that it is clearly visible that the left extreme of the parabola is x=-2.
So it can be concluded that the functions spans from x=-2 to x=-1/2.
Therefore, the domain of the function is [-2, -1/2).
The y-coordinate corresponding to x=-2 is calculated as,
Thus, the lower extreme of the function is y=-3, while the upper extreme lies at the vertex y=1.
Therefore, the range of the function is [-3, 1].