Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Example 16: Every rational function p(x)q(x)\frac{p(x)}{q(x)} is continuous

ExamplesAlgebra of continuous functions · Section 5.2.1
The question

Prove that every rational function is continuous.

Exam answer

Let f(x)=p(x)q(x)f(x) = \dfrac{p(x)}{q(x)}⁠, where pp and qq are polynomials. Its domain is all real xx with q(x)≠0q(x) \ne 0⁠.

Let cc be in the domain, so q(c)≠0q(c) \ne 0⁠. Since polynomials are continuous, lim⁡x→cp(x)=p(c)\lim_{x\to c} p(x) = p(c) and lim⁡x→cq(x)=q(c)\lim_{x\to c} q(x) = q(c)⁠. So

lim⁡x→cf(x)=lim⁡x→cp(x)lim⁡x→cq(x)=p(c)q(c)=f(c)\begin{aligned} \lim_{x\to c} f(x) &= \frac{\lim_{x\to c} p(x)}{\lim_{x\to c} q(x)} \\ &= \frac{p(c)}{q(c)} = f(c) \end{aligned}

∴ f\therefore\ f is continuous at every point of its domain, so every rational function is continuous. Hence proved.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

A rational function is a quotient of two polynomials, p(x)q(x)\frac{p(x)}{q(x)}⁠. Polynomials are continuous everywhere (Example 14), and Theorem 1(4) says a quotient of two functions continuous at cc is continuous at cc provided the denominator is not 0 at cc. That proviso is exactly the condition for cc to be in the domain of the rational function. So at every point of its domain the rational function is continuous.

Given, to show, and the plan
Given
f(x)=p(x)q(x)f(x) = \frac{p(x)}{q(x)} with pp⁠, qq polynomial functions, defined where q(x)≠0q(x) \ne 0⁠.
To show
ff is continuous at every point of its domain, so ff is a continuous function.
Plan
Identify the domain. Fix a point cc of the domain. Use Example 14 for pp and qq⁠, then Theorem 1(4) with q(c)≠0q(c) \ne 0⁠. Finally apply Definition 2, and explain the zeros of qq⁠.

Basics you need

1Rational function and its domain

f(x)=p(x)q(x)f(x) = \frac{p(x)}{q(x)}⁠, pp and qq polynomials, qq not the zero polynomial. Division by 0 is not allowed, so the domain is {x∈R:q(x)≠0}\{x \in \R : q(x) \ne 0\}⁠. Example: x+1x2−4\frac{x+1}{x^2-4} has domain R\R without −2-2 and 22⁠.

2Every polynomial is continuous

For every polynomial pp and every real cc⁠, lim⁡x→cp(x)=p(c)\lim_{x\to c} p(x) = p(c) (Example 14).

3Theorem 1(4)

If ff and gg are continuous at cc and g(c)≠0g(c) \ne 0⁠, then fg\frac{f}{g} is continuous at cc⁠. It rests on the quotient rule of limits, which needs the limit of the denominator to be non-zero. (The book proves only part (1) of Theorem 1 and leaves part (4) to the reader; Step 3 below carries out that argument for pq\frac{p}{q}⁠.) Lesson: algebra of continuous functions

4Definition 2

A function is continuous if it is continuous at every point of its domain; points outside the domain are not tested. Lesson: continuity at a point

