Using the quadratic discriminant

We have found the range of functions by graphical methods so far. For example, the following is a sketch of the graph of y=f(x)=2xx2+1.

The curve has a minimum point at (1,1) and a maximum point (1,1). Hence the range of the function is [1,1].

An algebraic method to find the range

Instead of the graphical method above, we can find the range of some functions using the quadratic discriminant.

The idea behind this method is that the range of a function is the set of values of y for which the equation y=f(x) has real roots in x. If we can manipulate y=f(x) into a quadratic equation in x, then we will be able to use the quadratic discriminant to find the range of the function.

For our earlier example, the range of the function corresponds to the horizontal lines that cut the curve y=f(x) at one or two points. This corresponds to the case that our quadratic discriminant b24ac0.

Example

y=2xx2+1yx2+y=2xyx22x+y=0

For the range of f,

b24ac0(2)24(y)(y)044y20y210(y+1)(y1)01y1

Hence the range of f is [1,1].