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

Exercise 5.1 · Q3: Continuity of x−5x-5⁠, 1x−5,\frac{1}{x-5}, x2−25x+5\frac{x^2-25}{x+5} and ∣x−5∣|x-5|

Exercise 5.1Continuous functions · Section 5.2
The question

Examine the following functions for continuity.

(a) f(x)=x−5f(x) = x - 5

(b) f(x)=1x−5, x≠5f(x) = \dfrac{1}{x - 5},\ x \ne 5

(c) f(x)=x2−25x+5, x≠−5f(x) = \dfrac{x^2 - 25}{x + 5},\ x \ne -5

(d) f(x)=∣x−5∣f(x) = |x - 5|

Exam answer

(a) f(x)=x−5f(x) = x - 5 is defined for every real xx⁠. For any real cc⁠,

lim⁡x→cf(x)=lim⁡x→c(x−5)=c−5=f(c)\begin{aligned} \lim_{x\to c} f(x) &= \lim_{x\to c}(x - 5) \\ &= c - 5 = f(c) \end{aligned}

So ff is continuous at every real number.

(b) f(x)=1x−5f(x) = \frac{1}{x - 5} is defined for x≠5x \ne 5⁠. For any c≠5c \ne 5⁠,

lim⁡x→cf(x)=lim⁡x→c1x−5=1c−5=f(c)\begin{aligned} \lim_{x\to c} f(x) &= \lim_{x\to c}\frac{1}{x - 5} \\ &= \frac{1}{c - 5} = f(c) \end{aligned}

So ff is continuous at every point of its domain: a continuous function.

(c) f(x)=x2−25x+5f(x) = \frac{x^2 - 25}{x + 5} is defined for x≠−5x \ne -5⁠. For any c≠−5c \ne -5⁠,

lim⁡x→cf(x)=lim⁡x→c(x−5)(x+5)x+5=lim⁡x→c(x−5)=c−5=f(c)\begin{aligned} \lim_{x\to c} f(x) &= \lim_{x\to c}\frac{(x - 5)(x + 5)}{x + 5} \\ &= \lim_{x\to c}(x - 5) \\ &= c - 5 = f(c) \end{aligned}

So ff is continuous at every point of its domain: a continuous function.

(d) f(x)=∣x−5∣f(x) = |x - 5|⁠. For x<5x < 5⁠, f(x)=5−xf(x) = 5 - x⁠, and for x>5x > 5⁠, f(x)=x−5f(x) = x - 5⁠. Both are polynomials, so ff is continuous at every x≠5x \ne 5⁠.

At x=5x = 5⁠:

LHL=lim⁡h→0f(5−h)=lim⁡h→0∣−h∣=0RHL=lim⁡h→0f(5+h)=lim⁡h→0∣h∣=0\begin{aligned} \text{LHL} &= \lim_{h\to0} f(5 - h) \\ &= \lim_{h\to0}|{-h}| = 0 \\ \text{RHL} &= \lim_{h\to0} f(5 + h) \\ &= \lim_{h\to0}|h| = 0 \end{aligned}

and f(5)=∣0∣=0f(5) = |0| = 0⁠. So LHL=RHL=f(5)\text{LHL} = \text{RHL} = f(5)⁠: ff is continuous at x=5x = 5⁠.

Hence ff is continuous at every real number. So all four functions are continuous.

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

The one idea this problem is built on

"Examine for continuity" asks whether ff is a continuous function, which by Definition 2 means continuous at every point of its domain. So for each function: find the domain, then test an arbitrary point cc of it. Points outside the domain (x=5x = 5 in (b), x=−5x = -5 in (c)) are not tested at all: ff has no value there, so it is neither continuous nor discontinuous there in this book's sense. That is why (b) and (c) are continuous functions even though their graphs have a break or a hole.

Given, to find, and the plan
Given
Four functions, two of them with a point excluded from the domain.
To find
For each, whether it is continuous at every point of its domain.
Plan
For each part: (1) state the domain; (2) take any cc in the domain and compute the left-hand limit, the right-hand limit and f(c)f(c)⁠; (3) where the formula changes (the corner of ∣x−5∣|x - 5| at 5), test that point separately; (4) conclude with Definition 2.

