Skip to content
Family Table Math
Auto

Rational Functions with Quadratics

You already know how to graph a linear expression over a linear expression from graphs of rational functions. This page puts a quadratic into the fraction, either on the bottom or on the top. A quadratic on the bottom can give two vertical asymptotes (or none). A quadratic on the top gives a slanted oblique asymptote instead of a horizontal one. In every case, IB sketches must show all asymptotes and all intercepts with the axes.

Type 1: f(x)=ax+bcx2+dx+eType 2: f(x)=ax2+bx+cdx+e\text{Type 1: } f(x) = \frac{ax + b}{cx^2 + dx + e} \qquad\qquad \text{Type 2: } f(x) = \frac{ax^2 + bx + c}{dx + e}

The reciprocal function of a linear or quadratic is a special case of these (numerator 11).

The graph has a vertical asymptote x=kx = k wherever the denominator is 00 and the numerator isn’t. For Type 1, the denominator is a quadratic, so check its discriminant d2−4ced^2 - 4ce:

Discriminant of the denominatorVertical asymptotes
positivetwo
zeroone (both sides of it go the same way, because the squared factor doesn’t change sign)
negativenone: the graph is one unbroken curve

If the numerator is also 00 at a zero of the denominator, the factor cancels and you get a hole instead of an asymptote.

When the denominator has the higher degree, the fraction gets close to 00 for large ∣x∣\lvert x \rvert:

ax+bcx2+dx+e≈axcx2=acx→0\frac{ax + b}{cx^2 + dx + e} \approx \frac{ax}{cx^2} = \frac{a}{cx} \to 0

So the horizontal asymptote is y=0y = 0, the xx-axis. Unlike the linear-over-linear case, the graph can cross this asymptote: it does so at its xx-intercept, x=−bax = -\dfrac{b}{a}.

When the numerator’s degree is one more than the denominator’s, use polynomial division:

ax2+bx+cdx+e=mx+k+rdx+e\frac{ax^2 + bx + c}{dx + e} = mx + k + \frac{r}{dx + e}

For large ∣x∣\lvert x \rvert the remainder fraction gets close to 00, so the graph gets close to the line y=mx+ky = mx + k. That line is the oblique (slant) asymptote. There’s no horizontal asymptote.

The sign of rdx+e\dfrac{r}{dx + e} tells you which side of the line the graph is on: above the line where the fraction is positive, below where it’s negative.

  • yy-intercept: f(0)f(0), if the denominator isn’t 00 at x=0x = 0.
  • xx-intercepts: where the numerator is 00. For Type 2 the numerator is a quadratic, so there may be two, one or none.

Near x=kx = k, the numerator is close to a fixed non-zero number and the denominator is tiny, so f(x)f(x) is huge. Test a value just to the left and just to the right of kk to see whether the graph goes up or down on each side. A sign chart of the factors does the same job for every interval at once.

  1. Factor the numerator and denominator (cancel any common factor and note the hole).
  2. Find the vertical asymptotes, and the horizontal or oblique asymptote. Draw them as dashed lines.
  3. Find and plot the intercepts.
  4. Work out the sign of f(x)f(x) on each interval (or test points near each asymptote).
  5. Draw each branch through its points, approaching the asymptotes. Use your GDC to check the shape and to find any turning points.

Sketch f(x)=x+1x2−x−6f(x) = \dfrac{x + 1}{x^2 - x - 6}, showing all asymptotes and intercepts.

Solution. Factor the denominator: x2−x−6=(x−3)(x+2)x^2 - x - 6 = (x - 3)(x + 2).

  • Vertical asymptotes: x=3x = 3 and x=−2x = -2 (the numerator is 44 and −1-1 there, not 00).
  • Horizontal asymptote: y=0y = 0, since the denominator has the higher degree.
  • xx-intercept: x+1=0x + 1 = 0, so (−1,0)(-1, 0).
  • yy-intercept: f(0)=1−6f(0) = \dfrac{1}{-6}, so (0,−16)\left(0, -\dfrac{1}{6}\right).

