# Plotting the graph of a function

In this lesson we will apply the knowledge about the first and second derivative of a function on the problem of plotting the graph of a function.

Testing functions conduct the following procedure:

1.) Find the domain of a function

2.) Examine the symmetry of a function; is it odd, even or periodic

3.) Examine the continuity of a function

4.) Find zeroes of a function

5. ) Find the open intervals where a function is increasing or decreasing and local extrema of a function

6.) Find concavity intervals and inflection points

7.) Find asymptotes of a function

8.) Sketch the graph of a function

Note. A line is the vertical asymptote to the graph of the function at point if

or/and

A line is the horizontal asymptote to the graph of the function at point if

A line is a slant or oblique asymptote to the graph of the function at point if

A line is a slant or oblique asymptote to the graph of the function at point if

We can show that a line is a slant asymptote to the graph of the function at if

and

and at if

and

The graph of the function does not contains both horizontal and slant asymptote.

Example 1. Draw the graph of the function if

Solution:

The domain of the given function is . The function is continuous on its entire domain.

The function it is not neither odd and even. Namely, and .

Zeroes of the given function we finding by solving the equation , that is:

Solutions of the equation above are and .

Therefore, zero points of the function are

Now we calculate the first derivative of the function :

Critical points we finding by solving the equation , that is

Therefore, the critical points are and .

The function has the minimum (global) for and the maximum for .

The second derivative of the function is equal to:

To find inflection points, we need to solve the equation :

Therefore, is the potential inflection point.

For the second derivative is equal to:

and for the second derivative is equal to:

Therefore, around the second derivative changes sign from negative to positive, so is the inflection point. The function is concave down on the interval and concave up on .

The graph of rational functions

We will describe how to draw the graph of a rational function

where is the polynomial of the degree , and polynomial of the degree . We will assume that and does not have the common zeroes.

The second derivative of a rational function is often of the complex shape, therefore, we determine asymptotes to the graph of a rational function.

A rational function has the vertical asymptote in zeroes of the denominator.

A rational function has the horizontal asymptote iff it is the degree of the numerator is less or equal to the degree of the denominator.

If the degree of the numerator is less than the degree of the denominator, then the horizontal asymptote has the equation .

If the degree of the numerator is equal to the degree of the denominator, then the horizontal asymptote has the equation , where and are leading coefficients of the polynomial in the numerator and denominator.

If the degree of the numerator is greater than the degree of the denominator, whereby if the degree of the numerator is greater for one than the degree of the denominator, then a rational function has an oblyque or slant asymptote and if the degree of the numerator is greater at least for two than the degree of the denominator then a rational function does not have neither slant and horizontal asymptote.

Example 2. Draw the graph of function if

Solution:

The function is not defined at points and , therefore, lines and are vertical asymptotes of the given function .

The degree of the numerator is equal to the degree of the denominator, that is, the equation of the horizontal asymptote is equal to:

The function is continuous on its entire domain.

The first derivative of the function is equal to:

Critical points we finding by solving the equation , that is, critical points are and . The value of the function at these points is equal to:

and

Monotone intervals:

According to the sign of the first derivative, we can see that the function is increasing on intervals  and and decreasing on and .

The first derivative changes sign from positive to negative around , therefore, the point is the local maximum of the function on the interval .

The first derivative changes sign from negative to positive around , therefore, the point is the local minimum of the function on the interval .

Example 3. Draw the graph of the function if

Solution:

The given function it is not defined for , therefore, the line is its vertical asymptote. Zeroes of the function are and .

The degree of the numerator is for one greater than the degree of the denominator, therefore, the function has a slant asymptote:

We obtained that the line is a slant asymptote of the function .

The first derivative of the function is equal to:

Critical points we obtain by solving the equation , that is, critical points are and .

The values of the function at critical points are and .

The function in the neighborhood of the vertical asymptote will have the opposite signs, because the denominator changes the sign from the left and from the right of the point .

Example 4. Draw the graph of the function if

Solution:

The function it is not defined for . Therefore, we will examine limits from the left and from the right of the function at :

The line is the vertical asymptote of the function .

The horizontal asymptote we finding by evaluate the following limit:

that is, the line is the horizontal asymptote of the function .

The first derivative of the function is equal to:

The first derivative is less than zero , therefore, the function is decreasing on each interval from the domain of the function . The first derivative is not equal to zero for any from the domain of the function . Therefore, the function does not contains local extrema.

The second derivative is equal to:

The second derivative is equal to zero for , that is, this is the potential inflection point.

Concavity intervals:

According to the sign of the second derivative we can see that the function is concave up on the interval and on . The function is concave down on the interval .

The second derivative of the function changes sign from negative to positive around and the value of the function at this point is equal to . Therefore, the point is the inflection point.

Shares