Free original lessons

Graph Rational Functions: Vertical and Horizontal Asymptotes

Learn to plot rational functions like 1/(x-4) by finding asymptotes, intercepts, and branch behavior on a coordinate grid.

Free lesson
Four exercises
Worked answers

Algebra and Function Practice

Rational functions such as y = 1/(x-4) have graphs with distinctive features: vertical asymptotes where the denominator is zero, horizontal asymptotes that describe end behavior, and branches that approach these lines without crossing them. This lesson teaches a reliable procedure for sketching such graphs, using intercepts and test points to place the branches accurately. You will work with simple rational functions of the form y = a/(x-h) + k, where the vertical asymptote is x = h and the horizontal asymptote is y = k. The focus is on clear, checkable steps rather than memorizing shapes.

Practice materials: Printable downloads are not available for this lesson yet. Use the instructions and four exercises below.

Finding Asymptotes and Intercepts

For a function written as y = a/(x-h) + k, the vertical asymptote occurs where the denominator equals zero, so x = h. The horizontal asymptote is the constant k, because as x grows large in magnitude, the fraction a/(x-h) approaches zero and y approaches k. To find the y-intercept, set x = 0 and compute y, provided x = 0 is not the vertical asymptote. To find the x-intercept, set y = 0 and solve for x; this gives x = h - a/k when k is not zero. If k = 0, there is no x-intercept because the fraction can never equal zero.

Always plot the asymptotes first as dashed lines. They divide the plane into regions, and the graph will have one branch in each region separated by the vertical asymptote. The horizontal asymptote guides the end behavior of each branch: as x approaches positive or negative infinity, the branch gets closer to y = k. Test points on either side of the vertical asymptote confirm whether the branch rises or falls.

  1. Identify h and k from the equation y = a/(x-h) + k.
  2. Draw the vertical asymptote x = h as a dashed line.
  3. Draw the horizontal asymptote y = k as a dashed line.
  4. Compute the y-intercept by substituting x = 0.
  5. Compute the x-intercept by setting y = 0 and solving, if possible.
  6. Choose one test point on each side of the vertical asymptote and compute y.
  7. Sketch each branch approaching both asymptotes without crossing the vertical asymptote.

Branch Behavior and Sign Analysis

The sign of the fraction a/(x-h) determines whether a branch lies above or below the horizontal asymptote. For x > h, the denominator is positive; for x < h, it is negative. If a is positive, the branch on the right of the vertical asymptote is above y = k, and the branch on the left is below y = k. If a is negative, the positions reverse. This sign check prevents common sketching errors.

As x approaches the vertical asymptote from one side, the fraction grows without bound, so the branch shoots upward or downward. The direction depends on the sign of a and the side of approach. For example, in y = 1/(x-4), as x approaches 4 from the right, the denominator is small and positive, so y becomes very large positive; as x approaches 4 from the left, the denominator is small and negative, so y becomes very large negative. Marking these directions helps you draw smooth branches.

  1. Determine the sign of a.
  2. For x > h, decide whether the branch is above or below y = k.
  3. For x < h, decide the opposite position.
  4. As x approaches h from the right, note whether y goes to positive or negative infinity.
  5. As x approaches h from the left, note the opposite infinity direction.
  6. Draw each branch with the correct end behavior near the asymptotes.

Checking Your Graph

A correct graph satisfies several checkable conditions. The vertical asymptote should align with the value that makes the denominator zero. The horizontal asymptote should match k. The intercepts should lie on the axes at the computed coordinates. A test point on each side of the vertical asymptote should produce a point that lies on the drawn branch. Finally, the graph should never cross the vertical asymptote and should approach the horizontal asymptote at the far left and far right.

Use simple arithmetic to verify points. For y = 1/(x-4), choosing x = 5 gives y = 1, and choosing x = 3 gives y = -1. These points confirm the branch positions relative to the asymptotes. If a plotted point does not match the computed value, recheck the substitution and the sign of the denominator.

  1. Verify the vertical asymptote by solving denominator = 0.
  2. Verify the horizontal asymptote by inspecting the constant term.
  3. Check that intercepts match computed values.
  4. Substitute one test point on each side of the vertical asymptote.
  5. Confirm branches approach but do not cross the vertical asymptote.
  6. Confirm end behavior approaches the horizontal asymptote.

Worked example

Graph y = 1/(x-4). Identify the vertical asymptote, horizontal asymptote, intercepts, and sketch the branches.

Worked answer

Vertical asymptote: x = 4. Horizontal asymptote: y = 0. y-intercept: (0, -1/4). No x-intercept. Test points: x = 5 gives y = 1; x = 3 gives y = -1. The branch for x > 4 lies above y = 0 and approaches positive infinity as x approaches 4 from the right. The branch for x < 4 lies below y = 0 and approaches negative infinity as x approaches 4 from the left. Both branches approach y = 0 as x goes to positive or negative infinity.

Four practice exercises

Exercise 1

Graph y = 2/(x-1). Find the vertical asymptote, horizontal asymptote, intercepts, and describe the branches.

Show answer and check

