Question in my text book
Solve for range of the function, $$y=\frac{x^2+4x-1}{3x^2+12x +20}$$
Text book says, cross multiply and express the obtained equation as a quadratic equation in $x$
So I get $ (3y-1)x^2 + (12y -4)x + (20y-1) = 0$
Now it says find discriminant $D$, so we have,
$$ D = -4 ( 3y-1)( 8y+3)$$
Now it says, set $D≥0$ as $x$ is real. Wait what?
Isn't $x \in \mathbb{R}$ the domain for a quadratic function? Meaning "$x$" is always real? What does a discriminant got anything to do with $x$ being real, when all discriminant tells us is whether or not the ROOTS are real? Help please.
To be more specific about my doubt, here's an edit.
EDIT : I'm confused, setting discriminant $≥0$ would tell whether or not roots are real, meaning whether the graph of the quadratic function cuts/touches X axis. Now tell me what does this got anything to do with range? As far as I know, quadratic fucntions that don't have real roots are also continous throughout the X axis, meaning there SHOULD always be a corresponding $y-value$
The domain of a quadratic polynomial with real coefficients need not be restricted to the reals.
The discriminant of a polynomial is a function of that polynomial's coefficients, and it can be used to deduce some properties of the roots (such as whether they are real). In the case of a quadratic, the roots will be real and distinct for $D>0$, real (but the same) if $D = 0$, but complex conjugates if $D <0$. That is to say, a negative discriminant implies that the roots of the quadratic will both be complex (i.e. there are no real roots).
The $x$ in your above equation is the root(s), as you have set your expression equal to 0.
EDIT: I see your edit about the range, and will address it. Essentially, the problem asks for you to find the range of the function given the knowledge that its domain must be real. So, we can use the knowledge that the discriminant must be non-negative to solve for allowable y: $$(12y-4)^2 -4(3y-1)(20y+1) \geq 0$$ $$\implies -\frac{5}{8} \leq y < \frac{1}{3}$$
which is the range of your function.
EDIT 2: OP, note that the quadratic and therefore discriminant you calculated above is incorrect. Your "c" term should be $(20y+1)$, not $(20y-1)$.