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

Exercise 5.1 · Q14: Continuity of the step function 3, 4, 5 on [0,10][0, 10]

Exercise 5.1Continuity of piecewise functions · Section 5.2
The question

Discuss the continuity of the function ff⁠, where ff is defined by

f(x)={3,if 0≤x≤14,if 1<x<35,if 3≤x≤10f(x) = \begin{cases} 3, & \text{if } 0 \le x \le 1 \\ 4, & \text{if } 1 < x < 3 \\ 5, & \text{if } 3 \le x \le 10 \end{cases}
Exam answer

The domain of ff is [0,10][0, 10]⁠. On each of (0,1)(0, 1)⁠, (1,3)(1, 3) and (3,10)(3, 10)⁠, ff is constant, so it is continuous there.

At x=0x = 0 (left end point):

RHL=lim⁡h→0f(0+h)=lim⁡h→03=3\begin{aligned} \text{RHL} &= \lim_{h\to0} f(0 + h) \\ &= \lim_{h\to0} 3 = 3 \end{aligned}

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

At x=10x = 10 (right end point):

LHL=lim⁡h→0f(10−h)=lim⁡h→05=5\begin{aligned} \text{LHL} &= \lim_{h\to0} f(10 - h) \\ &= \lim_{h\to0} 5 = 5 \end{aligned}

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

At x=1x = 1⁠:

LHL=lim⁡h→0f(1−h)=lim⁡h→03=3RHL=lim⁡h→0f(1+h)=lim⁡h→04=4\begin{aligned} \text{LHL} &= \lim_{h\to0} f(1 - h) \\ &= \lim_{h\to0} 3 = 3 \\ \text{RHL} &= \lim_{h\to0} f(1 + h) \\ &= \lim_{h\to0} 4 = 4 \end{aligned}

and f(1)=3f(1) = 3⁠. Since LHL≠RHL\text{LHL} \ne \text{RHL}⁠, ff is not continuous at x=1x = 1⁠.

At x=3x = 3⁠:

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

and f(3)=5f(3) = 5⁠. Since LHL≠RHL\text{LHL} \ne \text{RHL}⁠, ff is not continuous at x=3x = 3⁠.

Hence ff is discontinuous at x=1x = 1 and x=3x = 3 only.

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

The one idea this problem is built on

ff is a staircase with three flat steps: height 33⁠, then 44⁠, then 55⁠. On each flat part it is constant, so it is continuous there. At x=1x = 1 and x=3x = 3 the height jumps by 11⁠, so ff is discontinuous at those two points. Also, ff is only defined on [0,10][0, 10]⁠: the end points 00 and 1010 can only be approached from one side, so continuity there means the one available one-sided limit equals the value (the elaboration after Definition 2), and both end points pass.

Given, to find, and the plan
Given
f=3f = 3 on [0,1][0, 1]⁠, f=4f = 4 on (1,3)(1, 3)⁠, f=5f = 5 on [3,10][3, 10]⁠.
To find
At which points of the domain ff is continuous and at which it is not.
Plan
(1) Find the domain: it is [0,10][0, 10]⁠, not R\R⁠. (2) Points strictly inside each piece. (3) The end points 00 and 1010⁠, with one-sided limits. (4) The junction x=1x = 1⁠. (5) The junction x=3x = 3⁠. (6) Conclude.

Basics you need

1Reading a piecewise function, including its domain

The conditions 0≤x≤10 \le x \le 1⁠, 1<x<31 < x < 3⁠, 3≤x≤103 \le x \le 10 together cover exactly the interval [0,10][0, 10]⁠. Numbers outside it have no formula, so they are not in the domain. Basics: piecewise functions

2Constant functions are continuous

If f(x)=kf(x) = k for all xx near cc⁠, then lim⁡x→cf(x)=k\lim_{x\to c} f(x) = k (Example 5). Basics: what a limit is

3Left-hand and right-hand limits

At a junction, each side may use a different formula, so each one-sided limit is found separately. Basics: one-sided limits

4Continuity at an end point (after Definition 2)

For ff defined on [a,b][a, b]⁠: continuity at aa means lim⁡x→a+f(x)=f(a)\lim_{x\to a^+} f(x) = f(a)⁠, and continuity at bb means lim⁡x→b−f(x)=f(b)\lim_{x\to b^-} f(x) = f(b)⁠. The other one-sided limit makes no sense there, because ff has no values on that side.

5Continuity at an interior point (Definition 1)

Left-hand limit == right-hand limit =f(c)= f(c)⁠.

Solution

  1. Find the domain and the special points

    The three conditions cover [0,1][0, 1]⁠, (1,3)(1, 3) and [3,10][3, 10]⁠. These do not overlap (11 belongs only to the first, 33 only to the third) and together they make up [0,10][0, 10]⁠. So the domain of ff is [0,10][0, 10]⁠, and ff is not defined for x<0x < 0 or x>10x > 10⁠.

    The special points are the end points 00⁠, 1010 and the junctions 11⁠, 33⁠.

    Continuity is only discussed at points of the domain. A number like −2-2 or 1111 is neither a point of continuity nor a point of discontinuity of ff⁠; ff simply does not exist there. And at the end points of a closed interval the test is different, so we must spot them first.
    Read the inequalities carefully: ≤\le includes the end number, << excludes it. Basics: piecewise functions
  2. Points strictly inside a piece

    If 0<c<10 < c < 1⁠: all xx within distance min⁡(c,1−c)\min(c, 1 - c) of cc lie in (0,1)(0, 1)⁠, where f(x)=3f(x) = 3⁠. So lim⁡x→cf(x)=3=f(c)\lim_{x\to c} f(x) = 3 = f(c)⁠.

    If 1<c<31 < c < 3⁠: all xx within distance min⁡(c−1,3−c)\min(c - 1, 3 - c) of cc lie in (1,3)(1, 3)⁠, where f(x)=4f(x) = 4⁠. So lim⁡x→cf(x)=4=f(c)\lim_{x\to c} f(x) = 4 = f(c)⁠.

    If 3<c<103 < c < 10⁠: all xx within distance min⁡(c−3,10−c)\min(c - 3, 10 - c) of cc lie in (3,10)(3, 10)⁠, where f(x)=5f(x) = 5⁠. So lim⁡x→cf(x)=5=f(c)\lim_{x\to c} f(x) = 5 = f(c)⁠.

    So ff is continuous at every point of (0,1)(0, 1)⁠, (1,3)(1, 3) and (3,10)(3, 10)⁠.

    Around such a point there is a small interval on which ff is one constant. The limit only looks at that small interval, and the limit of a constant is the constant. The distance min⁡(… )\min(\dots) is just the distance to the nearer special point, so the small interval does not reach a junction or an end.
    Constant functions are continuous (Example 5). Lesson: continuity at a point
  3. The end points x=0x = 0 and x=10x = 10

    At x=0x = 0⁠. f(0)=3f(0) = 3 (since 0≤0≤10 \le 0 \le 1⁠). There are no points of the domain to the left of 00⁠, so only the right-hand limit is used. For 0<x<10 < x < 1⁠, f(x)=3f(x) = 3⁠:

    lim⁡x→0+f(x)=lim⁡x→0+3=3=f(0).\lim_{x\to 0^+} f(x) = \lim_{x\to 0^+} 3 = 3 = f(0).

    So ff is continuous at x=0x = 0⁠.

    At x=10x = 10⁠. f(10)=5f(10) = 5 (since 3≤10≤103 \le 10 \le 10⁠). There are no points of the domain to the right of 1010⁠, so only the left-hand limit is used. For 3<x<103 < x < 10⁠, f(x)=5f(x) = 5⁠:

    lim⁡x→10−f(x)=lim⁡x→10−5=5=f(10).\lim_{x\to 10^-} f(x) = \lim_{x\to 10^-} 5 = 5 = f(10).

    So ff is continuous at x=10x = 10⁠.

    The chapter's elaboration of Definition 2 says exactly this: for a function on [a,b][a, b]⁠, continuity at aa means lim⁡x→a+f(x)=f(a)\lim_{x\to a^+} f(x) = f(a) and at bb means lim⁡x→b−f(x)=f(b)\lim_{x\to b^-} f(x) = f(b)⁠. The limits lim⁡x→0−\lim_{x\to 0^-} and lim⁡x→10+\lim_{x\to 10^+} "do not make sense", in the book's words, because ff has no values there. It would be wrong to call 00 or 1010 discontinuities just because the graph stops.
    At an end point of a closed interval, use only the one-sided limit from inside the interval. Basics: one-sided limits
  4. The junction x=1x = 1

    Value. 11 satisfies 0≤x≤10 \le x \le 1⁠, so f(1)=3f(1) = 3⁠.

    Left-hand limit. For 0≤x<10 \le x < 1⁠, f(x)=3f(x) = 3⁠:

    lim⁡x→1−f(x)=lim⁡x→1−3=3.\lim_{x\to 1^-} f(x) = \lim_{x\to 1^-} 3 = 3.

    Right-hand limit. For 1<x<31 < x < 3⁠, f(x)=4f(x) = 4⁠:

    lim⁡x→1+f(x)=lim⁡x→1+4=4.\lim_{x\to 1^+} f(x) = \lim_{x\to 1^+} 4 = 4.

    Compare. 3≠43 \ne 4⁠, so the limit at 11 does not exist and ff is discontinuous at x=1x = 1.

    The value f(1)=3f(1) = 3 matches the left side, but the right side is at height 44⁠. A jump of 11 means the one-sided limits disagree, which already rules out continuity.
    Unequal one-sided limits: no limit, so no continuity.
  5. The junction x=3x = 3

    Value. 33 satisfies 3≤x≤103 \le x \le 10⁠, so f(3)=5f(3) = 5⁠.

    Left-hand limit. For 1<x<31 < x < 3⁠, f(x)=4f(x) = 4⁠:

    lim⁡x→3−f(x)=lim⁡x→3−4=4.\lim_{x\to 3^-} f(x) = \lim_{x\to 3^-} 4 = 4.

    Right-hand limit. For 3<x≤103 < x \le 10⁠, f(x)=5f(x) = 5⁠:

    lim⁡x→3+f(x)=lim⁡x→3+5=5.\lim_{x\to 3^+} f(x) = \lim_{x\to 3^+} 5 = 5.

    Compare. 4≠54 \ne 5⁠, so ff is discontinuous at x=3x = 3.

    This time the value f(3)=5f(3) = 5 matches the right side, but the left side is at height 44⁠. Whichever side the junction value belongs to, a jump means discontinuity.
    Definition 1 needs both one-sided limits and the value to agree. Lesson: continuity at a point
  6. Conclude

    Steps 2 to 5 cover every point of the domain [0,10][0, 10]⁠. ff is continuous at every point of [0,10][0, 10] except x=1x = 1 and x=3x = 3⁠, where it is discontinuous. So the points of discontinuity are x=1x = 1 and x=3x = 3, and ff is not a continuous function.

    "Discuss the continuity" asks for the full picture: where ff is continuous, where it is not, and why. The list "inside the pieces, the two end points, the two junctions" accounts for every xx with 0≤x≤100 \le x \le 10⁠.
x y 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 O 3 4 5 (10, 5)
The staircase: height 3 on [0,1][0, 1] (blue, both ends filled), height 4 on (1,3)(1, 3) (gold, both ends hollow), height 5 on [3,10][3, 10] (green, both ends filled). The graph jumps at x=1x = 1 and x=3x = 3⁠. Nothing is drawn left of 00 or right of 1010⁠, because ff is not defined there. Horizontal scale: 1 unit = 32 px; vertical: 1 unit = 34 px.
Result

The domain is [0,10][0, 10]⁠. ff is continuous at every point of [0,10][0, 10] other than 11 and 33⁠, including the end points 00 and 1010⁠. At x=1x = 1 the one-sided limits are 33 and 44⁠; at x=3x = 3 they are 44 and 55⁠. ff is discontinuous at x=1x = 1 and x=3x = 3 only. (Textbook answer: "ff is not continuous at x=1x = 1 and x=3x = 3".)

Check it with numbers

f(0.999)=3f(0.999) = 3⁠, f(1)=3f(1) = 3⁠, f(1.001)=4f(1.001) = 4⁠: a jump of 11 across x=1x = 1⁠. f(2.999)=4f(2.999) = 4⁠, f(3)=5f(3) = 5⁠, f(3.001)=5f(3.001) = 5⁠: a jump of 11 across x=3x = 3⁠. Near the ends: f(0)=f(0.001)=3f(0) = f(0.001) = 3 and f(9.999)=f(10)=5f(9.999) = f(10) = 5⁠: no jump. ✓

Common mistakes
  1. Calling 00 and 1010 points of discontinuity. They are end points of the domain; the correct test uses one one-sided limit, and both pass.
  2. Discussing points outside [0,10][0, 10]⁠. ff is not defined there, so they are neither points of continuity nor of discontinuity.
  3. Using the wrong step for f(1)f(1) or f(3)f(3)⁠. f(1)=3f(1) = 3 (from 0≤x≤10 \le x \le 1⁠) and f(3)=5f(3) = 5 (from 3≤x≤103 \le x \le 10⁠); the middle step (1,3)(1, 3) contains neither end.
  4. Thinking that matching one side makes it continuous. At 11 the value matches the left side, at 33 the right side; both are still discontinuities.
What to take away
  1. Always find the domain first. Points outside it are not discussed at all.
  2. At an end point of a closed interval, continuity uses only the one-sided limit from inside.
  3. A step (jump) in a staircase function is always a point of discontinuity.

Every fact used, and where it comes from

FactUsed inSource
Continuity is defined only at points of the domainStep 1Definition 1, Section 5.2
A constant function is continuousSteps 2, 3Example 5, Section 5.2
A limit at cc depends only on values near ccStep 2Class XI, Limits and Derivatives
On [a,b][a, b]⁠: continuity at aa uses lim⁡x→a+\lim_{x\to a^+}⁠, at bb uses lim⁡x→b−\lim_{x\to b^-}Step 3Elaboration of Definition 2, Section 5.2
Continuity at an interior point: left-hand limit == right-hand limit =f(c)= f(c)Steps 4, 5Definition 1, Section 5.2 (Lesson: continuity at a point)
A continuous function is continuous at every point of its domainStep 6Definition 2, Section 5.2
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 →