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 …
Showing the 12 most recent of 32 on this concept.
- AP EAPCET 2025Set eng-2025-05-27-FN1 markMCQQ.If the function f defined by f(x)=⎩⎨⎧x21−cos4x,a,16+x−4x,x<0x=0x>0 is continuous at x=0, then a= (A) 1 (B) 2 (C) 4 (D) 8
›Reveal solutionSolution
Continuity at x=0 requires the left limit, the right limit, and f(0)=a to all agree; both one-sided limits work out to 8. Answer: a=8.
Concept and Intuition
For a piecewise function to be continuous at a junction point, the value defined there (a) must equal both the limit approaching from the left and the limit approaching from the right. Each side here needs a standard trick: the trig side uses the double-angle identity 1−cosθ=2sin2(θ/2), and the surd side needs rationalisation to remove the − indeterminate form.
Step-by-Step Solution
- Left-hand limit (x→0−): 1−cos4x=2sin2(2x), so
limx→0−x21−cos4x=limx→0−x22sin2(2x)=2limx→0(2xsin2x)2⋅4=2⋅1⋅4=8.
- Right-hand limit (x→0+): rationalise 16+x−4x by multiplying top and bottom by 16+x+4: (16+x)−16x(16+x+4)=xx(16+x+4)=16+x+4. …
- AP EAPCET 2022Set eng-2022-07-04-AN1 markMCQQ.Let f(x)=⎩⎨⎧∣x∣1,ax2+b,for ∣x∣>1for ∣x∣≤1. If x→1limf(x) and x→−1limf(x) exist, then the possible values for a and b are (A) a=b=1 (B) a=−21,b=−23 (C) a=23,b=−21 (D) a=21,b=−23
›Reveal solutionSolution
Both one-sided limits at x=±1 force a+b=1; checking the options, only a=23,b=−21 satisfies this.
Concept and Intuition
The function is piecewise, switching definition exactly at ∣x∣=1. For the limit to exist at a switch-point, the two pieces must approach the same value from either side — this is the usual "match the boundary values" condition for piecewise functions.
Step-by-Step Solution
- Near x=1: for x slightly less than 1 we're in the ax2+b branch (∣x∣≤1); for x slightly more than 1 we're in the 1/∣x∣ branch.
- Left limit: a(1)2+b=a+b.
- Right limit: ∣1∣1=1.
- Condition: a+b=1.
- Near x=−1: for x slightly less than −1 (i.e. ∣x∣>1), branch is 1/∣x∣; for x slightly more than −1 (i.e. ∣x∣<1), branch is ax2+b.
- Left limit: 1/∣−1∣=1.
- Right limit: a(−1)2+b=a+b.
- Condition: a+b=1 (same equation again). …
- Near x=1: for x slightly less than 1 we're in the ax2+b branch (∣x∣≤1); for x slightly more than 1 we're in the 1/∣x∣ branch.
- 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. …
- 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 2024Set eng-2024-05-20-AN1 markMCQQ.The values of a and b for which the function f(x)=⎩⎨⎧1+∣sinx∣a/∣sinx∣,b,etan2x/tan3x,6−π<x<0x=00<x<6π is continuous at x=0 are (A) a=1,b=32 (B) a=32,b=e2/3 (C) a=32,b=23 (D) a=−1,b=e2/3
›Reveal solutionSolution
Both one-sided limits must equal b; the right side gives e2/3 directly, and the left side (a (1+u)1/u→e-type limit) matches it when a=2/3 — (B).
Concept and Intuition
Continuity at x=0 requires x→0−limf(x)=f(0)=x→0+limf(x). The right branch is a standard eratio of small angles limit, and the left branch is the classical exponential limit (1+u)1/u→e as u→0, raised to a power a.
Step-by-Step Solution
- Right-hand limit: as x→0+, tan2x≈2x and tan3x≈3x, so tan3xtan2x→32. Hence x→0+limetan2x/tan3x=e2/3.
- Left-hand limit: let u=∣sinx∣→0+ as x→0−. The left branch is (1+u)a/u=[(1+u)1/u]a. Since (1+u)1/u→e, this tends to ea.
- For continuity: left limit = right limit =f(0)=b, i.e. ea=e2/3=b. …
- 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 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-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-18-FN1 markMCQQ.If f(x) defined by f(x)=⎩⎨⎧4x−π1−tanx,k,x=4π,x∈[0,2π]x=4π is continuous in [0,2π], then k= (A) −1 (B) −21 (C) 21 (D) 1
›Reveal solutionSolution
Substituting x=π/4+h and using the tangent subtraction identity, the limit of
4x−π1−tanx as x→π/4 works out to −21, which is the required
value of k.
Concept and Intuition
For continuity at x=π/4, we need k=limx→π/4f(x). Since the expression is 0/0
at x=π/4, shifting variables via x=π/4+h (so h→0) turns tanx into
tan(π/4+h), which has a clean expansion using the tangent-addition formula.
Step-by-Step Solution
- Let x=4π+h, so h→0 as x→π/4.
- tan(4π+h)=1−tanh1+tanh.
- 1−tanx=1−1−tanh1+tanh=1−tanh(1−tanh)−(1+tanh)=1−tanh−2tanh
- 4x−π=4(4π+h)−π=4h.
- So
f(x)=4h(1−tanh)−2tanh
- As h→0, tanh∼h, so …
- AP EAPCET 2024Set eng-2024-05-20-FN1 markMCQQ.If a function f(x)=⎩⎨⎧xtan((α+1)x)+tan2xβx3sin3x−tan3xif x>0at x=0if x<0 is continuous at x=0 then ∣α∣+∣β∣= (A) 60 (B) 30 (C) 15 (D) 45
›Reveal solutionSolution
Continuity at x=0 forces both one-sided limits to equal β=f(0); compute each limit via small-angle expansions and solve for α,β.
Concept and Intuition
For a piecewise function to be continuous at a point, the left-hand limit, the right-hand limit, and the function's value there must all agree. Here both one-sided limits are 0/0-type indeterminate forms requiring standard small-x expansions of tan and sin.
Step-by-Step Solution
- Right-hand limit (x→0+): using limx→0tan(kx)/x=k, limx→0+xtan((α+1)x)+tan2x=(α+1)+2=α+3. This must equal β: β=α+3.
- Left-hand limit (x→0−): expand sin3x≈3x−6(3x)3=3x−4.5x3 and tan3x≈3x+3(3x)3=3x+9x3.
- sin3x−tan3x≈(3x−4.5x3)−(3x+9x3)=−13.5x3=−227x3.
- So limx→0−x3sin3x−tan3x=−227. This must also equal β: β=−227. …
- AP EAPCET 2021Set eng-2021-08-23-AN1 markMCQQ.If the function f(x), defined below, is continuous everywhere, then 'k' equals ______ f(x)=⎩⎨⎧1+x−12x−1,k,−1≤x<∞,x=0x=0 (A) 21loge2 (B) loge4 (C) loge8 (D) loge2
›Reveal solutionSolution
Continuity at x=0 requires k to equal the limit of f(x) as x→0, which works out to ln4 using standard small-x approximations.
Concept and Intuition
For f to be continuous at x=0, we need x→0limf(x)=f(0)=k. Both numerator and denominator vanish as x→0 (this is a 0/0 form), so we use the standard first-order approximations 2x−1≈xln2 and 1+x−1≈x/2 near x=0.
Step-by-Step Solution
- Numerator: 2x−1=exln2−1≈xln2 for small x.
- Denominator: 1+x−1=(1+x)1/2−1≈2x for small x (binomial expansion).
- So x→0lim1+x−12x−1=x→0limx/2xln2=2ln2. …
🎓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.