Basics you need

1Continuous at a point; continuous function

ff is continuous at a point cc of its domain if the left-hand limit, the right-hand limit and f(c)f(c) are equal (Definition 1). ff is a continuous function if it is continuous at every point of its domain (Definition 2, Section 5.2). Lesson: continuity at a point

2One-sided limits with a small step hh

With h>0h > 0⁠: left-hand limit at cc is lim⁡h→0f(c−h),\lim_{h\to0} f(c-h), right-hand limit is lim⁡h→0f(c+h).\lim_{h\to0} f(c+h). Basics: left-hand and right-hand limits

3Limit of a quotient

If p(x)→Pp(x) \to P and q(x)→Qq(x) \to Q with Q≠0,Q \ne 0, then p(x)q(x)→PQ.\dfrac{p(x)}{q(x)} \to \dfrac{P}{Q}. The same fact for continuous functions is Theorem 1 (4), Section 5.2.1. Basics: what a limit is

4Absolute value as a piecewise function

∣u∣=u|u| = u if u≥0u \ge 0 and ∣u∣=−u|u| = -u if u<0.u < 0. So ∣x−5∣|x - 5| is x−5x - 5 for x≥5x \ge 5 and 5−x5 - x for x<5.x < 5. Basics: piecewise functions

5A limit only looks near the point

lim⁡x→cf(x)\lim_{x\to c} f(x) depends only on the values of ff at points close to cc (and not at cc itself). If ff agrees with a simpler formula on some interval around c,c, the limit can be computed from that formula. Basics: what a limit is

Part (a): f(x)=x−5f(x) = x - 5

  1. Domain

    x−5x - 5 can be computed for every real x,x, so the domain is R.\R.

  2. Test an arbitrary point cc

    Let cc be any real number and h>0.h > 0.

    Left-hand limit.

    lim⁡h→0f(c−h)=lim⁡h→0(c−5−h)=c−5.\lim_{h\to0} f(c-h) = \lim_{h\to0}(c - 5 - h) = c - 5.

    Right-hand limit.

    lim⁡h→0f(c+h)=lim⁡h→0(c−5+h)=c−5.\lim_{h\to0} f(c+h) = \lim_{h\to0}(c - 5 + h) = c - 5.

    Value. f(c)=c−5.f(c) = c - 5.

    All three agree, so ff is continuous at c.c. Since cc was arbitrary, ff is continuous at every real number: a continuous function.

    Taking cc arbitrary is what makes this a proof for all points at once, rather than a check at a few. (It is also a polynomial, so Example 14 gives the same conclusion.)
    Definition 2: continuous at every point of the domain. Lesson: continuity at a point

