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

Exercise 5.1 · Q15: Continuity of 2x2x (x<0x < 0⁠), 00 (0≤x≤10 \le x \le 1⁠), 4x4x (x>1x > 1⁠)

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)={2x,if x<00,if 0≤x≤14x,if x>1f(x) = \begin{cases} 2x, & \text{if } x < 0 \\ 0, & \text{if } 0 \le x \le 1 \\ 4x, & \text{if } x > 1 \end{cases}
Exam answer

For x<0x < 0⁠, f(x)=2xf(x) = 2x⁠; for 0<x<10 < x < 1⁠, f(x)=0f(x) = 0⁠; for x>1x > 1⁠, f(x)=4xf(x) = 4x⁠. These are polynomials, so ff is continuous at every xx other than 00 and 11⁠.

At x=0x = 0⁠:

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

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

At x=1x = 1⁠:

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

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

Hence x=1x = 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

Three pieces means two junctions, x=0x = 0 and x=1x = 1⁠, and each must be tested on its own. At 00⁠, the line 2x2x arrives at height 2⋅0=02 \cdot 0 = 0⁠, which is exactly the height of the middle piece, so the pieces meet. At 11⁠, the middle piece is at height 00 but the line 4x4x starts from 4⋅1=44 \cdot 1 = 4⁠, so the graph jumps. Everywhere else ff is a single polynomial. So x=1x = 1 is the only point of discontinuity.

Given, to find, and the plan
Given
f(x)=2xf(x) = 2x for x<0x < 0⁠, f(x)=0f(x) = 0 for 0≤x≤10 \le x \le 1⁠, f(x)=4xf(x) = 4x for x>1x > 1⁠.
To find
At which points ff is continuous and at which it is not.
Plan
(1) Domain and junctions. (2) Points strictly inside each piece. (3) The junction x=0x = 0⁠. (4) The junction x=1x = 1⁠. (5) Conclude.

Basics you need

1Reading a piecewise function

Both 00 and 11 satisfy 0≤x≤10 \le x \le 1⁠, so f(0)=0f(0) = 0 and f(1)=0f(1) = 0⁠. Basics: piecewise functions

2A limit only looks near the point

If ff equals a polynomial (or a constant) on an interval around cc⁠, its limit at cc is that polynomial's value at cc⁠. Basics: what a limit is

3Left-hand and right-hand limits

At a junction, each side has its own formula, so each one-sided limit is computed separately. Basics: one-sided limits

4Continuity at a point (Definition 1)

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

Solution

  1. Domain and junctions

    Every real xx satisfies exactly one of x<0x < 0⁠, 0≤x≤10 \le x \le 1⁠, x>1x > 1⁠, and each formula is defined for every xx⁠. So the domain is R\R⁠. The formula changes at x=0x = 0 and at x=1x = 1⁠: these are the two junctions.

    With three pieces there are two places where the definition switches, and each needs its own test. Missing one is the most common way to get this question wrong.
    Regions: (−∞,0)(-\infty, 0)⁠, [0,1][0, 1]⁠, (1,∞)(1, \infty)⁠. Basics: piecewise functions
  2. Points strictly inside a piece

    If c<0c < 0⁠: near cc (within distance −c-c⁠), f(x)=2xf(x) = 2x⁠, so lim⁡x→cf(x)=2c=f(c)\lim_{x\to c} f(x) = 2c = f(c)⁠.

    If 0<c<10 < c < 1⁠: near cc (within distance min⁡(c,1−c)\min(c, 1 - c)⁠), f(x)=0f(x) = 0⁠, so lim⁡x→cf(x)=0=f(c)\lim_{x\to c} f(x) = 0 = f(c)⁠.

    If c>1c > 1⁠: near cc (within distance c−1c - 1⁠), f(x)=4xf(x) = 4x⁠, so lim⁡x→cf(x)=4c=f(c)\lim_{x\to c} f(x) = 4c = f(c)⁠.

    So ff is continuous at every cc other than 00 and 11⁠.

    Around a point strictly inside one region, a whole small interval stays inside that region, so ff is a single polynomial there (2x2x⁠, the constant 00⁠, or 4x4x⁠), and the limit equals the value.
    Polynomials, including constants, are continuous (Examples 5 and 14). Lesson: continuity at a point
  3. The junction x=0x = 0

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

    Left-hand limit. For x<0x < 0⁠, f(x)=2xf(x) = 2x⁠:

    lim⁡x→0−f(x)=lim⁡x→0−2x=2⋅0=0.\lim_{x\to 0^-} f(x) = \lim_{x\to 0^-} 2x = 2 \cdot 0 = 0.

    Right-hand limit. For 0<x<10 < x < 1⁠, f(x)=0f(x) = 0⁠:

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

    Compare. Left-hand limit =0= 0⁠, right-hand limit =0= 0⁠, f(0)=0f(0) = 0⁠. All equal, so ff is continuous at x=0x = 0.

    Approaching 00 from the right, we only need xx slightly bigger than 00⁠, say 0<x<10 < x < 1⁠, and there the middle formula applies. The line 2x2x runs into the origin, which is where the flat middle piece begins, so the graph has no gap at 00⁠.
    Compute each one-sided limit with the formula valid on that side. Basics: one-sided limits
  4. The junction x=1x = 1

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

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

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

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

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

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

    The value f(1)=0f(1) = 0 agrees with the left side only. Just to the right of 11⁠, f(x)=4xf(x) = 4x is a little more than 44⁠, so the graph jumps up by 44 at x=1x = 1⁠.
    Different one-sided limits mean no limit, hence no continuity.
  5. Conclude

    By Step 2, ff is continuous at every x≠0,1x \ne 0, 1⁠. By Step 3 it is continuous at 00⁠; by Step 4 it is discontinuous at 11⁠. So x=1x = 1 is the only point of discontinuity of ff; ff is continuous at every other real number.

    "Discuss the continuity" asks for the complete picture: where it holds, where it fails, and the reasons. Every real number falls into Step 2, Step 3 or Step 4.
x y −1 1 2 −2 2 4 6 8 O (1, 4) hollow (1, 0) 2x, x < 0 0, 0 ≤ x ≤ 1 4x, x > 1
Blue: y=2xy = 2x for x<0x < 0⁠, running into the origin. Green: y=0y = 0 on [0,1][0, 1]⁠, with filled ends (0,0)(0, 0) and (1,0)(1, 0)⁠. Gold: y=4xy = 4x for x>1x > 1⁠, starting at the hollow point (1,4)(1, 4)⁠. No gap at 00⁠; a jump of 4 at 11⁠. Horizontal scale: 1 unit = 90 px; vertical: 1 unit = 22 px.
Result

ff is continuous at every x≠0,1x \ne 0, 1 (polynomial pieces). At x=0x = 0⁠: left-hand limit 00⁠, right-hand limit 00⁠, f(0)=0f(0) = 0⁠, so ff is continuous at 00⁠. At x=1x = 1⁠: left-hand limit 00⁠, right-hand limit 44⁠, so ff is discontinuous there. x=1x = 1 is the only point of discontinuity. (Textbook answer: "x=1x = 1 is the only point of discontinuity".)

Check it with numbers

Around 00⁠: f(−0.001)=2(−0.001)=−0.002f(-0.001) = 2(-0.001) = -0.002⁠, f(0)=0f(0) = 0⁠, f(0.001)=0f(0.001) = 0⁠. All within 0.0020.002 of 00⁠. ✓ Around 11⁠: f(0.999)=0f(0.999) = 0⁠, f(1)=0f(1) = 0⁠, but f(1.001)=4.004f(1.001) = 4.004⁠. The gap of about 44 stays however close we go: f(1.00001)=4.00004f(1.00001) = 4.00004⁠. ✓

Common mistakes
  1. Testing only one junction. Three pieces give two junctions, 00 and 11⁠.
  2. Using 4x4x for f(1)f(1)⁠. 11 belongs to 0≤x≤10 \le x \le 1⁠, so f(1)=0f(1) = 0⁠.
  3. Expecting a break wherever the formula changes. At 00 the formula changes but there is no break: 2x2x and 00 agree at x=0x = 0⁠.
What to take away
  1. List every junction and test each with left-hand limit, right-hand limit and value.
  2. A change of formula is a candidate for discontinuity, not a guarantee.
  3. The value at a junction comes from the piece whose condition includes that point.

Every fact used, and where it comes from

FactUsed inSource
Constant functions and polynomials are continuousSteps 2–4Examples 5 and 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
Left-hand and right-hand limits; the limit exists only if they agreeSteps 3, 4Class XI, Limits and Derivatives; recalled after Definition 1, Section 5.2
Continuity at cc⁠: left-hand limit == right-hand limit =f(c)= f(c)Steps 3–5Definition 1, 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 →