Sign chart. The sign can only change at −2-2, −1-1 and 33:

Intervalx+1x + 1x−3x - 3x+2x + 2f(x)f(x)
x<−2x \lt -2−-−-−-−-
−2<x<−1-2 \lt x \lt -1−-−-++++
−1<x<3-1 \lt x \lt 3++−-++−-
x>3x \gt 3++++++++

So: on the far left the graph is just below the xx-axis and drops down beside x=−2x = -2. The middle branch comes down from the top beside x=−2x = -2, crosses the xx-axis at (−1,0)(-1, 0) (crossing the horizontal asymptote!), passes through (0,−16)\left(0, -\frac{1}{6}\right) and drops down beside x=3x = 3. The right branch comes down from the top beside x=3x = 3 and levels off just above the xx-axis.

Graph of y = (x + 1)/(x squared - x - 6) with dashed vertical asymptotes x = -2 and x = 3 and the x-axis as horizontal asymptote (−1, 0) (0, −1/6) x = −2 x = 3 −4 2 4 6 −4 −2 2 4
y=x+1x2−x−6y = \dfrac{x + 1}{x^2 - x - 6}: two vertical asymptotes, and the xx-axis as horizontal asymptote, which the graph crosses at (−1,0)(-1, 0).

Sketch g(x)=2x−4x2+4g(x) = \dfrac{2x - 4}{x^2 + 4}, and use technology to find its range.

Solution.

  • Vertical asymptotes: none. x2+4>0x^2 + 4 \gt 0 for every xx (its discriminant is 0−16<00 - 16 \lt 0), so the graph is one unbroken curve.
  • Horizontal asymptote: y=0y = 0.
  • Intercepts: xx-intercept (2,0)(2, 0); yy-intercept g(0)=−44=−1g(0) = \dfrac{-4}{4} = -1.
  • Sign: the denominator is always positive, so g(x)g(x) has the sign of 2x−42x - 4: negative for x<2x \lt 2, positive for x>2x \gt 2.

The GDC “minimum” and “maximum” tools give a local minimum at (−0.828,−1.21)(-0.828, -1.21) and a local maximum at (4.83,0.207)(4.83, 0.207) (3 s.f.).

So the graph starts just below the xx-axis on the far left, dips to its minimum, rises through (0,−1)(0, -1) and (2,0)(2, 0) to its maximum, and then falls back toward the xx-axis from above.

Range: {y∈R∣−1.21≤y≤0.207}\{y \in \mathbb{R} \mid -1.21 \le y \le 0.207\}. (In exact form, the turning points are at x=2±22x = 2 \pm 2\sqrt{2} and the range is −1+22≤y≤2−12-\frac{1 + \sqrt{2}}{2} \le y \le \frac{\sqrt{2} - 1}{2}, which you can find later with calculus.)

Sketch h(x)=x2−2x−3x−2h(x) = \dfrac{x^2 - 2x - 3}{x - 2}, showing all asymptotes and intercepts.

Solution. Divide. x2−2x−3=x(x−2)−3x^2 - 2x - 3 = x(x - 2) - 3, so

h(x)=x−3x−2h(x) = x - \frac{3}{x - 2}
  • Vertical asymptote: x=2x = 2.
  • Oblique asymptote: y=xy = x.
  • xx-intercepts: x2−2x−3=(x−3)(x+1)=0x^2 - 2x - 3 = (x - 3)(x + 1) = 0, so (−1,0)(-1, 0) and (3,0)(3, 0).
  • yy-intercept: h(0)=−3−2=32h(0) = \dfrac{-3}{-2} = \dfrac{3}{2}.

Near the asymptotes. For xx just above 22, −3x−2-\dfrac{3}{x - 2} is large and negative, so the graph plunges down; just below 22, it shoots up. For x>2x \gt 2 the fraction −3x−2-\dfrac{3}{x - 2} is negative, so the graph is below the line y=xy = x; for x<2x \lt 2 it is above the line.

