Q.Find the values of a and b such that the function f defined by f(x)=⎩⎨⎧∣x−4∣x−4+a,a+b,∣x−4∣x−4+b,x<4x=4x>4 is a continuous function at x=4.
🔒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 …
Concept: Continuity at a point — set LHL = RHL =f(4).
The expression ∣x−4∣x−4 is the sign of (x−4): it equals −1 for x<4 and +1 for x>4.
Left-hand limit (x<4): ∣x−4∣x−4=−1, so limx→4−f(x)=−1+a=a−1.
Right-hand limit (x>4): ∣x−4∣x−4=1, so limx→4+f(x)=1+b=b+1. …
Using ∣x−4∣x−4=−1 for x<4 and +1 for x>4, the continuity conditions a−1=a+b=b+1 give a=1 and b=−1.
The idea
f is continuous at x=4 exactly when the left-hand limit, the right-hand limit, and f(4) are all equal. The only awkward piece is ∣x−4∣x−4, which is just the sign of x−4.
Step-by-step
1. Left-hand limit. For x<4, ∣x−4∣=−(x−4), so
∣x−4∣x−4=−(x−4)x−4=−1,limx→4−f(x)=a−1.
2. Right-hand limit. For x>4, ∣x−4∣=x−4, so
∣x−4∣x−4=1,limx→4+f(x)=b+1.
3. Value at the point. f(4)=a+b.
4. Impose continuity. All three must agree: …
Method: Solving for Two Unknowns Using a Sign-Function Piece
This method applies to piecewise functions built from an expression like ∣x−a∣x−a — which is really just the algebraic sign of (x−a) — combined with two unknown constants, where continuity at a must pin down both constants.
Steps
Step 1: Reduce the sign-pattern expression to ±1
Recognise that ∣x−a∣x−a equals −1 for every x<a and +1 for every x>a, regardless of exactly how close x is to a. This turns each branch into a simple constant plus the unknown.
Step 2: Write the three continuity quantities in terms of the unknowns
limx→a−f(x),limx→a+f(x),f(a) …
Common Mistakes
Mistake 1: Getting the sign of ∣x−a∣x−a backwards on one side
Why it's wrong: it's easy to mix up which side gives −1 and which gives +1, especially when the point isn't 0 — this flips the sign of one continuity equation and produces the wrong values for both constants. Correct approach: explicitly substitute x<a and x>a into ∣x−a∣ separately and simplify before assigning ±1.
Mistake 2: Treating "all three quantities equal" as only one equation …
- 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.