Solution

  1. The domain of ff

    f(x)=p(x)q(x)f(x) = \frac{p(x)}{q(x)} can be computed exactly when the denominator is non-zero. So

    domain of f={x∈R:q(x)≠0}.\text{domain of } f = \{x \in \R : q(x) \ne 0\}.

    For example, x+1x2−4\frac{x+1}{x^2-4} is defined at every real number except x=−2x = -2 and x=2x = 2⁠, where x2−4=0x^2 - 4 = 0⁠.

    We need the domain first because Definition 2 asks for continuity at every point of the domain, and only there. A non-zero polynomial has finitely many zeros, so the domain is all of R\R except finitely many points (possibly none, as for 1x2+1\frac{1}{x^2+1}⁠).
    The book's notation "f(x)=p(x)q(x), q(x)≠0f(x) = \frac{p(x)}{q(x)},\ q(x) \ne 0" records the domain in the formula itself.
  2. Fix a point cc of the domain

    Let cc be any real number with q(c)≠0q(c) \ne 0⁠. By Example 14, both polynomials are continuous at cc⁠:

    lim⁡x→cp(x)=p(c),lim⁡x→cq(x)=q(c).\lim_{x\to c} p(x) = p(c), \qquad \lim_{x\to c} q(x) = q(c).
    Polynomials are continuous at every real number, so in particular at our cc⁠. These two limits are the two ingredients Theorem 1(4) needs.
    Example 14: every polynomial function is continuous.
  3. Apply Theorem 1(4)

    pp and qq are continuous at cc and q(c)≠0q(c) \ne 0⁠, so by Theorem 1(4) the quotient pq=f\frac{p}{q} = f is continuous at cc⁠. In terms of limits:

    lim⁡x→cp(x)q(x)=lim⁡x→cp(x)lim⁡x→cq(x)=p(c)q(c)=f(c).\begin{aligned} \lim_{x\to c} \frac{p(x)}{q(x)} &= \frac{\lim_{x\to c} p(x)}{\lim_{x\to c} q(x)} \\ &= \frac{p(c)}{q(c)} = f(c). \end{aligned}
    The quotient rule of limits ("the limit of a quotient is the quotient of the limits") only works when the limit of the denominator is not 0; otherwise the right-hand side would be a division by 0. Here that limit is q(c)q(c)⁠, which is non-zero precisely because cc is in the domain. This is the "provided g(c)≠0g(c) \ne 0" in Theorem 1(4).
    Theorem 1(4), Section 5.2.1. Lesson: algebra of continuous functions
  4. Conclude with Definition 2

    cc was an arbitrary point of the domain, so ff is continuous at every point of its domain. By Definition 2, every rational function is continuous.

    This is the textbook's proof: "since polynomial functions are continuous (Example 14), ff is continuous by (4) of Theorem 1". Steps 1 to 3 spell out what each part of that sentence contributes.
  5. What happens at the zeros of qq⁠?

    At a zero aa of qq⁠, the number f(a)f(a) does not exist, so aa is not in the domain, and in this book's sense aa is not a point of discontinuity. The graph may break there (for x+1x2−4\frac{x+1}{x^2-4}⁠, it shoots off to ±∞\pm\infty near x=±2x = \pm 2⁠), but this does not stop ff being a continuous function.

    This is the same situation as 1x\frac{1}{x} in Example 9 and the gap at 0 in Example 12: continuity is a property of points in the domain, so a missing point is not a failure.
    Do not cancel factors before finding the domain. x2−1x−1\frac{x^2 - 1}{x - 1} equals x+1x + 1 for x≠1x \ne 1⁠, but it is not defined at x=1x = 1⁠, so its domain is R\R without 1. Lesson: continuity at a point
Result

A rational function f=pqf = \frac{p}{q} has domain {x:q(x)≠0}\{x : q(x) \ne 0\}⁠, and at each point cc of it, lim⁡x→cf(x)\lim_{x\to c} f(x) equals p(c)q(c)=f(c)\frac{p(c)}{q(c)} = f(c)⁠. Hence every rational function is continuous (at every point of its domain). This agrees with the textbook's solution.

Check it with numbers

Take f(x)=x+1x2−4f(x) = \frac{x+1}{x^2-4} and c=1c = 1⁠: f(1)=2−3≈−0.666667f(1) = \frac{2}{-3} \approx -0.666667⁠. Nearby,

f(0.999)=1.999−3.001999≈−0.665890,f(0.999) = \tfrac{1.999}{-3.001999} \approx -0.665890, f(1.001)=2.001−2.997999≈−0.667445,f(1.001) = \tfrac{2.001}{-2.997999} \approx -0.667445,

both within 0.0010.001 of f(1)f(1)⁠, as continuity at 1 predicts.

Common mistakes
  1. Calling the zeros of qq points of discontinuity. They are not in the domain, so in this book's sense they are neither points of continuity nor of discontinuity.
  2. Dropping the condition q(c)≠0q(c) \ne 0⁠. Theorem 1(4) needs it; without it the quotient rule of limits would divide by 0.
  3. Simplifying first. Cancelling x−1x - 1 in x2−1x−1\frac{x^2-1}{x-1} gives a different function (one defined at 1).
What to take away
  1. Rational functions are continuous wherever they are defined, that is, wherever the denominator is non-zero.
  2. Theorem 1 turns known continuous functions into new ones; here Example 14 plus Theorem 1(4) gives the whole result in one line.
  3. The same pattern proves tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x} continuous in Example 18.

Every fact used, and where it comes from

FactUsed inSource
Rational function p(x)q(x)\frac{p(x)}{q(x)}⁠, q(x)≠0q(x) \ne 0Steps 1, 5Example 16, Section 5.2.1; Class XI
Every polynomial function is continuousStep 2Example 14, Section 5.2
fg\frac{f}{g} is continuous at cc if ff⁠, gg are and g(c)≠0g(c) \ne 0Step 3Theorem 1(4), Section 5.2.1 (Lesson: algebra of continuous functions)
Quotient rule of limitsStep 3Algebra of limits, Class XI (Basics: limits)
Continuous function; points outside the domain are not testedSteps 4, 5Definitions 1 and 2, Section 5.2 (Lesson: continuity at a point)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →