# Rational Function | Precalculus

This year, after the SAT on Oct 6th, I started my precalculus lesson. One of the sections that we covered in this term is called the Rational Function.  If you didn’t know or forget what it is, it’s a function in the form of r(x) = P(x)/Q(x), where P and Q are both polynomials and have graph that look like the picture at your left.  It was quite difficult for me at first to graph this function but once I noticed the pattern, it was fairly easy and straightforward.

In order to graph this rational function:

1. Factor the numerator and denominator
2. Look for intercepts: x-intercept is equal to the zeros of the numerator and y-intercept is equal to C value of numerator divide denominator
3. Find the vertical asymptotes by determine the zeros of the denominator
4. Figure out the horizontal asymptote by using the rule below.
5. Sketch the graph
```r(x)= (x-2)/(x^2-2x-8)
==> (x-2)/(x-4)(x+2)
x-intercept: 2
y-intercept: 1/4
vertical asymptote: -2, 4
horizontal asymptote: 0
slant asymptote: none```

We also learned about slant asymptote, where the degree of the numerator is one greater than the denominator. This also means that there will be no horizontal asymptote. We determined the slant asymptote by divide polynomials with each other and we did not obtain its remainder.  Example below!

```r(x)= (x^3+8)/(x^2-x-2)
==> (x^3+8)/(x-2)(x+1)
x-intercept: -2
y-intercept: -4
vertical asymptote: -1,2
horizontal asymptote: none
slant asymptote: y = x+1```