Are you allowed to use differential calculus?
what is the right hand side of the equation, unless you give that it is not an equation. If we consider it as a function i.e., f(x) = (x2-6x+5)/(x2+2x+1)
Then we get f(x) = [ ( x-5) ( x-1) ]/(x+1)^2. Notice the function is not defined for x = -1, thus domain is R-{1} and range is R
If anyone is interested I've figured out how to do this after research.
(x2-6x+5)/(x2+2x+1)
You first make a new quadratic equation using the coefficient of the denominator times y, minus the coefficient of the numberator.
So (y-1)x^2+(2y+6)x+(y-5)
You then use these terms to find the discriminant.
Sqrt (2y+6)^2-4(y-1)(y-5)
You do the expanding and are left with 48y+16, which then becomes y = 1/3. You take the negative of this and that becomes the lower limit and hence the minimum value for y.
If you get two solutions for y, the range is between those two values.