Graph of y = (x squared - 2x - 3)/(x - 2) with dashed asymptotes x = 2 and y = x (−1, 0) (3, 0) (0, 1.5) x = 2 y = x −4 −2 2 4 6 −4 4
y=x−3x−2y = x - \dfrac{3}{x - 2} approaches the oblique asymptote y=xy = x at both ends.

There’s no horizontal asymptote: the graph follows the slanted line upward on the right and downward on the left.

Example 4: Oblique asymptote with turning points

Section titled “Example 4: Oblique asymptote with turning points”

Let k(x)=2x2+x−1x+2k(x) = \dfrac{2x^2 + x - 1}{x + 2}. Find all asymptotes and intercepts, and use technology to find the turning points.

Solution. Divide 2x2+x−12x^2 + x - 1 by x+2x + 2: the quotient is 2x−32x - 3 and the remainder is 55. Check: (x+2)(2x−3)+5=2x2+x−6+5=2x2+x−1(x + 2)(2x - 3) + 5 = 2x^2 + x - 6 + 5 = 2x^2 + x - 1 ✓.

k(x)=2x−3+5x+2k(x) = 2x - 3 + \frac{5}{x + 2}
  • Vertical asymptote: x=−2x = -2. Oblique asymptote: y=2x−3y = 2x - 3.
  • xx-intercepts: 2x2+x−1=(2x−1)(x+1)=02x^2 + x - 1 = (2x - 1)(x + 1) = 0, so (12,0)\left(\frac{1}{2}, 0\right) and (−1,0)(-1, 0).
  • yy-intercept: k(0)=−12k(0) = -\dfrac{1}{2}.
  • Near x=−2x = -2: k(−1.9)=43.2k(-1.9) = 43.2 and k(−2.1)=−57.2k(-2.1) = -57.2, so the right branch comes down from the top and the left branch goes down to the bottom.
  • Side of the oblique asymptote: 5x+2>0\dfrac{5}{x + 2} \gt 0 for x>−2x \gt -2, so the right branch is above y=2x−3y = 2x - 3; the left branch is below it.

The GDC gives a local minimum at (−0.419,−0.675)(-0.419, -0.675) on the right branch and a local maximum at (−3.58,−13.3)(-3.58, -13.3) on the left branch (3 s.f.).

So the right branch is a “U” shape between the vertical asymptote and the oblique asymptote, with its lowest point at (−0.419,−0.675)(-0.419, -0.675), and the left branch is an upside-down “U” with its highest point at (−3.58,−13.3)(-3.58, -13.3).

Giving a horizontal asymptote when there’s an oblique one. If the numerator’s degree is one more than the denominator’s, there’s no horizontal asymptote. Divide to find the oblique asymptote instead.

Using only the quotient’s xx term. The oblique asymptote is the whole quotient. For k(x)k(x) above it’s y=2x−3y = 2x - 3, not y=2xy = 2x.

Thinking the graph can’t cross the horizontal asymptote. For Type 1 functions, the graph crosses y=0y = 0 at its xx-intercept. Asymptotes describe what happens far away, not near the middle.

Missing that a quadratic denominator has no zeros. Check the discriminant before writing down vertical asymptotes. x2+4=0x^2 + 4 = 0 has no real solutions, so 2x−4x2+4\dfrac{2x - 4}{x^2 + 4} has no vertical asymptotes at all.

Forgetting to check for a common factor. If the numerator and denominator share a factor, there’s a hole, not an asymptote, at that xx-value.

Leaving off intercepts or asymptote equations. IB mark schemes expect every asymptote labelled with its equation and every axis intercept labelled with its coordinates.

1. (Warm-up) State the equations of all asymptotes of y=3x−1x2−9y = \dfrac{3x - 1}{x^2 - 9}, and find its intercepts.

Solution

x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3), and the numerator isn’t 00 at ±3\pm 3, so the vertical asymptotes are x=3x = 3 and x=−3x = -3. Horizontal asymptote y=0y = 0.

xx-intercept: 3x−1=03x - 1 = 0, so (13,0)\left(\frac{1}{3}, 0\right). yy-intercept: −1−9=19\dfrac{-1}{-9} = \dfrac{1}{9}, so (0,19)\left(0, \frac{1}{9}\right).

2. (Warm-up) Find the equations of the asymptotes of y=x2+3x+5x+1y = \dfrac{x^2 + 3x + 5}{x + 1}.

Solution

Divide: x2+3x+5=(x+1)(x+2)+3x^2 + 3x + 5 = (x + 1)(x + 2) + 3, so

y=x+2+3x+1y = x + 2 + \frac{3}{x + 1}

Vertical asymptote x=−1x = -1; oblique asymptote y=x+2y = x + 2.

3. (Warm-up) Explain why y=x+5x2+2x+3y = \dfrac{x + 5}{x^2 + 2x + 3} has no vertical asymptotes. What is its horizontal asymptote?

Solution

The denominator has discriminant 22−4(1)(3)=−8<02^2 - 4(1)(3) = -8 \lt 0, so it’s never 00 and the function is defined for every real xx.

The denominator has the higher degree, so the horizontal asymptote is y=0y = 0.

4. (Core) Sketch y=2xx2−1y = \dfrac{2x}{x^2 - 1}, showing all asymptotes and intercepts. Describe its symmetry.

Solution

x2−1=(x−1)(x+1)x^2 - 1 = (x - 1)(x + 1): vertical asymptotes x=1x = 1 and x=−1x = -1. Horizontal asymptote y=0y = 0. The only intercept is the origin (0,0)(0, 0).

Signs (from the factors 2x2x, x−1x - 1, x+1x + 1): negative for x<−1x \lt -1, positive for −1<x<0-1 \lt x \lt 0, negative for 0<x<10 \lt x \lt 1, positive for x>1x \gt 1.

So the left branch is just below the xx-axis and drops beside x=−1x = -1; the middle branch comes down from the top beside x=−1x = -1, passes through the origin, and drops beside x=1x = 1; the right branch comes down from the top beside x=1x = 1 and levels off just above the xx-axis.

Replacing xx by −x-x gives −2xx2−1=−y\dfrac{-2x}{x^2 - 1} = -y, so the function is odd: the graph has rotational symmetry of order 22 about the origin.

5. (Core) Sketch y=x2−4x+1y = \dfrac{x^2 - 4}{x + 1}, showing all asymptotes and intercepts, and state on which side of the oblique asymptote each branch lies.

Solution

Divide: x2−4=(x+1)(x−1)−3x^2 - 4 = (x + 1)(x - 1) - 3, so

y=x−1−3x+1y = x - 1 - \frac{3}{x + 1}

Vertical asymptote x=−1x = -1; oblique asymptote y=x−1y = x - 1.

xx-intercepts: x2−4=0x^2 - 4 = 0, so (−2,0)(-2, 0) and (2,0)(2, 0). yy-intercept: −41=−4\dfrac{-4}{1} = -4, so (0,−4)(0, -4).

For x>−1x \gt -1, −3x+1<0-\dfrac{3}{x + 1} \lt 0, so the right branch is below y=x−1y = x - 1: it comes up from the bottom beside x=−1x = -1, passes through (0,−4)(0, -4) and (2,0)(2, 0), and approaches the line from below. For x<−1x \lt -1, the fraction is positive, so the left branch is above the line: it follows the line on the far left, passes through (−2,0)(-2, 0), and shoots up beside x=−1x = -1.

6. (Core) Find the equations of the asymptotes of y=3x2−x+22x−1y = \dfrac{3x^2 - x + 2}{2x - 1}, and show that the graph has no xx-intercepts.

Solution

Divide 3x2−x+23x^2 - x + 2 by 2x−12x - 1. First term: 32x\dfrac{3}{2}x, and 32x(2x−1)=3x2−32x\dfrac{3}{2}x(2x - 1) = 3x^2 - \dfrac{3}{2}x, leaving 12x+2\dfrac{1}{2}x + 2. Next term: 14\dfrac{1}{4}, and 14(2x−1)=12x−14\dfrac{1}{4}(2x - 1) = \dfrac{1}{2}x - \dfrac{1}{4}, leaving 94\dfrac{9}{4}.

y=32x+14+9/42x−1y = \frac{3}{2}x + \frac{1}{4} + \frac{9/4}{2x - 1}

Vertical asymptote x=12x = \dfrac{1}{2}; oblique asymptote y=32x+14y = \dfrac{3}{2}x + \dfrac{1}{4}.

xx-intercepts need 3x2−x+2=03x^2 - x + 2 = 0, whose discriminant is 1−24=−23<01 - 24 = -23 \lt 0. So there are none.

7. (Core) The graph of f(x)=ax2+bx+3x−1f(x) = \dfrac{ax^2 + bx + 3}{x - 1} has oblique asymptote y=2x+5y = 2x + 5. Find aa and bb, and write f(x)f(x) as a linear function plus a fraction.

Solution

The quotient when the numerator is divided by x−1x - 1 must be 2x+52x + 5, so

ax2+bx+3=(x−1)(2x+5)+r=2x2+3x−5+rax^2 + bx + 3 = (x - 1)(2x + 5) + r = 2x^2 + 3x - 5 + r

Comparing coefficients: a=2a = 2, b=3b = 3, and −5+r=3-5 + r = 3, so r=8r = 8.

f(x)=2x2+3x+3x−1=2x+5+8x−1f(x) = \frac{2x^2 + 3x + 3}{x - 1} = 2x + 5 + \frac{8}{x - 1}

8. (Challenge) Let f(x)=x+kx2−4f(x) = \dfrac{x + k}{x^2 - 4}.

  • (a) For which values of kk does the graph have only one vertical asymptote?
  • (b) Describe the graph when k=2k = 2.
Solution

(a) The denominator is 00 at x=±2x = \pm 2. A zero of the denominator gives a hole instead of an asymptote if the numerator is also 00 there: 2+k=02 + k = 0 or −2+k=0-2 + k = 0. So k=−2k = -2 or k=2k = 2.

(b) With k=2k = 2:

f(x)=x+2(x−2)(x+2)=1x−2,x≠−2f(x) = \frac{x + 2}{(x - 2)(x + 2)} = \frac{1}{x - 2}, \qquad x \ne -2

The graph is the reciprocal graph y=1x−2y = \dfrac{1}{x - 2} (vertical asymptote x=2x = 2, horizontal asymptote y=0y = 0, yy-intercept −12-\frac{1}{2}) with a hole at (−2,−14)\left(-2, -\frac{1}{4}\right).

9. (Challenge) Let f(x)=x2+4xf(x) = \dfrac{x^2 + 4}{x}.

  • (a) State the equations of the asymptotes.
  • (b) By writing y=x2+4xy = \dfrac{x^2 + 4}{x} as a quadratic equation in xx, show that the graph never takes values between −4-4 and 44. Hence state the range and the turning points.
Solution

(a) f(x)=x+4xf(x) = x + \dfrac{4}{x}, so the vertical asymptote is x=0x = 0 and the oblique asymptote is y=xy = x.

(b) Multiply by xx: yx=x2+4yx = x^2 + 4, so x2−yx+4=0x^2 - yx + 4 = 0. For a given yy, there is a point on the graph at that height only if this quadratic in xx has a real solution, which needs

(−y)2−4(1)(4)≥0⇒y2≥16⇒y≤−4 or y≥4(-y)^2 - 4(1)(4) \ge 0 \quad\Rightarrow\quad y^2 \ge 16 \quad\Rightarrow\quad y \le -4 \text{ or } y \ge 4

So the range is {y∈R∣y≤−4 or y≥4}\{y \in \mathbb{R} \mid y \le -4 \text{ or } y \ge 4\}. The extreme heights y=±4y = \pm 4 happen when the discriminant is 00, giving the single solution x=y2x = \dfrac{y}{2}: a local minimum at (2,4)(2, 4) and a local maximum at (−2,−4)(-2, -4). Check: f(2)=82=4f(2) = \dfrac{8}{2} = 4 ✓ and f(−2)=8−2=−4f(-2) = \dfrac{8}{-2} = -4 ✓.