Part (b): f(x)=1x−5,f(x) = \frac{1}{x-5}, x≠5x \ne 5

  1. Domain: every real number except 5

    The denominator x−5x - 5 is zero exactly when x=5,x = 5, and division by zero is undefined. The question itself excludes it. So the domain is R∖{5},\R \setminus \{5\}, that is, all x<5x < 5 and all x>5.x > 5.

    Everything that follows is about points in this domain. The point 5 is not one of them.
  2. Test an arbitrary point c≠5c \ne 5

    Let c≠5,c \ne 5, so c−5≠0.c - 5 \ne 0. As h→0,h \to 0, the denominators c−h−5c - h - 5 and c+h−5c + h - 5 both tend to c−5≠0.c - 5 \ne 0. By the limit of a quotient (Basic 3):

    Left-hand limit.

    lim⁡h→0f(c−h)=lim⁡h→01(c−5)−h=1c−5.\lim_{h\to0} f(c-h) = \lim_{h\to0} \frac{1}{(c-5) - h} = \frac{1}{c-5}.

    Right-hand limit.

    lim⁡h→0f(c+h)=lim⁡h→01(c−5)+h=1c−5.\lim_{h\to0} f(c+h) = \lim_{h\to0} \frac{1}{(c-5) + h} = \frac{1}{c-5}.

    Value. f(c)=1c−5.f(c) = \dfrac{1}{c - 5}.

    All three agree, so ff is continuous at every c≠5.c \ne 5.

    The quotient rule for limits needs the limit of the denominator to be non-zero, and that is exactly the condition c≠5.c \ne 5. The same conclusion comes from Theorem 1 (4): the constant 1 and x−5x - 5 are continuous (part (a)), and the denominator is not zero at c,c, so their quotient is continuous at c.c.
    Theorem 1 (4), Section 5.2.1: f/gf/g is continuous at cc if f,gf, g are and g(c)≠0.g(c) \ne 0. Lesson: algebra of continuous functions
  3. What about x=5x = 5⁠? It is not in the domain

    Near 5 the values blow up: f(5.001)=1000f(5.001) = 1000 and f(4.999)=−1000.f(4.999) = -1000. But 5 is not in the domain, so Definition 1 does not apply there: 5 is not a point of discontinuity. Since ff is continuous at every point of its domain, ff is a continuous function (Definition 2).

    x y −1 1 2 3 4 6 7 8 9 10 −4 −2 2 4 O x = 5: not in the domain 5 y = 1/(x − 5)
    y=1x−5y = \frac{1}{x-5} has two branches, one for x<5x < 5 and one for x>5.x > 5. The pen must be lifted at the dashed line x=5,x = 5, but only because ff is not defined there. Each branch is unbroken.
    This is the same situation as f(x)=1xf(x) = \frac1x in Example 9, which the book calls a continuous function. "Continuous function" in this chapter means continuous at the points where the function is defined; it does not mean "the graph is one piece".

Part (c): f(x)=x2−25x+5,f(x) = \frac{x^2-25}{x+5}, x≠−5x \ne -5

  1. Domain, and a simpler formula on it

    The denominator x+5x + 5 is zero only at x=−5,x = -5, which is excluded, so the domain is R∖{−5}.\R \setminus \{-5\}. For every xx in the domain, factorise the numerator as a difference of squares and cancel, which is allowed because x+5≠0x + 5 \ne 0⁠:

    f(x)=(x−5)(x+5)x+5=x−5.f(x) = \frac{(x-5)(x+5)}{x+5} = x - 5.
    Cancelling the factor x+5x + 5 means dividing it by itself, which is only legitimate when it is not zero. That is exactly why the simplification holds on the domain and says nothing about x=−5.x = -5.
    a2−b2=(a−b)(a+b),a^2 - b^2 = (a - b)(a + b), here with a=x,a = x, b=5.b = 5.
  2. Test an arbitrary point c≠−5c \ne -5

    Let c≠−5.c \ne -5. For 0<h<∣c+5∣,0 < h < |c + 5|, the points c−hc - h and c+hc + h are also different from −5,-5, so the formula f(x)=x−5f(x) = x - 5 applies to them.

    Left-hand limit.

    lim⁡h→0f(c−h)=lim⁡h→0(c−h−5)=c−5.\lim_{h\to0} f(c-h) = \lim_{h\to0}(c - h - 5) = c - 5.

    Right-hand limit.

    lim⁡h→0f(c+h)=lim⁡h→0(c+h−5)=c−5.\lim_{h\to0} f(c+h) = \lim_{h\to0}(c + h - 5) = c - 5.

    Value. f(c)=c−5.f(c) = c - 5.

    All three agree, so ff is continuous at every c≠−5,c \ne -5, and therefore ff is a continuous function.

    The restriction h<∣c+5∣h < |c + 5| keeps the nearby points away from −5,-5, where the simplified formula would not be valid. Since a limit only looks at points close to cc (Basic 5), restricting hh costs nothing.
  3. The hole at x=−5x = -5

    As x→−5x \to -5 the values approach −5−5=−10,-5 - 5 = -10, yet f(−5)f(-5) does not exist: −5-5 is not in the domain, so again it is neither a point of continuity nor of discontinuity. The graph is the line y=x−5y = x - 5 with one point removed.

    x y −8 −6 −5 −4 −2 2 6 −14 −12 −10 −8 −4 −2 2 O hole at (−5, −10): −5 is not in the domain y = x − 5 for x ≠ −5
    On its domain x2−25x+5\frac{x^2-25}{x+5} equals x−5,x - 5, so the graph is the line y=x−5y = x - 5 with an open circle at (−5,−10),(-5, -10), the point that is missing because x=−5x = -5 is excluded.
    Do not confuse "the limit exists at −5-5" with "continuous at −5-5": continuity also needs a value f(−5),f(-5), and there is none. The question only asks about the function as given, on its domain.

