Alan is right of course but maybe you need to solve it algebraically?
It is also good to notice things such as the numerator (looked at separately) has irrational roots
and the denominator is always positive.
As x tends to plus or minus infinity f(x) tends to 1
I am not sure how to do it but I would not be cross multiplying like you have done.
The denominator is always positive, the minimum of the denominator is 2 at x=-1
When f(-1)=-2
For \(-7-\sqrt{40}
The rest of the time f(x) is great or equal to 0.
I can also work out that (-0.5,1) is between the max and the min.
I have not answered your question.
I have just given you some initial skills to start graphing the curve.
Maybe I would try to do more with calculus not really sure and I'm unable to spend more time on it right now.