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. …
Showing the 12 most recent of 32 on this concept.
- AP EAPCET 2024Set eng-2024-05-22-FN1 markMCQQ.Let f(x)=⎩⎨⎧0,2−x,2,21−x,2−3,x=0for 0<x<1for x=1for 1<x<2for x≥2 then which of the following is true (A) f is right continuous at x=0 (B) f is left continuous at x=1 (C) f is right continuous at x=1 (D) f is continuous at x=2
›Reveal solutionSolution
Compute the left-hand limit, right-hand limit, and function value at each candidate point and compare; only at x=2 do all three coincide.
Concept and Intuition
A function is continuous at a point if the left-hand limit, right-hand limit, and the function's value there all agree. "Right continuous" only needs the right-hand limit to equal the function value; "left continuous" only needs the left-hand limit to match.
Step-by-Step Solution
- At x=0: f(0)=0. Right-hand limit: limx→0+(2−x)=2. Since 2=0, f is not right continuous at 0 — (A) is false.
- At x=1: f(1)=2. Left-hand limit: limx→1−(2−x)=1. Since 1=2, not left continuous — (B) is false. Right-hand limit: limx→1+(21−x)=−21. Since −21=2, not right continuous either — (C) is false. …
- AP EAPCET 2023Set eng-2023-05-15-FN1 markMCQQ.If f:R→R defined by f(x)=⎩⎨⎧xsinx−sin2x,x3/2x2+x−x,x<0x>0 is continuous on R, then f(0)= (A) 1/2 (B) 3/2 (C) 1 (D) −1
›Reveal solutionSolution
This tests continuity of a piecewise function at the junction point using standard small-x approximations; both one-sided limits equal 1/2.
Concept and Intuition
A piecewise function is continuous at a boundary point only if the left-hand limit, right-hand limit, and the defined value at that point all agree. Here f(0) isn't given directly by either branch (both blow up as 0/0), so we must compute the limits from each side and set f(0) equal to their common value.
Step-by-Step Solution
- Left-hand limit (x→0−):
limx→0−xsinx−sin(x/2)
Use the small-angle expansion sint=t−6t3+⋯:
sinx−sin2x=(x−6x3)−(2x−48x3)+⋯=2x+O(x3)
Dividing by x: the limit is 21.
- Right-hand limit (x→0+):
limx→0+x3/2x2+x−x=limx→0+x3/2x(x+1−1)=limx→0+xx+1−1
Using 1+x≈1+2x−8x2+⋯:
xx+1−1≈xx/2=21 …
- AP EAPCET 2026Set eng-2026-05-15-FN1 markMCQQ.If f(x)=⎩⎨⎧2−xx2−4,a,log(x−2),for x<2for x=2for x>2 is a real valued function and 'a' is a finite real number, then (A) f is continuous at x = 2 when a = 0 (B) f is left continuous at x = 2 when a = 0 (C) f is right continuous at x = 2 when a = log 2 (D) f is not continuous at x = 1
›Reveal solutionSolution
This tests one-sided limits at a piecewise junction; the left-hand limit at x=2 is 0 while the right-hand limit diverges to −∞, so option (B) is the only correct statement.
Concept and Intuition
For left continuity at x=2 we only need limx→2−f(x)=f(2); the behaviour on the other side is irrelevant. Since log(x−2)→−∞ as x→2+, no finite value of a can make f right-continuous or fully continuous at x=2 — so those statements must be false.
Step-by-Step Solution
- Left-hand limit: let x=2−h, h→0+. Then x2−4=(2−h)2−4=h2−4h=h(h−4) and 2−x=h.
- So 2−xx2−4=hh(h−4)=h(h−4)→0⋅(−4)=0.
- Left continuity at x=2 requires f(2)=a to equal this limit, i.e. a=0. So (B) is true.
- Right-hand limit: as x→2+, x−2→0+, so log(x−2)→−∞ — unbounded, so no finite a (in particular a=log2) can match it. So (C) is false, and (A) (needing both sides equal) is also false. …
- AP EAPCET 2026Set eng-2026-05-15-FN1 markMCQQ.If f(x)=x2cos4x−1, x=0 and f(0)=2 is a real valued function, then (A) x→0limf(x) does not exist (B) x→0limf(x)=1 (C) f is not continuous at x = 0 (D) f is continuous at x = 0
›Reveal solutionSolution
This tests factoring cos4x−1 and using the standard limit xsinx→1; the limit exists and equals −2, but f(0)=2, so f fails continuity at 0.
Concept and Intuition
cos4x−1 factors as a difference of squares twice: cos4x−1=(cos2x−1)(cos2x+1)=−sin2x(cos2x+1). This lets us isolate the familiar (xsinx)2→1 building block.
Step-by-Step Solution
- cos4x−1=(cos2x−1)(cos2x+1)=−sin2x(cos2x+1).
- f(x)=x2−sin2x(cos2x+1)=−(xsinx)2(cos2x+1).
- As x→0: (xsinx)2→1 and cos2x+1→2.
- So x→0limf(x)=−1×2=−2 — this limit exists (rules out (A)) and is not 1 (rules out (B)). …
- AP EAPCET 2024Set eng-2024-05-19-AN1 markMCQQ.The function f(x)=⎩⎨⎧5−x2,5−x,x<3x≥3 is (A) left discontinuous at x=3 (B) left continuous at x=3 (C) right discontinuous at x=5 (D) discontinuous at x=5
›Reveal solutionSolution
Checking the one-sided limits at the junction x=3 shows the function jumps from 1 to 2 on approach from the left, i.e. it is left-discontinuous (but right-continuous) at x=3; there is nothing special happening at x=5.
Concept and Intuition
A piecewise function can fail to be continuous from only one side at a junction point if the junction point itself is included in one branch. Here x=3 is the boundary, and it belongs to the 5−x branch (since that branch is defined for x≥3), so we must check whether the other branch's limit (from the left) agrees with the actual function value.
Step-by-Step Solution
- Function value at x=3: since x≥3 uses f(x)=5−x, f(3)=5−3=2.
- Left-hand limit as x→3−: uses f(x)=5−x2, so limx→3−5−x2=5−32=1.
- Since LHL =1=f(3)=2, the function is discontinuous when approached from the left — i.e. left discontinuous at x=3.
- Right-hand limit as x→3+: still 5−x→2=f(3), so it is right-continuous at x=3 — this rules out "left continuous" (option B, false). …
- AP EAPCET 2025Set eng-2025-05-24-FN1 markMCQQ.If f(x)=⎩⎨⎧sin2x(eax−1)log(1+x),2,tan2xcos4x−cosbx,if x>0if x=0if x<0 is continuous at x=0 then b2−a2= (A) 4 (B) 5 (C) 3 (D) 7
›Reveal solutionSolution
Continuity at x=0 forces both one-sided limits to equal f(0)=2; solving gives a=2, b2=20, so b2−a2=4.
Concept and Intuition
For f to be continuous at 0, we need x→0+limf(x)=x→0−limf(x)=f(0)=2. Each one-sided piece is a 0/0 form that resolves using the standard small-angle equivalences et−1∼t, log(1+t)∼t, sint∼t, tant∼t, and cost≈1−2t2.
Step-by-Step Solution
- Right-hand limit (x→0+): using eax−1∼ax, log(1+x)∼x, sin2x∼x2,
limx→0+sin2x(eax−1)log(1+x)=limx→0+x2(ax)(x)=a.
Setting this equal to f(0)=2: a=2.
2. Left-hand limit (x→0−): expand cos4x≈1−2(4x)2=1−8x2 and cos(bx)≈1−2b2x2, and tan2x∼x2:
cos4x−cos(bx)≈(1−8x2)−(1−2b2x2)=x2(2b2−8). …
- AP EAPCET 2023Set eng-2023-05-15-AN1 markMCQQ.If f(x)=⎩⎨⎧x−2x−[x],b,a(2+x−x2)∣x2−x−2∣,2a−b,x>2x=2−1<x≤2x≤−1 is continuous on R, then x→0limx2sin2ax+xtanbx= (A) 0 (B) 1 (C) 2 (D) 3
›Reveal solutionSolution
Continuity of the piecewise function pins down a=1,b=1; substituting these into the limit expression and using standard small-angle limits gives 2.
Concept and Intuition
For a piecewise function to be continuous at a junction point, the one-sided limits and the defined value there must all agree. Here the junctions at x=2 and x=−1 give the equations needed to solve for the unknown constants a,b before the actual limit can be evaluated.
Step-by-Step Solution
- Right limit at x=2: for x slightly >2, [x]=2, so f(x)=x−2x−2=1. So limx→2+f(x)=1.
- Left limit at x=2 (third piece): x2−x−2=(x−2)(x+1) and 2+x−x2=−(x−2)(x+1). For x near 2−: (x−2)<0,(x+1)>0, so ∣x2−x−2∣=(2−x)(x+1) and 2+x−x2=(2−x)(x+1) too. So the ratio simplifies to a1 throughout (−1,2).
- Continuity at x=2: 1=b=a1⇒a=1, b=1.
- Check at x=−1: piece 4 value =2a−b=2−1=1; piece 3's limit as x→−1+ is also a1=1. Consistent ✓. …
- AP EAPCET 2025Set eng-2025-05-23-AN1 markMCQQ.If a real valued function f(x)=⎩⎨⎧(1+sinx)cosecx,a,ae2/x+be3/xe2/x+e3/x,−π/2<x<0x=00<x<π/2 is continuous at x = 0, then ab= (A) e (B) e2 (C) 1 (D) −1
›Reveal solutionSolution
The left-hand limit is the classical 1∞ form giving e, fixing a=e;
the right-hand limit needs dividing by the dominant exponential to fix b.
Continuity forces both, and ab=1.
Concept and Intuition
A piecewise function is continuous at a point only if the left-hand limit,
right-hand limit, and the function's value there all agree. Here the left
piece is a 1∞ indeterminate form (standard trick: exponentiate and use
log(1+u)∼u), and the right piece is a ratio of two exponentials growing at
different rates as x→0+ (since 1/x→+∞), so the faster-growing
exponential e3/x dominates and everything else becomes negligible after
dividing through by it.
Step-by-Step Solution
- Left limit: L=limx→0−(1+sinx)cosecx. Take logs: logL=limcosecx⋅log(1+sinx)=limsinxsinx(1+O(sinx))→1. So L=e. Continuity requires f(0)=a=L=e.
- Right limit: R=limx→0+ae2/x+be3/xe2/x+e3/x. Divide numerator and denominator by e3/x: R=limx→0+ae−1/x+be−1/x+1. …
- AP EAPCET 2026Set eng-2026-05-12-FN1 markMCQQ.If a function f(x)=⎩⎨⎧tan2x2sin2x−cosbx,2,1−cosxsin2ax−sin2bx,for −2π<x<0for x=0for 0<x<2π is continuous at x=0, then a2+b2= (A) 9 (B) 9−log16 (C) 9−log8 (D) 1
›Reveal solutionSolution
Continuity at x=0 forces both one-sided limits to equal f(0)=2; expanding each piece to second order in x gives two equations in a2,b2 whose sum is 9−log16.
Concept and Intuition
A piecewise function is continuous at a boundary point exactly when the left-hand limit, right-hand limit, and the defined value all coincide. Here each branch is a 00-type expression as x→0, so we expand numerator and denominator to matching (second) order in x and read off the limiting constant.
Step-by-Step Solution
- Right piece, 0<x<π/2: f(x)=1−cosxsin2(ax)−sin2(bx). Using sinu≈u for small u: sin2(ax)−sin2(bx)≈a2x2−b2x2=(a2−b2)x2. Using 1−cosx≈2x2: limit =x2/2(a2−b2)x2=2(a2−b2). Continuity requires this =f(0)=2, so a2−b2=1. — (i)
- Left piece, −π/2<x<0: f(x)=tan2x2sin2x−cos(bx). 2sin2x=esin2xln2≈1+x2ln2 (using sin2x≈x2). cos(bx)≈1−2b2x2. Numerator ≈x2ln2+2b2x2=x2(ln2+2b2). Denominator tan2x≈x2. …
- AP EAPCET 2023Set eng-2023-05-18-FN1 markMCQQ.Which one of the following function is discontinuous at x=1? (A) f(x)=sin2x+tan2x+cos2x−sec2x (B) f(x)=1+2sinx1 (C) f(x)=⎩⎨⎧∣x−1∣+2(x−1)2x−1,1,x=1x=1 (D) f(x)=ex+5
›Reveal solutionSolution
Options (A), (B), (D) simplify to functions that are continuous everywhere; option (C)'s one-sided limits at x=1 disagree (+1 from the right, −1 from the left), so it alone is discontinuous at x=1.
Concept and Intuition
For piecewise/rational-looking expressions, check whether the identity sin2x+cos2x=1 and sec2x−tan2x=1 collapse them to constants (continuous), whether a denominator can vanish, and — for absolute-value expressions — whether the left and right limits genuinely agree.
Step-by-Step Solution
- (A) f(x)=sin2x+tan2x+cos2x−sec2x=(sin2x+cos2x)−(sec2x−tan2x)=1−1=0 for all x where tan,sec are defined; at x=1 (radian) cos1=0, so it's fine and continuous (≡0 near x=1).
- (B) f(x)=1+2sinx1: since 2sinx>0 always, the denominator never vanishes (≥1+2−1=1.5); continuous everywhere, including x=1.
- (C) For x=1, let t=x−1: f=∣t∣+2t2t.
- As t→0+ (x→1+): ∣t∣=t, so f=t+2t2t=1+2t1→1.
- As t→0− (x→1−): ∣t∣=−t, so f=−t+2t2t=−1+2t1→−1. …
- AP EAPCET 2026Set eng-2026-05-14-FN1 markMCQQ.If f(x)=⎩⎨⎧(π−x)22+cosx−1,k,x=πx=π is continuous at x=π, then k= (A) 1 (B) 21 (C) 2 (D) 41
›Reveal solutionSolution
Continuity at x=π requires k to equal the limit of the given expression as x→π; using a small-angle substitution, that limit is 41.
Concept and Intuition
For f to be continuous at x=π, we need k=x→πlim(π−x)22+cosx−1. Substituting x=π−h (so h→0 as x→π) converts the trig limit into a small-h approximation problem, where standard expansions (cosh≈1−h2/2, 1+t≈1+t/2) make the limit easy to evaluate.
Step-by-Step Solution
- Let x=π−h, so as x→π, h→0, and π−x=h.
- cosx=cos(π−h)=−cosh.
- So 2+cosx=2−cosh. Using cosh≈1−2h2 for small h: 2−cosh≈2−1+2h2=1+2h2.
- 2+cosx≈1+2h2≈1+4h2 (using 1+t≈1+t/2 with t=h2/2).
- So 2+cosx−1≈4h2.
- The denominator is (π−x)2=h2. …
- AP EAPCET 2025Set eng-2025-05-21-AN1 markMCQQ.If a function f defined by f(x)=⎩⎨⎧x21−cos4x,a,16+x−4x,x<0x=0x>0 is continuous at x=0, then a= (A) 8 (B) 4 (C) 3 (D) 2
›Reveal solutionSolution
Both one-sided limits at x=0 evaluate to 8 (via 1−cosθ=2sin2(θ/2) on the left, and rationalizing on the right), so a=8.
Concept and Intuition
For f to be continuous at 0, the left-hand limit, right-hand limit, and f(0)=a must all agree. The left piece is a classic 0/0 trig limit solved via the half-angle identity for 1−cosθ; the right piece is a classic surd limit solved by rationalizing the denominator.
Step-by-Step Solution
- Left limit: 1−cos4x=2sin2(2x), so x21−cos4x=x22sin2(2x)=8(2xsin2x)2.
- As x→0−, 2xsin2x→1, so this limit →8(1)2=8.
- Right limit: let t=x (so t→0+ as x→0+): 16+x−4x=16+t−4t.
- Rationalize: multiply by 16+t+416+t+4: (16+t)−16t(16+t+4)=tt(16+t+4)=16+t+4. …
🎓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.