Part (d): f(x)=∣x−5∣f(x) = |x - 5|

  1. Domain and the two formulas

    ∣x−5∣|x - 5| is defined for every real x,x, so the domain is R.\R. By the definition of absolute value (Basic 4):

    f(x)={5−x,if x<5x−5,if x≥5f(x) = \begin{cases} 5 - x, & \text{if } x < 5 \\ x - 5, & \text{if } x \ge 5 \end{cases}
    Writing ff piece by piece shows where something could go wrong: only at x=5,x = 5, where the formula changes. Away from 5, ff is a simple polynomial near each point.
  2. Points c<5c < 5 and c>5c > 5

    Let c<5.c < 5. For 0<h<5−c0 < h < 5 - c both c−hc - h and c+hc + h are less than 5, so f(x)=5−xf(x) = 5 - x there:

    LHL=lim⁡h→0(5−(c−h))=5−c,RHL=lim⁡h→0(5−(c+h))=5−c,\begin{aligned} \text{LHL} &= \lim_{h\to0} \bigl(5 - (c - h)\bigr) = 5 - c,\\ \text{RHL} &= \lim_{h\to0} \bigl(5 - (c + h)\bigr) = 5 - c, \end{aligned}

    and f(c)=5−c.f(c) = 5 - c. All three are equal, so ff is continuous at c.c.

    Let c>5.c > 5. For 0<h<c−5,0 < h < c - 5, both c±hc \pm h exceed 5, so f(x)=x−5f(x) = x - 5 there:

    LHL=lim⁡h→0(c−h−5)=c−5,RHL=lim⁡h→0(c+h−5)=c−5,\begin{aligned} \text{LHL} &= \lim_{h\to0} (c - h - 5) = c - 5,\\ \text{RHL} &= \lim_{h\to0} (c + h - 5) = c - 5, \end{aligned}

    and f(c)=c−5.f(c) = c - 5. All three are equal, so ff is continuous at c.c.

    Choosing hh smaller than the distance from cc to 5 keeps both nearby points in the same piece as c,c, so a single formula applies on both sides.
  3. The corner point c=5c = 5

    Left-hand limit. For h>0,h > 0, 5−h<5,5 - h < 5, so

    lim⁡h→0f(5−h)=lim⁡h→0(5−(5−h))=lim⁡h→0h=0.\lim_{h\to0} f(5-h) = \lim_{h\to0} \bigl(5 - (5 - h)\bigr) = \lim_{h\to0} h = 0.

    Right-hand limit. 5+h>5,5 + h > 5, so

    lim⁡h→0f(5+h)=lim⁡h→0((5+h)−5)=lim⁡h→0h=0.\lim_{h\to0} f(5+h) = \lim_{h\to0} \bigl((5 + h) - 5\bigr) = \lim_{h\to0} h = 0.

    Value. f(5)=∣0∣=0.f(5) = |0| = 0.

    All three are 0, so ff is continuous at 5. Together with Part (d), Step 2, ff is continuous at every real number: a continuous function.

    x y −1 1 2 3 4 6 7 8 9 10 1 2 3 4 5 6 7 O (5, 0) y = 5 − x y = x − 5
    y=∣x−5∣y = |x - 5| is a V with its corner at (5,0).(5, 0). A corner is not a break: both arms arrive at height 0, which is f(5).f(5).
    A second route: ff is the composite of g(x)=x−5g(x) = x - 5 (continuous, part (a)) followed by ∣⋅∣|\cdot| (continuous, Example 7). By Theorem 2, Section 5.2.1, a composite of continuous functions is continuous. The direct calculation above shows the same thing explicitly.
    Theorem 2: if gg is continuous at cc and ff at g(c),g(c), then f∘gf \circ g is continuous at c.c. Basics: composite functions
Result

All four are continuous functions.

  • (a) x−5x - 5⁠: continuous at every real number.
  • (b) 1x−5\frac{1}{x-5}⁠: continuous at every x≠5,x \ne 5, the whole domain.
  • (c) x2−25x+5\frac{x^2-25}{x+5}⁠: continuous at every x≠−5,x \ne -5, the whole domain.
  • (d) ∣x−5∣|x - 5|⁠: continuous at every real number, including the corner x=5.x = 5.

(Textbook answer: "(a), (b), (c) and (d) are all continuous functions".)

Check it with numbers
  • (b) at c=7c = 7⁠: f(7)=0.5,f(7) = 0.5, f(6.999)=11.999≈0.500250,f(6.999) = \frac{1}{1.999} \approx 0.500250, f(7.001)=12.001≈0.499750.f(7.001) = \frac{1}{2.001} \approx 0.499750. Both close to 0.5.
  • (c) near the hole: f(−5.001)=25.010001−25−0.001=−10.001f(-5.001) = \frac{25.010001 - 25}{-0.001} = -10.001 and f(−4.999)=24.990001−250.001=−9.999.f(-4.999) = \frac{24.990001 - 25}{0.001} = -9.999. Both close to −10,-10, but there is no value f(−5).f(-5).
  • (c) at c=0c = 0⁠: f(0)=−255=−5=0−5f(0) = \frac{-25}{5} = -5 = 0 - 5 ✓ (agrees with the simplified formula).
  • (d) at the corner: f(4.999)=0.001,f(4.999) = 0.001, f(5.001)=0.001,f(5.001) = 0.001, f(5)=0.f(5) = 0.
Common mistakes
  1. "(b) is discontinuous at x=5x = 5⁠." 5 is not in the domain, so the question of continuity there does not arise. The book's convention (Definition 2 and Example 9) makes (b) a continuous function.
  2. Cancelling x+5x + 5 without saying x≠−5.x \ne -5. The simplification f(x)=x−5f(x) = x - 5 is valid only on the domain.
  3. "A corner means a break." ∣x−5∣|x - 5| has a sharp corner at 5 but no jump; it is continuous there. (Corners matter later, for differentiability.)
  4. Testing only a few points. "Continuous function" is a claim about every point of the domain, so take an arbitrary c.c.
What to take away
  1. "Examine for continuity" means: continuous at every point of the domain (Definition 2). Start by writing the domain down.
  2. Points left out of the domain are neither continuous nor discontinuous points; a graph may break there and the function can still be a continuous function.
  3. For ∣expression∣,|\text{expression}|, split into the two cases and test the switching point with one-sided limits.
  4. Sums, quotients (non-zero denominator) and composites of continuous functions are continuous (Theorems 1 and 2).

Every fact used, and where it comes from

FactUsed inSource
Continuity at cc⁠: LHL, RHL and f(c)f(c) exist and are equalAll partsDefinition 1, Section 5.2 (Lesson: continuity at a point)
Continuous function: continuous at every point of its domainAll partsDefinition 2, Section 5.2
1x\frac1x is a continuous function although undefined at 0Part (b), Step 3Example 9
Quotient of continuous functions with g(c)≠0g(c) \ne 0 is continuousPart (b), Step 2Theorem 1 (4), Section 5.2.1 (Lesson: algebra of continuous functions)
Limit of a quotient with non-zero denominator limitPart (b), Step 2Class XI Limits (Basics: what a limit is)
a2−b2=(a−b)(a+b)a^2 - b^2 = (a-b)(a+b)Part (c), Step 1Algebraic identity
∣u∣=u|u| = u for u≥0,u \ge 0, −u-u for u<0u < 0Part (d), Step 1Definition of modulus (Basics: piecewise functions)
∣x∣|x| is continuousPart (d), Step 3Example 7
Composite of continuous functions is continuousPart (d), Step 3Theorem 2, Section 5.2.1 (Basics: composite functions)
Polynomials are continuousPart (a), Step 2Example 14
Values in the check boxCheckRecomputed in the site's verification script
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 →