# Fractional functions and graphs

## Summary and examples

A simple example of a fractional function is the following:

$y=a+\displaystyle\frac{b}{x-c}$

Naturally, there is the restrictive condition for $x$:

$x\neq{c}$

For the value $x=c$ the function has a vertical asmptote.

There is also a horizontal asymptote. That is the line to which the graph approaches when $x\rightarrow\infty$ or $x\rightarrow-\infty$. In this case the graph will approach the line $y=a$, because the fraction will approach $0$.

##### Example 1

As a first example let us take the function with $a=3$, $b=1$ and $c=2$. The graph is as follows:

In order to sketch the graph, we follow the following steps:

1. Determine the vertical asymptote (in this case $x=2$);
2. Determine the horizontal asymptote (in this case $y=3$);
3. Calculate the intersection point with the $Y$-axis, if it exists;
4. Calculate the intersection point with the $X$-axis, if it exists;

Both the vertical and the horizontal asymptote are found quickly. Also the intersection point with the $Y$-axis does not cause problems (take $x=0$ and we find $y=\displaystyle\frac{5}{2}$). We find the intersection point with the $X$-axis by solving the following equation:

$0=3+\displaystyle\frac{1}{x-2}=\displaystyle\frac{3(x-2)+1}{x-2}=\displaystyle\frac{3x-5}{x-2}$

$x=\displaystyle\frac{5}{3}$

##### Example 2

Given the function:

$y=\displaystyle\frac{1}{x-2}$

and find:

the vertical asymptote;
the horizontal asymptote;
the intersection point with the $Y$-axis if it exists;
the intersection point with the $X$-axis if it exists.

Based on these results draw the graph.

We immediately see that the vertical asymptote is $x=2$ (the value for which the denominator equals $0$); the horizontal asymptote is $y=0$ (the value to which the graph converges if $x\rightarrow\infty$ or $\rightarrow-\infty$); the intersection point with the $Y$-axis exists and equals $y=\displaystyle-\frac{1}{2}$ (take $x=0$); the intersection point with the $X$-axis does not exist because the $X$-axis ($y=0$) is an asymptote.

The graph is depicted in the following figure.

##### Example 3

Given the function:

$y=2+\displaystyle\frac{1}{x}$

and find:

the vertical asymptote;
the horizontal asymptote;
the intersection point with the $Y$-axis if it exists;
the intersection point with the $X$-axis if it exists.

Based on these results draw the graph.

When we know the asymptote of $\displaystyle\frac{1}{x}$, we also know the asymptote of the function $y$.
The vertical asymptote is $x=0$ (the $Y$-axis); the horizontal asymptote is $y=2$ (the value of $y$ when $x\rightarrow\infty$ or $x\rightarrow-\infty$); the intersection point with the $Y$-axis does not exist ($Y$-axis is an asymptote); the intersection point with the $X$-axis can be calculated from the equation (take $y=0$):

$0=2+\displaystyle\frac{1}{x}=\displaystyle\frac{2x+1}{x}$

$x=\displaystyle-\frac{1}{2}$

The graph is depicted in the following figure:

##### Voorbeeld 4

Given the function:

$y=\displaystyle\frac{x-1}{x+2}$

and find:

the vertical asymptote;
the horizontal asymptote;
the intersection point with the $Y$-axis if it exists;
the intersection point with the $X$-axis if it exists.

Based on these results draw the graph.

This function does not have the usual form. Yet it is quite easy to find this usual form. We can rewrite the function as:

$y=\displaystyle\frac{x-1}{x+2}=\displaystyle\frac{(x+2)-3}{x+2}=\displaystyle\frac{x+2}{x+2}-\displaystyle\frac{3}{x+2}=1-\displaystyle\frac{3}{x+2}$

We know that this function has the vertical asymptote $x=-2$, that the horizontal asymptote is $y=1$ (because the second term has the asymptote $y=0$), that the intersection point with the $Y$-axis is: $(0, -0.5)$ en that the intersection point with $X$-axis is $(1,0)$.
The graph is the following.

0