Q.Discuss the continuity of the function defined by f(x)={x+2,−x+2,if x<0if x>0.
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Continuity At A Point
Continuity at a Point
Imagine drawing the graph of a function and putting your pen down at x=a. If the function is continuous there, you can draw straight through that point without lifting your pen — no jump, no hole, no break. That is the intuition; here is the precision.
The Three-Condition Test
For f(x) to be continuous at x=a, all three must hold. If even one fails, f is discontinuous there.
Continuity at x=a requires:
- f(a) is defined,
- x→alimf(x) exists (left- and right-hand limits are equal),
- x→alimf(x)=f(a).
Condition 1 says a is in the domain — the pen must have somewhere to land. Condition 2 says the curve approaches a single value from both sides — no jump. Condition 3 says that common approach value actually matches the function's value at a — no misplaced point.
Why All Three Are Needed
f(x)=x−1x2−1 has limx→1f(x)=2, yet f(1) is undefined (zero denominator). Condition 1 fails, leaving a hole at (1,2).
A piecewise function shows the opposite can be fine:
f(x)=⎩⎨⎧x+13x+1x<2x=2x>2
Here f(2)=3, both one-sided limits equal 3, and they match f(2) — so all three hold and f is continuous at x=2.
Common Pitfalls
"Limit exists" does not mean "continuous." The hole example has a limit but no continuity — the limit must equal the function value.
"Defined everywhere" does not mean "continuous." A piecewise function can have a value at every point and still jump. Always check the one-sided limits.
A Quick Check …
For a piecewise function, check the change-point x=0: the value f(0) and the two one-sided limits.
- Left limit: limx→0−(x+2)=2
- Right limit: limx→0+(−x+2)=2
So the two-sided limit exists and equals 2. But the rule only covers x<0 and x>0 — it never assigns a value at x=0, so f(0) is undefined. Continuity requires f(0) to exist, so f is not continuous at x=0. Every other point lies inside a li …
f(0) is not defined by the given rule, so f fails the first continuity condition at x=0 and is discontinuous there; it is continuous everywhere else, i.e. on R∖{0}.
What we must check
f is continuous at x=a only if all three hold: (1) f(a) is defined, (2) limx→af(x) exists, (3) the limit equals f(a). Each piece here is linear, so the only point that can cause trouble is the boundary x=0.
The one-sided limits
For x<0, f(x)=x+2:
limx→0−f(x)=0+2=2.
For x>0, f(x)=−x+2:
limx→0+f(x)=−0+2=2.
Both equal 2, so limx→0f(x)=2 exists.
The value at the point
The definition gives a formula only for x<0 and for x>0. It says nothing about x=0, so f(0) is undefined — condition (1) fails.
Don't be misled by the limit existing. A limit can exist at a point where the function has no value, and continuity still fails because there is nothing for the limit to match.
Conclusion …
Method: Testing a Piecewise Function When the Boundary Point Might Not Be in the Domain
This method applies to piecewise functions where the pieces are given only for x<a and x>a, with no formula stated for x=a itself.
Steps
Step 1: Recognise that the boundary point needs a domain check, not just a limit check.
Before computing any limit, look at the definition and ask: is f(a) actually assigned a value? If the rule only covers x<a and x>a and is silent about x=a, then f(a) is undefined, and Condition 1 of the continuity test already fails — no further limit work can rescue continuity at that point.
Step 2: Compute the one-sided limits anyway (they still matter for classifying the discontinuity).
limx→a−f(x),limx→a+f(x)
using the appropriate piece on each side.
Step 3: Interpret the result correctly. …
Common Mistakes
Mistake 1: Concluding "continuous" because the left-hand and right-hand limits are equal.
Why it's wrong: equal one-sided limits only establish that x→alimf(x) exists — Condition 2 of the three-condition test. It says nothing about Condition 1 (whether f(a) is even defined) or Condition 3 (whether that limit equals f(a)). Correct approach: always separately check that f(a) is defined and that it matches the common one-sided-limit value before declaring continuity.
Mistake 2: Assuming a piecewise definition that skips x=a secretly assigns some default value there. …
- COMEDK 2025Set 2025-A1 markMCQQ.The function f(x)={x∣x∣, if x=00, if x=0 is discontinuous at (A) x=0 (B) x>1 (C) x>0 (D) x<0
›Reveal solutionSolution
The function f(x) is essentially the sign function (signum) for x=0, with a jump at x=0 where the left-hand limit is −1 and the right-hand limit is +1, but f(0)=0; thus it is discontinuous only at x=0, so the answer is (A).
Concept & Intuition
This function is a classic example of a piecewise-defined function that behaves like the sign of x for all nonzero inputs. For x>0, ∣x∣/x=x/x=1; for x<0, ∣x∣/x=(−x)/x=−1. At x=0, the function is defined separately as 0. The key question is: does the function have a limit as x approaches 0? Because the left-hand and right-hand limits are different, the limit does not exist, so the function cannot be continuous at 0. Everywhere else, the function is constant (1 or −1), so it is continuous there.
Step-by-step reasoning
-
Simplify the expression for x=0
For x>0, ∣x∣=x, so f(x)=x/x=1.
For x<0, ∣x∣=−x, so f(x)=(−x)/x=−1.
Thus, for all x=0, f(x) is either 1 (if x>0) or −1 (if x<0).
-
Check continuity at x=0
A function is continuous at a point if the left-hand limit, right-hand limit, and the function value at that point all agree.
- Right-hand limit: limx→0+f(x)=limx→0+1=1.
- Left-hand limit: limx→0−f(x)=limx→0−(−1)=−1.
- Function value: f(0)=0. Since 1=−1=0, the limit does not exist, so f is discontinuous at x=0.
-
Check continuity for x>0 (any positive number)
For any a>0, there is an interval around a that stays positive (e.g., (a/2,2a)). On that interval, f(x)=1 (constant). A constant function is continuous everywhere. So f is continuous at every x>0.
-
Check continuity for x<0 (any negative number)
Similarly, for any b<0, there is an interval around b that stays negative. On that interval, f(x)=−1 (constant). So f is continuous at every x<0. …
-
- KCET 2019Set A-11 markMCQQ.Rolle's theorem is not applicable in which one of the following cases? (A) f(x)=x2−4x+5 in [1,3] (B) f(x)=x2−x in [0,1] (C) f(x)=∣x∣ in [−2,2] (D) f(x)=[x] in [2.5,2.7]
›Reveal solutionSolution
Rolle’s theorem requires continuity on the closed interval, differentiability on the open interval, and equal function values at the endpoints. The function f(x)=∣x∣ on [−2,2] fails differentiability at x=0, so the answer is (C).
Rolle’s theorem is a special case of the Mean Value Theorem. It says: if a function f is continuous on [a,b], differentiable on (a,b), and f(a)=f(b), then there exists at least one c in (a,b) such that f′(c)=0.
To check where the theorem is not applicable, we test each condition — continuity, differentiability, and equal endpoints — for every option. The moment any one condition fails, Rolle’s theorem does not apply.
Let’s go through each case.
-
Option (A): f(x)=x2−4x+5 on [1,3]
This is a polynomial — continuous and differentiable everywhere.
Check endpoints: f(1)=1−4+5=2, f(3)=9−12+5=2. So f(1)=f(3).
All conditions satisfied. Rolle’s theorem applies.
-
Option (B): f(x)=x2−x on [0,1]
Again a polynomial — continuous and differentiable everywhere.
Endpoints: f(0)=0, f(1)=1−1=0. So f(0)=f(1).
All conditions satisfied. Rolle’s theorem applies.
-
Option (C): f(x)=∣x∣ on [−2,2]
This is the absolute value function. It is continuous everywhere, including at x=0.
Endpoints: f(−2)=2, f(2)=2 — equal.
But is it differentiable on (−2,2)? No — at x=0, the graph has a sharp corner. The left-hand derivative is −1, the right-hand derivative is +1, so f is not differentiable at x=0, which lies inside the open interval.
Since differentiability fails, Rolle’s theorem does not apply. …
-
- KCET 2024Set A-11 markMCQQ.limx→4πcotx−12cosx−1 is equal to (A) 2 (B) 2 (C) 21 (D) 21
›Reveal solutionSolution
The limit is a 00 form that simplifies using trigonometric identities and rationalization; the final value is 21.
The core idea here is that direct substitution gives 00, so we need to manipulate the expression algebraically. The presence of 2cosx−1 suggests rationalizing by multiplying numerator and denominator by the conjugate 2cosx+1, and the cotx−1 in the denominator can be rewritten in terms of sinx and cosx to reveal cancellations.
Let’s work through it step by step.
-
Check the form at x=4π
cos4π=21, so 2cos4π=2⋅21=1, making the numerator 1−1=0.
cot4π=1, so the denominator is 1−1=0.
This is a 00 indeterminate form, so we proceed with algebraic manipulation.
-
Rationalize the numerator
Multiply numerator and denominator by 2cosx+1:
cotx−12cosx−1⋅2cosx+12cosx+1=(cotx−1)(2cosx+1)2cos2x−1
because (2cosx)2−12=2cos2x−1.
-
Simplify 2cos2x−1
Recall the double-angle identity: cos2x=2cos2x−1. So the numerator becomes cos2x.
-
Rewrite the denominator in terms of sine and cosine
cotx−1=sinxcosx−1=sinxcosx−sinx.
So the expression is now:
sinxcosx−sinx⋅(2cosx+1)cos2x=(cosx−sinx)(2cosx+1)cos2x⋅sinx
- Use another identity for cos2x cos2x=cos2x−sin2x=(cosx−sinx)(cosx+sinx). This is perfect because it cancels the (cosx−sinx) factor in the denominator:
(cosx−sinx)(2cosx+1)(cosx−sinx)(cosx+sinx)⋅sinx=2cosx+1(cosx+sinx)sinx
provided cosx=sinx (which holds near x=π/4 except at the point itself). …
-
- KCET 2026Set UNKNOWN1 markMCQQ.If f(x)={x2−1x+1if x≥2if x<2, then limx→2+f(x)+limx→2−f(x)= (A) 7 (B) 5 (C) 6 (D) 9
›Reveal solutionSolution
Evaluate the two one-sided limits at x=2 using the branch of f that applies on each side, then add them.
Step 1 — Right-hand limit
For x≥2, f(x)=x2−1, so
limx→2+f(x)=22−1=3
Step 2 — Left-hand limit
For x<2, f(x)=x+1, so
limx→2−f(x)=2+1=3 …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.