Vertical asymptote: x = 1. Horizontal asymptote: y = 0. y-intercept: (0, -2). No x-intercept. For x > 1, y is positive and approaches positive infinity as x approaches 1 from the right. For x < 1, y is negative and approaches negative infinity as x approaches 1 from the left. Both branches approach y = 0 at the far ends.

Why: The denominator x-1 is zero at x = 1, giving the vertical asymptote. The constant term is 0, so the horizontal asymptote is y = 0. Substituting x = 0 gives y = 2/(0-1) = -2. Setting y = 0 gives 2/(x-1) = 0, which has no solution. Test x = 2 gives y = 2, and x = 0 gives y = -2, confirming branch positions.

Check: Verify that x = 1 makes the denominator zero, that y approaches 0 as x grows large, and that the plotted points (0, -2) and (2, 2) lie on the correct branches.

Exercise 2

Graph y = -1/(x+2). Find the vertical asymptote, horizontal asymptote, intercepts, and describe the branches.

Show answer and check

Vertical asymptote: x = -2. Horizontal asymptote: y = 0. y-intercept: (0, -1/2). No x-intercept. For x > -2, the denominator is positive and the numerator is negative, so y is negative and approaches negative infinity as x approaches -2 from the right. For x < -2, the denominator is negative and the numerator is negative, so y is positive and approaches positive infinity as x approaches -2 from the left. Both branches approach y = 0 at the far ends.

Why: The denominator x+2 is zero at x = -2. The constant term is 0, so the horizontal asymptote is y = 0. Substituting x = 0 gives y = -1/(0+2) = -1/2. Setting y = 0 gives -1/(x+2) = 0, which has no solution. Test x = -1 gives y = -1, and x = -3 gives y = 1, confirming branch positions.

Check: Check that x = -2 makes the denominator zero, that y approaches 0 as x grows large, and that the test points (-1, -1) and (-3, 1) match the computed values.

Exercise 3

Graph y = 1/(x-3) + 2. Find the vertical asymptote, horizontal asymptote, intercepts, and describe the branches.

Show answer and check

Vertical asymptote: x = 3. Horizontal asymptote: y = 2. y-intercept: (0, 5/3). x-intercept: set y = 0, so 1/(x-3) = -2, giving x - 3 = -1/2, so x = 2.5. For x > 3, y is above 2 and approaches positive infinity as x approaches 3 from the right. For x < 3, y is below 2 and approaches negative infinity as x approaches 3 from the left. Both branches approach y = 2 at the far ends.

Why: The denominator x-3 is zero at x = 3. The constant term is 2, so the horizontal asymptote is y = 2. Substituting x = 0 gives y = 1/(0-3) + 2 = -1/3 + 2 = 5/3. Setting y = 0 gives 1/(x-3) = -2, so x - 3 = -1/2 and x = 2.5. Test x = 4 gives y = 3, and x = 2 gives y = 1, confirming branch positions relative to y = 2.

Check: Verify the vertical asymptote at x = 3, the horizontal asymptote at y = 2, the intercepts (0, 5/3) and (2.5, 0), and that test points (4, 3) and (2, 1) lie on the correct branches.

Exercise 4

Graph y = -2/(x-1) - 1. Find the vertical asymptote, horizontal asymptote, intercepts, and describe the branches.

Show answer and check

Vertical asymptote: x = 1. Horizontal asymptote: y = -1. y-intercept: (0, 1). x-intercept: set y = 0, so -2/(x-1) = 1, giving x - 1 = -2, so x = -1. For x > 1, the denominator is positive and the numerator is negative, so y is below -1 and approaches negative infinity as x approaches 1 from the right. For x < 1, the denominator is negative and the numerator is negative, so y is above -1 and approaches positive infinity as x approaches 1 from the left. Both branches approach y = -1 at the far ends.

Why: The denominator x-1 is zero at x = 1. The constant term is -1, so the horizontal asymptote is y = -1. Substituting x = 0 gives y = -2/(0-1) - 1 = 2 - 1 = 1. Setting y = 0 gives -2/(x-1) = 1, so x - 1 = -2 and x = -1. Test x = 2 gives y = -3, and x = 0 gives y = 1, confirming branch positions relative to y = -1.

Check: Check the vertical asymptote at x = 1, the horizontal asymptote at y = -1, the intercepts (0, 1) and (-1, 0), and that test points (2, -3) and (0, 1) lie on the correct branches.

Common mistakes

Self-check rubric

Questions and answers

What is the vertical asymptote of y = 1/(x-4)?

Set the denominator equal to zero: x - 4 = 0, so x = 4. The vertical asymptote is the line x = 4.

What is the horizontal asymptote of y = 1/(x-4)?

As x becomes very large or very small, 1/(x-4) approaches 0, so the horizontal asymptote is y = 0.

How do I find the y-intercept?

Substitute x = 0 into the equation, provided 0 is not the vertical asymptote. For y = 1/(x-4), y = 1/(0-4) = -1/4, so the y-intercept is (0, -1/4).

Does y = 1/(x-4) have an x-intercept?

No. Setting y = 0 gives 1/(x-4) = 0, which has no solution because a nonzero fraction cannot equal zero.

Worksheet preview

Full printable sheet preview

Fit-to-screen preview. Download the PDF to print at actual size.