Q.Show that the function f defined by f(x)=∣1−x+∣x∣∣, where x is any real number, is a continuous function.
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 10-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 — a function is continuous at x=a if limx→af(x)=f(a). We check this for all real x.
Step 1: Simplify the inner expression.
Recall ∣x∣=x for x≥0 and ∣x∣=−x for x<0.
So 1−x+∣x∣ becomes:
- For x≥0: 1−x+x=1
- For x<0: 1−x−x=1−2x
Step 2: Write f(x) piecewise.
f(x)={∣1∣=1,∣1−2x∣,x≥0x<0
For x<0, 1−2x>0 (since x<0 gives −2x>0), so ∣1−2x∣=1−2x.
Thus:
f(x)={1,1−2x,x≥0x<0
Step 3: Check continuity at the only potential trouble point, x=0. …
The key idea is to simplify the nested absolute value by splitting the real line into two intervals based on the sign of x. Once simplified, f(x) becomes a piecewise polynomial (constant and linear pieces), and each piece is continuous on its interval. Checking the meeting point x=0 shows the left and right limits equal the function value, so f is continuous everywhere.
We need to show that f(x)=∣1−x+∣x∣∣ is continuous for all real x. The function involves an absolute value inside another absolute value. The standard way to handle such nested absolute values is to remove them by considering the cases where the inner expression changes sign.
The innermost absolute value is ∣x∣, which changes behaviour at x=0. So we split the domain into x≥0 and x<0.
- Case 1: x≥0 Here ∣x∣=x. Substitute into f:
f(x)=∣1−x+x∣=∣1∣=1.
So for all x≥0, f(x)=1, a constant function. Constant functions are continuous everywhere on their domain.
- Case 2: x<0 Here ∣x∣=−x. Substitute:
f(x)=∣1−x+(−x)∣=∣1−2x∣.
Now we have ∣1−2x∣. This absolute value changes sign when 1−2x=0, i.e., x=21. But note: we are in the region x<0, and 21>0, so the point x=21 is not in this region. Therefore, for all x<0, the expression 1−2x is always positive (since x is negative, −2x is positive, so 1−2x>1>0). Hence:
∣1−2x∣=1−2x.
So for x<0, f(x)=1−2x, a linear polynomial. Linear functions are continuous everywhere on their domain.
- Check continuity at the boundary x=0 The function is defined piecewise:
f(x)={1−2x,1,x<0,x≥0.
At x=0, we compute: …
Method: Simplifying a Nested Absolute Value by Case-Splitting on Sign, Then Testing Continuity
This method applies whenever a function contains one or more absolute values, and you need to first remove them (by splitting into cases) before the piece can be analysed for continuity.
Steps
Step 1: Work from the innermost absolute value outward.
Identify the expression inside the innermost ∣⋅∣ and find where it changes sign — for ∣x∣, that's at x=0. Split the real line into the regions where that inner expression is ≥0 and <0.
Step 2: Substitute the correct sign rule into the outer expression, one region at a time.
For each region, replace the inner absolute value with +(expression) or −(expression) as appropriate, and simplify what remains inside any outer absolute value signs.
Step 3: Within each region, check whether the new, simplified inner quantity changes sign inside that region. …
Common Mistakes
Mistake 1: Removing the outer absolute value bars using the sign of the original variable, instead of the sign of the simplified expression actually inside those bars.
Why it's wrong: after substituting the inner absolute value's sign rule, the expression inside the outer bars is a different expression (e.g. 1−2x, not x itself) — its own sign, in the current region, is what determines how to remove the outer bars, not the sign of x. Correct approach: after each substitution, explicitly re-check the sign of the new expression within that region before removing the next layer of absolute value.
Mistake 2: Assuming the newly-simplified expression's zero must fall inside the current region.
Why it's wrong: a sign-change point found by solving (e.g.) 1−2x=0 can land outside the region under consideration (x=21 is not in x<0) — treating it as a further internal split point when it isn't creates a false extra "piece" that doesn't actually exist. Correct approach: always check whether the computed zero actually lies within the current region before splitting further. …
Showing the 12 most recent of 15 on this concept.
- JEE Main 2026Set 2026-01-23-s14 marksMCQQ.Let f(x) = { (ax²+2ax+3)/(4x²+4x-3), x ≠ -3/2, 1/2 ; b, x = -3/2, 1/2 } be continuous at x = -3/2. If f∘f(x) = 7/5, then x is equal to: (A) 1 (B) 2 (C) 1.4 (D) 0
›Reveal solutionSolution
Continuity fixes a=4, b=1/2, reducing f(x) to a Möbius map 2x−12x+1; solving f(f(x))=7/5 gives x=1.
When a rational function has a removable-type singularity forced to be continuous at a zero of its denominator, the numerator must share that zero — this pins down the unknown parameter before anything else can be computed.
- Factor the denominator: 4x2+4x−3=(2x+3)(2x−1), zero at x=−3/2 and x=1/2.
- For continuity at x=−3/2, the numerator ax2+2ax+3 must vanish there too: a(49)+2a(−23)+3=0⟹49a−3a+3=0⟹−43a+3=0⟹a=4.
- With a=4: numerator =4x2+8x+3=(2x+3)(2x+1), so for x=−3/2,21: f(x)=(2x+3)(2x−1)(2x+3)(2x+1)=2x−12x+1.
- The continuity value b=limx→−3/22x−12x+1=−3−1−3+1=−4−2=21.
- Compute f(f(x)) for generic x: with y=f(x)=2x−12x+1, …
- JEE Main 2026Set 2026-01-23-s24 marksMCQQ.If f(x) = { [a|x| + x² − 2(sin|x|)(cos|x|)] / x , x ≠ 0 ; b , x = 0 } is continuous at x = 0, then a + b is equal to (A) 4 (B) 1 (C) 0 (D) 2
›Reveal solutionSolution
Split into x>0 and x<0 using 2sin∣x∣cos∣x∣=sin(2∣x∣), take each one-sided limit, set them equal to solve for a, then b is the common limit value.
[!NOTE]
The computed value a+b=2 is confirmed by an independently-published worked solution (testbook.com states explicitly: "the values are a=2 and b=0, therefore a+b=2"). In this question's own option list — (A) 4, (B) 1, (C) 0, (D) 2 — the value 2 is option (D), not the stored official letter "A" (which is 4 here); again this looks like an option-order/lettering mismatch against a differently-shuffled source rather than a math error, so (D) is answered.
- For x>0, ∣x∣=x, and 2sinxcosx=sin2x, so f(x)=xax+x2−sin2x=a+x−xsin2x. As x→0+: xsin2x→2, so the limit is a−2. …
- JEE Main 2026Set 2026-01-28-s24 marksMCQQ.Let f(x) = lim_{θ→0} ( (cos πx - x^(2/θ) sin(x-1)) / (1 + x^(2/θ)(x-1)) ), x ∈ R. Consider the following two statements: (I) f(x) is discontinuous at x = 1. (II) f(x) is continuous at x = -1. Then, (A) Only (I) is True (B) Neither (I) nor (II) is True (C) Only (II) is True (D) Both (I) and (II) are True
›Reveal solutionSolution
Careful limit analysis shows f is actually continuous at x=1 (Statement I false) and discontinuous at x=−1 (Statement II false) — neither claim holds.
The key is that x2/θ behaves completely differently depending on whether ∣x∣<1, ∣x∣=1, or ∣x∣>1 as θ→0+.
- For ∣x∣<1: x2/θ→0, so f(x)=1+0cosπx−0=cosπx.
- For ∣x∣>1: dividing through by x2/θ→∞ gives f(x)=−x−1sin(x−1).
- At x=1 exactly, x2/θ=1 always, giving f(1)=1+0cosπ−sin0=−1. The left-limit (cosπx→−1) and right-limit (−sin(x−1)/(x−1)→−1 as x→1) both agree with this — f is continuous at x=1, so Statement (I) is false. …
- JEE Main 2025Set 2025-04-03-s14 marksMCQQ.Let f(x) = (1+ax)^(1/x), x<0 ; 1+b, x=0 ; ((x+4)^(1/2)-2)/((x+c)^(1/3)-2), x>0, be continuous at x = 0. Then e^a bc is equal to: (A) 64 (B) 48 (C) 36 (D) 72
›Reveal solutionSolution
Matching the three one-sided definitions of f at x=0 fixes a,b,c one at a time: the right piece needs a removable 0/0 to even have a finite limit (fixing c), then L'Hopital fixes that limit (fixing b), and the standard exponential limit fixes a.
- Left limit: x→0−lim(1+ax)1/x=ea (standard limit). Continuity needs this to equal f(0)=1+b, so ea=1+b.
- Right limit: x→0+lim(x+c)1/3−2x+4−2. At x=0 the numerator is 4−2=0; for the limit to exist and be finite (matching a finite 1+b), the denominator must also vanish at x=0, i.e. c1/3=2⇒c=8.
- With c=8 this is a 00 form; differentiate numerator and denominator at x=0 (L'Hopital): …
- JEE Main 2025Set 2025-04-07-s24 marksQ.If the function f(x) = (tan(tan x) − sin(sin x))/(tan x − sin x) is continuous at x = 0, then f(0) is equal to __________.
›Reveal solutionSolution
Taylor-expanding both composite functions to third order gives f(0) = 2.
Since f is continuous at x=0 and the expression is a 0/0 form there, f(0) equals the limit as x→0.
- tanx=x+3x3+O(x5), sinx=x−6x3+O(x5).
- Denominator: tanx−sinx=(x+3x3)−(x−6x3)=3x3+6x3=2x3+O(x5).
- For the numerator, let u=tanx. Then tan(u)=u+3u3+O(u5). Since u3=x3+O(x5), tan(tanx)=(x+3x3)+3x3+O(x5)=x+32x3+O(x5). …
- JEE Main 2024Set 2024-04-05-s14 marksMCQQ.If the function f(x)=x3sin3x+αsinx−βcos3x, x∈R, is continuous at x=0, then f(0) is equal to : (A) 2 (B) -2 (C) 4 (D) -4
›Reveal solutionSolution
Matching Taylor coefficients up to x2 forces β=0, α=−3, and the resulting x3 coefficient gives f(0)=−4.
- Expand to order x3: sin3x=3x−6(3x)3+⋯=3x−29x3+⋯, sinx=x−6x3+⋯, cos3x=1−2(3x)2+⋯=1−29x2+⋯.
- Numerator N(x)=sin3x+αsinx−βcos3x=−β+(3+α)x+29βx2+(−29−6α)x3+⋯. …
- JEE Main 2024Set 2024-04-09-s14 marksQ.Let f:(0,π)→R be a function given by
[!FORMULA] f(x)=⎩⎨⎧(78)tan8x/tan7x,a−8,(1+∣cotx∣)ab∣tanx∣,0<x<2πx=2π2π<x<π
Where a,b∈Z. If f is continuous at x=2π, then a2+b2 is equal to›Reveal solutionSolution
Both one-sided limits at x=π/2 must equal f(π/2)=a−8, forcing a=9,b=0, so a2+b2=81.
- For continuity at x=π/2, both one-sided limits must equal f(π/2)=a−8.
- Left limit: let x=2π−ϵ. Then tan8x=tan(4π−8ϵ)=−tan8ϵ≈−8ϵ, and tan7x=tan(27π−7ϵ)=cot7ϵ≈7ϵ1 as ϵ→0.
- So the exponent tan7xtan8x→1/(7ϵ)−8ϵ=−56ϵ2→0, giving (78)0=1 as the left limit. Hence a−8=1⇒a=9. …
- JEE Main 2024Set 2024-04-04-s24 marksMCQQ.If the function f(x)=⎩⎨⎧2−1+cosx72x−9x−8x+1,aloge2loge3,x=0x=0 is continuous at x=0, then the value of a2 is equal to (A) 968 (B) 1152 (C) 746 (D) 1250
›Reveal solutionSolution
Write 72x−9x−8x+1=(8x−1)(9x−1), rationalize 2−1+cosx, and use standard limits to find a.
Continuity at 0 requires limx→0f(x)=alog2log3.
- Numerator: 72x−9x−8x+1=(8x−1)(9x−1).
- Denominator: 2−1+cosx. Multiply by conjugate:
2−1+cosx=2+1+cosx2−(1+cosx)=2+1+cosx1−cosx.
- As x→0, 1−cosx∼x2/2 and 2+1+cosx→2+2=22. So denominator ∼22x2/2=42x2. …
- JEE Main 2024Set 2024-01-31-s14 marksMCQQ.Let g(x) be a linear function and f(x)=⎩⎨⎧g(x),(2+x1+x)1/x,x≤0x>0 is continuous at x=0. If f′(1)=f(−1), then the value of g(3) is (A) 31loge(9e1/34) (B) 31loge(94)+1 (C) loge(94)−1 (D) loge(9e1/34)
›Reveal solutionSolution
Continuity at 0 forces the linear piece through the origin; matching f′(1)=f(−1) then fixes its slope, and hence g(3).
- Let h(x)=x1ln2+x1+x. As x→0+, ln2+x1+x→ln21=−ln2=0, so h(x)→−∞ and f(0+)=eh(x)→0. For continuity, g(0)=0; since g is linear, g(x)=mx.
- h(1)=ln32. h′(x)=−x21ln2+x1+x+x1(1+x1−2+x1); at x=1: h′(1)=−ln32+(21−31)=ln23+61.
- f(1)=(32)1=32, and f′(1)=f(1)h′(1)=32(ln23+61). …
- JEE Main 2022Set 2022-07-26-s14 marksMCQQ.If the function f(x) = { [logₑ(1 – x + x²) + logₑ(1 + x + x²)] / (secx – cosx), x ∈ (–π/2, π/2) – {0}; k, x = 0 } is continuous at x = 0, then k is equal to: (A) 1 (B) –1 (C) e (D) 0
›Reveal solutionSolution
Both numerator and denominator behave like x² near x=0, so the limit (and hence k) equals 1.
- Combine the logs: ln(1−x+x²) + ln(1+x+x²) = ln[(1−x+x²)(1+x+x²)]. Writing u=1+x², the product (u−x)(u+x)=u²−x² = (1+x²)²−x² = 1+2x²+x⁴−x² = 1+x²+x⁴.
- So the numerator is ln(1+x²+x⁴), and for small x this behaves like x²+x⁴ − O(x⁴) ≈ x² (to leading order). …
- JEE Main 2022Set 2022-07-27-s24 marksMCQQ.If for p ≠ q ≠ 0, the function f(x) = [⁷√(p(729+x)) – 3] / [³√(729+qx) – 9] is continuous at x = 0, then: (A) 7pq f(0) – 1 = 0 (B) 63q f(0) – p² = 0 (C) 21q f(0) – p² = 0 (D) 7pq f(0) – 9 = 0
›Reveal solutionSolution
Continuity pins p=3, and L'Hopital's rule gives f(0)=1/(7q), which rearranges to 63qf(0)−p2=0.
- Both numerator N(x)=(p(729+x))1/7−3 and denominator D(x)=(729+qx)1/3−9 vanish at x=0 only if 729p=37=2187, giving p=3; otherwise f would blow up at 0, contradicting continuity there.
- Since this is a 0/0 form, apply L'Hopital: N′(x)=7p(p(729+x))−6/7, so N′(0)=73(2187)−6/7=73⋅3−6=17011 (using 2187=37). …
- JEE Main 2021Set 2021-07-22-s24 marksMCQQ.Let f: R → R be defined as f(x) = [x³/(1 − cos2x)²]·log_e[(1 + 2xe^(−2x))/(1 − xe^(−x))²], for x ≠ 0, and f(x) = α, for x = 0. If f is continuous at x = 0, then α is equal to: (A) 1 (B) 3 (C) 0 (D) 2
›Reveal solutionSolution
Expanding each factor of f(x) to the needed order near x=0 shows the apparent 1/x singularity in the first factor exactly cancels the leading x term in the logarithm, leaving a finite limit of 1.
- 1−cos2x=2sin2x=2x2−32x4+⋯, so (1−cos2x)2=4x4(1−32x2+⋯), giving (1−cos2x)2x3=4x1(1+32x2+⋯)=4x1+6x+⋯.
- Expanding ln(1+2xe−2x) and −2ln(1−xe−x) in powers of x and combining, the logarithmic factor is 4x−7x2+⋯ (the leading term arises because both 2xe−2x and 2xe−x start as 2x to first order, and their combination via ln(N/D) doubles the leading linear coefficient). …
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.