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

Exercise 5.1 · Q18: λ(x2−2x)\lambda(x^2-2x) and 4x+14x+1⁠: continuity at 00 and 11

Exercise 5.1Continuity at a point · Section 5.2
The question

18. For what value of λ\lambda is the function defined by

f(x)={λ(x2−2x),if x≤04x+1,if x>0f(x)=\begin{cases} \lambda(x^2-2x), & \text{if } x\le 0\\ 4x+1, & \text{if } x\gt 0\end{cases}

continuous at x=0x=0⁠? What about continuity at x=1x=1⁠?

Exam answer

(i) At x=0x = 0⁠: f(0)=λ(02−2⋅0)=0f(0) = \lambda(0^2 - 2\cdot0) = 0⁠.

LHL=lim⁡h→0f(0−h)=lim⁡h→0λ(h2+2h)=0RHL=lim⁡h→0f(0+h)=lim⁡h→0(4h+1)=1\begin{aligned} \text{LHL} &= \lim_{h\to0}f(0 - h) \\ &= \lim_{h\to0}\lambda(h^2 + 2h) = 0 \\ \text{RHL} &= \lim_{h\to0}f(0 + h) \\ &= \lim_{h\to0}(4h + 1) = 1 \end{aligned}

Since LHL≠RHL\text{LHL} \ne \text{RHL} for every λ\lambda⁠, there is no value of λ\lambda for which ff is continuous at x=0x = 0.

(ii) At x=1x = 1⁠: f(1)=4(1)+1=5f(1) = 4(1) + 1 = 5⁠.

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

LHL=RHL=f(1)\text{LHL} = \text{RHL} = f(1)⁠, so ff is continuous at x=1x = 1 for every value of λ\lambda⁠.

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

The one idea this problem is built on

The left piece λ(x2−2x)=λx(x−2)\lambda(x^2-2x)=\lambda x(x-2) is zero at x=0x=0 whatever λ\lambda is: changing λ\lambda stretches that piece up or down, but a stretch of height 00 is still 00⁠. The right piece starts at height 4(0)+1=14(0)+1=1⁠. So at x=0x=0 there is always a jump from 00 to 11⁠, and no choice of λ\lambda can close it. At x=1x=1⁠, by contrast, λ\lambda plays no part at all: near 11 the function is just 4x+14x+1⁠.

Given, to find, and the plan
Given
The two-piece function ff above, with an unknown real constant λ\lambda⁠.
To find
(i) The values of λ\lambda⁠, if any, for which ff is continuous at x=0x=0⁠. (ii) Whether ff is continuous at x=1x=1⁠.
Plan
Part (i): compute f(0)f(0)⁠, the left-hand limit and the right-hand limit at 00⁠, each separately, and see whether any λ\lambda makes them equal. Part (ii): note which rule governs the points near 11⁠, and compute the same three numbers there.

Basics you need

1Continuity at a point

ff is continuous at cc (a point of its domain) when the left-hand limit, the right-hand limit and f(c)f(c) all exist and are equal (Definition 1, Section 5.2). Basics: what a limit is

2One-sided limits with hh

Left of cc⁠: x=c−hx=c-h⁠; right of cc⁠: x=c+hx=c+h⁠; in both, h>0h\gt0 and h→0h\to0⁠. Basics: left-hand and right-hand limits

3Choosing the rule

The input 00 satisfies "x≤0x\le0", so f(0)f(0) uses λ(x2−2x)\lambda(x^2-2x)⁠. Inputs just right of 00⁠, and all inputs near 11⁠, satisfy "x>0x\gt0" and use 4x+14x+1⁠. Basics: piecewise functions

4Zero times anything is zero

λ⋅0=0\lambda\cdot0=0 for every real λ\lambda⁠. This is the whole reason no λ\lambda works in Part (i).

Part (i): continuity at x=0x=0

  1. 00 is in the domain; find f(0)f(0)

    Every real xx satisfies exactly one of "x≤0x\le0" and "x>0x\gt0", so ff is defined on all of R\R⁠. Since 0≤00\le0⁠, the first rule gives

    f(0)=λ(02−2⋅0)=λ⋅0=0.f(0)=\lambda\left(0^2-2\cdot0\right)=\lambda\cdot0=0.

    This is 00 for every value of λ\lambda⁠.

    The value at the junction comes from the line whose condition contains the junction, here "x≤0x\le0". The constant λ\lambda multiplies a bracket that vanishes at 00⁠, so it cannot affect f(0)f(0)⁠.
    Reading a piecewise rule: the condition decides the formula. Basics: piecewise functions
  2. The left-hand limit at 00

    Put x=−hx=-h with h>0h\gt0⁠, h→0h\to0⁠. Then x<0x\lt0⁠, so the first rule applies. Since (−h)2=h2(-h)^2=h^2 and −2(−h)=2h-2(-h)=2h⁠,

    f(−h)=λ(h2+2h).f(-h)=\lambda\left(h^2+2h\right).

    As h→0h\to0⁠, h2+2h→0h^2+2h\to0⁠, so

    lim⁡x→0−f(x)=lim⁡h→0λ(h2+2h)=λ⋅0=0.\lim_{x\to0^-}f(x)=\lim_{h\to0}\lambda\left(h^2+2h\right)=\lambda\cdot0=0.
    Take care with the signs: squaring removes the minus, but −2x-2x at x=−hx=-h becomes +2h+2h⁠. Either way both terms shrink to 00⁠, and multiplying by the fixed number λ\lambda keeps the limit at 00⁠.
    For a fixed constant λ\lambda⁠, lim⁡λg(h)=λlim⁡g(h)\lim\lambda g(h)=\lambda\lim g(h)⁠. Basics: left-hand and right-hand limits
  3. The right-hand limit at 00

    Put x=hx=h with h>0h\gt0⁠, h→0h\to0⁠. Now x>0x\gt0⁠, so the second rule applies:

    f(h)=4h+1,lim⁡x→0+f(x)=lim⁡h→0 (4h+1)=1.\begin{aligned} f(h)&=4h+1,\\ \lim_{x\to0^+}f(x)&=\lim_{h\to0}\,(4h+1)=1. \end{aligned}
    Points just to the right of 00 are governed by 4x+14x+1⁠, which heads for height 11⁠. The value f(0)=0f(0)=0 is irrelevant to this limit: a limit never looks at the point itself.
    4h→04h\to0 as h→0h\to0⁠. Basics: what a limit is
  4. Compare: no λ\lambda can work

    From the three steps above:

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

    Continuity at 00 would need 0=10=1⁠, which is false. None of the three numbers involves λ\lambda⁠, so the failure happens for every value of λ\lambda. Hence there is no value of λ\lambda for which ff is continuous at x=0x=0.

    The question "for what value of λ\lambda" invites us to solve an equation in λ\lambda⁠. But the equation we get, 0=10=1⁠, has no λ\lambda in it and is never true, so the honest answer is "none". (The left-hand limit does equal f(0)f(0)⁠, so ff is continuous from the left at 00⁠; it is the right side that jumps.)
    A jump (left-hand limit ≠\ne right-hand limit) is a discontinuity, whatever the value at the point. Lesson: continuity at a point

Part (ii): continuity at x=1x=1

  1. Which rule governs the points near 11⁠?

    11 is in the domain and 1>01\gt0⁠, so

    f(1)=4(1)+1=5.f(1)=4(1)+1=5.

    Moreover every xx with 0<x<20\lt x\lt2 satisfies x>0x\gt0⁠, so on the whole open interval (0,2)(0,2) around 11 we have f(x)=4x+1f(x)=4x+1⁠. The rule containing λ\lambda is used only for x≤0x\le0⁠, at distance at least 11 from the point 11⁠.

    A limit at 11 only uses values of ff at points as close to 11 as we like. Once we stay within distance 11 of the point, the λ\lambda-rule never appears, so λ\lambda cannot influence continuity at 11⁠.
    Continuity is a local property: it depends only on the function near the point. Basics: what a limit is
  2. The two one-sided limits at 11

    Take 0<h<10\lt h\lt1⁠, so that 1−h1-h and 1+h1+h are both in (0,2)(0,2)⁠:

    lim⁡x→1−f(x)=lim⁡h→0 [4(1−h)+1]=lim⁡h→0 (5−4h)=5,lim⁡x→1+f(x)=lim⁡h→0 [4(1+h)+1]=lim⁡h→0 (5+4h)=5.\begin{aligned} \lim_{x\to1^-}f(x)&=\lim_{h\to0}\,\left[4(1-h)+1\right]\\ &=\lim_{h\to0}\,(5-4h)=5,\\ \lim_{x\to1^+}f(x)&=\lim_{h\to0}\,\left[4(1+h)+1\right]\\ &=\lim_{h\to0}\,(5+4h)=5. \end{aligned}
    The restriction h<1h\lt1 guarantees 1−h>01-h\gt0⁠, so the left-hand points really are governed by 4x+14x+1⁠. Since h→0h\to0⁠, only small hh matter anyway.
    One-sided limits computed with x=1∓hx=1\mp h⁠. Basics: left-hand and right-hand limits
  3. Compare

    Left-hand limit =5=5⁠, right-hand limit =5=5⁠, f(1)=5f(1)=5⁠. All three agree, so ff is continuous at x=1x=1 for every value of λ\lambda.

    This is Definition 1 applied directly. Equivalently: near 11⁠, ff coincides with the polynomial 4x+14x+1⁠, and polynomials are continuous (Example 14).
    Polynomials are continuous at every real number. Lesson: continuity at a point
−1 1 −4 −2 4 6 x y (0, 1) (0, 0) (1, 5) λ = 1: λ(x² − 2x) for x ≤ 0 λ = −1: λ(x² − 2x) for x ≤ 0 λ = 0: the zero function for x ≤ 0 4x + 1 for x > 0 (the same for every λ) f(0) = 0 for every λ (0, 1): approached from the right, not attained
Three choices of λ\lambda for the left piece: all of them end at the filled point (0,0)(0,0)⁠, because λ⋅0=0\lambda\cdot0=0⁠. The right piece 4x+14x+1 starts just above the open point (0,1)(0,1) for every λ\lambda⁠, so the jump of height 11 at x=0x=0 never closes. At x=1x=1 the graph is the unbroken line through (1,5)(1,5)⁠.
Result

(i) For every λ\lambda⁠: lim⁡x→0−f(x)=f(0)=0\lim_{x\to0^-}f(x)=f(0)=0 but lim⁡x→0+f(x)=1\lim_{x\to0^+}f(x)=1⁠. So there is no value of λ\lambda for which ff is continuous at x=0x=0⁠.

(ii) ff is continuous at x=1x=1 for every value of λ\lambda (all three numbers equal 55⁠).

(Textbook answer: For no value of λ\lambda⁠, ff is continuous at x=0x=0 but ff is continuous at x=1x=1 for any value of λ\lambda⁠.)

Check it with numbers

Take λ=5\lambda=5⁠. At 00⁠: f(−0.001)=5(0.002001)=0.010005f(-0.001)=5(0.002001)=0.010005⁠, f(0)=0f(0)=0⁠, f(0.001)=1.004f(0.001)=1.004⁠. The left side approaches 00⁠, the right side stays near 11⁠. ✓ (jump)

Take λ=−300\lambda=-300⁠: f(−0.001)=−300(0.002001)f(-0.001)=-300(0.002001) =−0.6003=-0.6003⁠, still heading to 00 as hh shrinks further (f(−0.00001)≈−0.006f(-0.00001)\approx-0.006⁠), while f(0.00001)=1.00004f(0.00001)=1.00004⁠. A huge λ\lambda only slows the approach; it cannot change the limit 00⁠. ✓

At 11⁠, for any λ\lambda⁠: f(0.999)=4.996f(0.999)=4.996⁠, f(1)=5f(1)=5⁠, f(1.001)=5.004f(1.001)=5.004⁠. ✓

Common mistakes
  1. Writing λ⋅0=1\lambda\cdot0=1 and "solving" for λ\lambda⁠. The equation λ⋅0=1\lambda\cdot0=1 has no solution; dividing by 00 is not allowed.
  2. Sign error in the left-hand limit. At x=−hx=-h⁠, x2−2x=h2+2hx^2-2x=h^2+2h⁠, not h2−2hh^2-2h⁠. (Both tend to 00⁠, but the habit matters in other questions.)
  3. Using 4x+14x+1 for f(0)f(0)⁠. The point 00 belongs to "x≤0x\le0", so f(0)=0f(0)=0⁠, not 11⁠. The final answer happens to survive this slip, but the value at the point is wrong, and a solution that states a wrong value is not a correct solution.
  4. Thinking λ\lambda matters at x=1x=1⁠. Near 11 only the rule 4x+14x+1 is used; continuity depends only on values near the point.
What to take away
  1. "For what value of the constant" can have the answer "none". Show it by computing the three numbers and seeing that the equation they force is impossible.
  2. A constant that multiplies a factor vanishing at the junction cannot help close a gap there.
  3. Away from the junctions, a piecewise function is continuous wherever its local formula is (here, a polynomial).

Every fact used, and where it comes from

FactUsed inSource
Continuity at cc⁠: one-sided limits and f(c)f(c) equalPart (i), Step 4; Part (ii), Step 3Definition 1, Section 5.2 (Lesson: continuity at a point)
Choosing the rule of a piecewise functionPart (i), Steps 1–3; Part (ii), Step 1Definition of ff (compare Examples 10 and 13)
Limits of polynomials in hh⁠; lim⁡λg=λlim⁡g\lim\lambda g=\lambda\lim gPart (i), Steps 2, 3; Part (ii), Step 2Algebra of limits, Class XI, Chapter 12 (Limits and Derivatives)
Polynomials are continuousPart (ii), Step 3Example 14, 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 →