Question
Sketch of y = (x^2 - x + 1)/(x^2 + x + 1) with key features
Original question: (d) Sketch the curve with equation $y = \frac{x^2-x+1}{x^2+x+1}$.
Expert Verified Solution
Key takeaway: This rational function has a nice structure, and it simplifies the sketch a lot once you compare numerator and denominator. The key is to look at end behavior first, then test for intercepts and any symmetry.
Consider
1) Horizontal asymptote
The numerator and denominator have the same degree, so the horizontal asymptote is the ratio of leading coefficients:
2) Intercepts
- -intercept: set
so the graph passes through .
- -intercepts: solve
Its discriminant is
so there are no real -intercepts.
3) Compare with the asymptote
Subtract 1:
Since
because its discriminant is also negative,
the sign of is the sign of .
So:
- if , then
- if , then
- if , then
That tells you the curve crosses the horizontal asymptote at .
4) Shape
The curve stays defined for all real and never hits the -axis. It lies above for negative and below for positive , with a crossing at .
If you want a quick extra check, evaluate a couple of values:
So the sketch passes through and , approaching on both ends.
Pitfalls the pros know π A frequent mistake is to assume the horizontal asymptote cannot be crossed. That is false here: the graph does cross at . Another slip is forgetting to check whether the denominator can be zero; here it cannot, so there are no vertical asymptotes.
What if the problem changes? If the signs in the denominator changed to , then the curve would still have horizontal asymptote , but the comparison with 1 would change. Tiny sign changes in rational functions often alter where the graph lies above or below the asymptote, even when the asymptote itself stays the same.
Tags: horizontal asymptote, rational function, curve sketching
FAQ
What is the horizontal asymptote of (x^2-x+1)/(x^2+x+1)?
Since the numerator and denominator have the same degree, the horizontal asymptote is y=1.
Does the graph cross its horizontal asymptote?
Yes. Subtracting 1 gives (y-1)= -2x/(x^2+x+1), so the graph crosses y=1 at x=0.