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

Exercise 5.1 · Q13: Is x+5x + 5 for x≤1x \le 1⁠, x−5x - 5 for x>1x > 1 continuous?

Exercise 5.1Continuity of piecewise functions · Section 5.2
The question

Is the function defined by

f(x)={x+5,if x≤1x−5,if x>1f(x) = \begin{cases} x + 5, & \text{if } x \le 1 \\ x - 5, & \text{if } x > 1 \end{cases}

a continuous function?

Exam answer

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

At x=1x = 1⁠:

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

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

No. ff is discontinuous at x=1x = 1⁠, so ff is not a continuous function.

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

The one idea this problem is built on

"A continuous function" means continuous at every point of its domain (Definition 2). So one bad point is enough to answer "no". Each piece is a straight line, continuous on its own, but at x=1x = 1 the left line arrives at height 1+5=61 + 5 = 6 and the right line starts from height 1−5=−41 - 5 = -4⁠. The graph drops by 1010⁠: the one-sided limits differ, so ff is not continuous at 11⁠, and therefore ff is not a continuous function.

Given, to find, and the plan
Given
f(x)=x+5f(x) = x + 5 for x≤1x \le 1 and f(x)=x−5f(x) = x - 5 for x>1x > 1⁠.
To find
Whether ff is continuous at every point of its domain.
Plan
(1) Domain and junction. (2) Continuity at every c<1c < 1 and every c>1c > 1⁠. (3) At c=1c = 1⁠: left-hand limit, right-hand limit and f(1)f(1)⁠, each separately. (4) Apply Definition 2 to answer the question.

Basics you need

1Reading a piecewise function

x=1x = 1 satisfies x≤1x \le 1⁠, so f(1)=1+5f(1) = 1 + 5⁠. Basics: piecewise functions

2A limit only looks near the point

If ff equals a polynomial on an interval around cc⁠, its limit at cc is the polynomial's value at cc⁠. Basics: what a limit is

3Left-hand and right-hand limits

If they are different, the limit does not exist and ff is not continuous there. Basics: one-sided limits

4Continuous at a point vs. a continuous function

Definition 1: continuous at cc means left-hand limit == right-hand limit =f(c)= f(c)⁠. Definition 2: a continuous function is one that is continuous at every point of its domain.

Solution

  1. Domain and junction

    Each real xx satisfies exactly one of x≤1x \le 1 and x>1x > 1⁠, and x+5x + 5⁠, x−5x - 5 are defined for every xx⁠. So the domain is R\R⁠, and the formula changes only at x=1x = 1⁠.

    Definition 2 asks about every point of the domain, so we first need to know what the domain is: here, all real numbers.
    Regions: (−∞,1](-\infty, 1] and (1,∞)(1, \infty)⁠. Basics: piecewise functions
  2. Every point other than 11

    If c<1c < 1⁠: all xx within distance 1−c1 - c of cc are less than 11⁠, so there f(x)=x+5f(x) = x + 5⁠, and

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

    If c>1c > 1⁠: all xx within distance c−1c - 1 of cc are greater than 11⁠, so there f(x)=x−5f(x) = x - 5⁠, and

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

    So ff is continuous at every c≠1c \ne 1⁠.

    Around any point other than the junction, only one formula is in use, and each formula is a polynomial of degree 1. Exactly the same reasoning is Cases 1 and 2 of Example 10 in the chapter, where f(x)=x+2f(x) = x + 2 for x≤1x \le 1 and x−2x - 2 for x>1x > 1⁠.
    Polynomials are continuous (Example 14). Lesson: continuity at a point
  3. Test the junction x=1x = 1

    Value. 1≤11 \le 1⁠, so f(1)=1+5=6f(1) = 1 + 5 = 6⁠.

    Left-hand limit. For x<1x < 1⁠, f(x)=x+5f(x) = x + 5⁠:

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

    Right-hand limit. For x>1x > 1⁠, f(x)=x−5f(x) = x - 5⁠:

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

    Compare. Left-hand limit =6= 6⁠, right-hand limit =−4= -4⁠. They differ, so lim⁡x→1f(x)\lim_{x\to 1} f(x) does not exist and ff is not continuous at x=1x = 1.

    The value f(1)=6f(1) = 6 agrees with the left side, but continuity needs both sides. The right-hand values sit near −4-4⁠, ten units lower, so there is a genuine jump.
    Unequal one-sided limits mean no limit, hence no continuity. Basics: one-sided limits
  4. Answer the question

    The point x=1x = 1 is in the domain of ff⁠, and ff is not continuous there (Step 3). A continuous function must be continuous at every point of its domain (Definition 2). So ff is not a continuous function. Its only point of discontinuity is x=1x = 1 (Step 2 shows it is continuous everywhere else).

    The question asks a yes-or-no question about the whole function, so we answer "no" and say exactly where and why it fails. Being continuous at every other point does not rescue it: one point of discontinuity in the domain is enough.
    Definition 2 of the chapter: a real function is continuous if it is continuous at every point in its domain.
x y −3 −2 −1 1 2 3 4 5 −4 −2 2 4 6 O (1, 6) (1, −4) hollow x + 5, x ≤ 1 x − 5, x > 1
Blue: y=x+5y = x + 5 for x≤1x \le 1⁠, ending at the filled point (1,6)(1, 6)⁠. Gold: y=x−5y = x - 5 for x>1x > 1⁠, starting at the hollow point (1,−4)(1, -4)⁠, which is not on the graph. The graph drops by 10 at x=1x = 1⁠. Horizontal scale: 1 unit = 45 px; vertical: 1 unit = 24 px.
Result

No, ff is not a continuous function. It is continuous at every x≠1x \ne 1⁠, but at x=1x = 1 the left-hand limit is 66 and the right-hand limit is −4-4⁠, so ff is discontinuous at x=1x = 1⁠. (Textbook answer: "ff is not continuous at x=1x = 1".)

Check it with numbers

f(0.999)=0.999+5=5.999f(0.999) = 0.999 + 5 = 5.999 and f(1)=6f(1) = 6⁠, but f(1.001)=1.001−5=−3.999f(1.001) = 1.001 - 5 = -3.999⁠. Moving from 0.9990.999 to 1.0011.001⁠, a step of only 0.0020.002⁠, changes ff by −3.999−5.999=−9.998-3.999 - 5.999 = -9.998⁠. Closer in, f(0.99999)=5.99999f(0.99999) = 5.99999 and f(1.00001)=−3.99999f(1.00001) = -3.99999⁠: the difference stays near −10-10⁠. ✓

Common mistakes
  1. "Both pieces are lines, so ff is continuous." Each piece is continuous on its own region; the junction still has to be tested.
  2. Answering only "No". Say where the discontinuity is and show the one-sided limits.
  3. Confusing "continuous at most points" with "a continuous function". Definition 2 needs every point of the domain.
What to take away
  1. "Is ff a continuous function?" means "is ff continuous at every point of its domain?"
  2. One point of discontinuity in the domain makes the answer "no".
  3. For piecewise polynomials, test the junctions with one-sided limits and the value.

Every fact used, and where it comes from

FactUsed inSource
Every polynomial is continuousSteps 2, 3Example 14, Section 5.2 (Lesson: continuity at a point)
A limit at cc depends only on values near ccStep 2Class XI, Limits and Derivatives; Example 10, Section 5.2
The limit exists only if the one-sided limits are equalStep 3Class XI, Limits and Derivatives; recalled after Definition 1, Section 5.2
Continuity at a pointStep 3Definition 1, Section 5.2
A continuous function is continuous at every point of its domainStep 4Definition 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 →