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

Example 11: x+2x+2⁠, 00⁠, x−2x-2 around x=1x=1⁠: find every discontinuity

ExamplesContinuity of piecewise functions · Section 5.2
The question

Find all the points of discontinuity of the function ff defined by

f(x)={x+2,if x<10,if x=1x−2,if x>1f(x) = \begin{cases} x + 2, & \text{if } x < 1 \\ 0, & \text{if } x = 1 \\ x - 2, & \text{if } x > 1 \end{cases}
Exam answer

For x<1x < 1⁠, f(x)=x+2f(x) = x + 2⁠, a polynomial. So ff is continuous at every c<1c < 1⁠.

For x>1x > 1⁠, f(x)=x−2f(x) = x - 2⁠, a polynomial. So ff is continuous at every c>1c > 1⁠.

At x=1x = 1⁠: f(1)=0f(1) = 0 and

LHL=lim⁡x→1−(x+2)=3,RHL=lim⁡x→1+(x−2)=−1\begin{aligned} \text{LHL} &= \lim_{x\to 1^-}(x + 2) = 3, \\ \text{RHL} &= \lim_{x\to 1^+}(x - 2) = -1 \end{aligned}

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

∴ x=1\therefore\ x = 1 is the only point of discontinuity of ff⁠.

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

The one idea this problem is built on

A limit at a point cc only looks at inputs close to cc⁠. Away from 1, every point has a small neighbourhood on which ff is one straight line, so ff is continuous there. The single point that needs real work is the junction x=1x = 1⁠, where we compute three numbers separately: the left-hand limit, the right-hand limit and the value f(1)f(1)⁠. Here they are 3, −1-1 and 0, all different, so ff breaks at 1 and nowhere else.

Given, to find, and the plan
Given
f(x)=x+2f(x) = x + 2 for x<1x < 1⁠, f(1)=0f(1) = 0⁠, and f(x)=x−2f(x) = x - 2 for x>1x > 1⁠.
To find
Every point of the domain at which ff is not continuous.
Plan
Find the domain. Split it into c<1c < 1⁠, c>1c > 1 and c=1c = 1⁠. Inside the two open pieces use the limit of a straight line. At c=1c = 1 compute the left-hand limit, the right-hand limit and f(1)f(1)⁠, each on its own line, and compare.

Basics you need

1Reading a three-line definition

Each line applies only where its condition holds. Here the conditions x<1x < 1⁠, x=1x = 1⁠, x>1x > 1 do not overlap and together cover every real number, so each real number uses exactly one line. Basics: piecewise functions

2Left-hand and right-hand limits

lim⁡x→c−f(x)\lim_{x\to c^-} f(x) uses only inputs x<cx < c⁠; lim⁡x→c+f(x)\lim_{x\to c^+} f(x) uses only inputs x>cx > c⁠. The (two-sided) limit exists exactly when both exist and are equal. Neither one-sided limit ever uses the value f(c)f(c) itself. Basics: left-hand and right-hand limits

3Limit of a straight line

For any constant aa⁠, lim⁡x→c(x+a)=c+a\lim_{x\to c}(x + a) = c + a⁠, and the same from either side. This is the algebra of limits from Class XI (sum of the limits of xx and of a constant). Basics: what a limit is

4Continuity at a point (Definition 1)

For cc in the domain of ff⁠: ff is continuous at cc when the left-hand limit, the right-hand limit and f(c)f(c) all exist and are equal. Otherwise cc is a point of discontinuity. Lesson: continuity at a point

Solution

  1. Find the domain

    Every real number xx satisfies exactly one of x<1x < 1⁠, x=1x = 1⁠, x>1x > 1⁠, and each case has a rule. So ff is defined at every real number:

    domain of f=R.\text{domain of } f = \R.

    The question therefore concerns every real number cc⁠, and we split into three cases: c<1c < 1⁠, c>1c > 1⁠, c=1c = 1⁠.

    Continuity is only ever tested at points of the domain (Definition 1 starts with "let cc be a point in the domain"). Here nothing is excluded, so no real number can be skipped. The formula changes only at 1, which is why 1 gets a case of its own.
    The three cases together cover all of R\R with no overlap, so after handling them we will have examined every point. Basics: piecewise functions
  2. Points c<1c < 1

    Fix any c<1c < 1⁠. Then f(c)=c+2f(c) = c + 2⁠. The distance from cc to 1 is the positive number 1−c1 - c⁠. Every xx with ∣x−c∣<1−c|x - c| < 1 - c satisfies x<c+(1−c)=1x < c + (1 - c) = 1⁠, so on that whole interval around cc⁠, on both sides of cc⁠,

    f(x)=x+2.f(x) = x + 2.

    Hence

    lim⁡x→cf(x)=lim⁡x→c(x+2)=c+2=f(c).\lim_{x\to c} f(x) = \lim_{x\to c}(x + 2) = c + 2 = f(c).

    So ff is continuous at every c<1c < 1.

    A limit at cc depends only on the values of ff at inputs as close to cc as we like. Staying within distance 1−c1 - c of cc we never reach 1, so the lines "00" and "x−2x - 2" are never used near cc⁠: near cc⁠, ff simply is the line x+2x + 2⁠. For example, at c=0.9c = 0.9 every xx in (0.8,1)(0.8, 1) is below 1.
    lim⁡x→c(x+2)=c+2\lim_{x\to c}(x + 2) = c + 2 by the algebra of limits (Basic 3). Basics: what a limit is
  3. Points c>1c > 1

    Fix any c>1c > 1⁠. Then f(c)=c−2f(c) = c - 2⁠. Every xx with ∣x−c∣<c−1|x - c| < c - 1 satisfies x>c−(c−1)=1x > c - (c - 1) = 1⁠, so near cc we have f(x)=x−2f(x) = x - 2 and

    lim⁡x→cf(x)=lim⁡x→c(x−2)=c−2=f(c).\lim_{x\to c} f(x) = \lim_{x\to c}(x - 2) = c - 2 = f(c).

    So ff is continuous at every c>1c > 1.

    The mirror image of Step 2: a small enough interval around cc lies entirely to the right of 1, where only the rule x−2x - 2 is used. This is what the book means by "as in the previous example we find that ff is continuous at all real numbers x≠1x \ne 1".
    Example 10 uses exactly the same two lines away from 1.
  4. At c=1c = 1⁠: the value

    The input 1 satisfies only the condition x=1x = 1⁠, so the middle line applies:

    f(1)=0.f(1) = 0.
    It is tempting to put x=1x = 1 into x+2x + 2 or x−2x - 2⁠, but those rules are only for x<1x < 1 and x>1x > 1⁠. The value at 1 is fixed separately by the definition, and it is 0.
  5. At c=1c = 1⁠: the left-hand limit

    For inputs x<1x < 1 the rule is f(x)=x+2f(x) = x + 2⁠, so

    lim⁡x→1−f(x)=lim⁡x→1−(x+2)=1+2=3.\lim_{x\to 1^-} f(x) = \lim_{x\to 1^-}(x + 2) = 1 + 2 = 3.
    "x→1−x \to 1^-" means xx approaches 1 through numbers less than 1, such as 0.9, 0.99, 0.999. All of them use the first line. The value f(1)=0f(1) = 0 plays no part, because a limit never uses the value at the point itself.
  6. At c=1c = 1⁠: the right-hand limit

    For inputs x>1x > 1 the rule is f(x)=x−2f(x) = x - 2⁠, so

    lim⁡x→1+f(x)=lim⁡x→1+(x−2)=1−2=−1.\lim_{x\to 1^+} f(x) = \lim_{x\to 1^+}(x - 2) = 1 - 2 = -1.
    xxline usedf(x)f(x)
    0.90.9x+2x + 22.92.9
    0.990.99x+2x + 22.992.99
    0.9990.999x+2x + 22.9992.999
    110000
    1.0011.001x−2x - 2−0.999-0.999
    1.011.01x−2x - 2−0.99-0.99
    1.11.1x−2x - 2−0.9-0.9
    Inputs just above 1 use the third line, and x−2x - 2 heads for 1−2=−11 - 2 = -1⁠. The table shows the three behaviours side by side: values near 3 on the left, the single value 0 at 1, values near −1-1 on the right.
  7. Compare the three numbers

    lim⁡x→1−f(x)=3,lim⁡x→1+f(x)=−1,f(1)=0.\begin{aligned} \lim_{x\to 1^-} f(x) &= 3, \\ \lim_{x\to 1^+} f(x) &= -1, \\ f(1) &= 0. \end{aligned}

    The left-hand and right-hand limits are different (3≠−13 \ne -1⁠), so lim⁡x→1f(x)\lim_{x\to 1} f(x) does not exist, and Definition 1 cannot hold. Hence ff is not continuous at x=1x = 1.

    Continuity at 1 needs all three numbers to be equal. The two one-sided limits already disagree, so the test fails before f(1)f(1) is even compared. (The value 0 also matches neither limit, but that is a second, separate defect.) The graph jumps by 3−(−1)=43 - (-1) = 4 at x=1x = 1⁠.
    Because the one-sided limits differ, no choice of the single value f(1)f(1) could make ff continuous at 1: 0, 3 or −1-1 would all fail. Lesson: continuity at a point
  8. Conclusion

    By Steps 2 and 3, ff is continuous at every real number other than 1; by Step 7 it is not continuous at 1. So x=1x = 1 is the only point of discontinuity of ff.

    x y O −4 −3 −2 −1 1 2 3 4 −3 −2 −1 1 3 4 (1, 3) (1, −1) (1, 0) y = x + 2 y = x − 2
    The graph of ff⁠, same scale on both axes. The blue line y=x+2y = x + 2 ends at the open dot (1,3)(1, 3) and the violet line y=x−2y = x - 2 starts at the open dot (1,−1)(1, -1)⁠: neither point is on the graph. The filled rose dot (1,0)(1, 0) is the actual value f(1)=0f(1) = 0⁠. The textbook's Fig 5.5 shows the two open dots but does not mark (1,0)(1, 0)⁠.
    Steps 1 to 3 and 7 cover every real number, so no other point of discontinuity can exist. In the graph, the pen must be lifted at x=1x = 1 and only there.
Result

ff is continuous at every c≠1c \ne 1⁠. At x=1x = 1 the left-hand limit is 3, the right-hand limit is −1-1 and f(1)=0f(1) = 0⁠, so x=1x = 1 is the only point of discontinuity of ff. This agrees with the textbook's solution.

Check it with numbers

f(0.999)=2.999f(0.999) = 2.999⁠, f(1)=0f(1) = 0 and f(1.001)=−0.999f(1.001) = -0.999⁠. Three inputs within 0.0010.001 of each other give three outputs spread over an interval of length almost 4. Moving the inputs even closer to 1 does not help: f(0.999999)=2.999999f(0.999999) = 2.999999 and f(1.000001)=−0.999999f(1.000001) = -0.999999⁠. A function continuous at 1 would bring these outputs together.

Common mistakes
  1. Using f(1)f(1) as a one-sided limit. The left-hand limit is 3, not 0: limits use only inputs near 1, never the input 1 itself.
  2. Computing f(1)f(1) from an outer line. f(1)=0f(1) = 0 by the middle line; 1+2=31 + 2 = 3 and 1−2=−11 - 2 = -1 are the limits, not the value.
  3. Thinking the problem is only the value at 1. Even if f(1)f(1) were redefined, the jump from 3 to −1-1 would remain, so ff would still be discontinuous at 1.
  4. Forgetting the other points. "Find all the points" needs Steps 2 and 3, which show that no point other than 1 is a point of discontinuity.
What to take away
  1. For a piecewise function, continuity inside each open piece comes from that piece's formula; each junction is tested with three separately computed numbers.
  2. Unequal one-sided limits (a jump) mean discontinuity whatever the value at the point.
  3. Compare Example 10: there f(1)=3f(1) = 3 equals the left-hand limit, here f(1)=0f(1) = 0 equals neither, but in both cases 1 is the only point of discontinuity.

Every fact used, and where it comes from

FactUsed inSource
Each line of a piecewise rule applies only where its condition holdsSteps 1–6Definition of a piecewise function (Basics: piecewise functions)
A limit depends only on values near cc⁠, not at ccSteps 2, 3, 5, 6Meaning of a limit, Class XI (Basics: limits)
lim⁡x→c(x+a)=c+a\lim_{x\to c}(x + a) = c + aSteps 2, 3, 5, 6Algebra of limits, Class XI (Limits and Derivatives)
Limit exists iff both one-sided limits exist and agreeStep 7Section 5.2, after Definition 1 (Basics: one-sided limits)
Continuity at a point of the domain; point of discontinuitySteps 1, 2, 3, 7, 8Definition 1, Section 5.2 (Lesson: continuity at a point)
The same outer pieces with f(1)=3f(1) = 3Step 3Example 10, Section 5.2
Graph of ffStep 8Fig 5.5, 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 →