Q.Find the values of a and b such that the function defined by f(x)=⎩⎨⎧5,ax+b,21,if x≤2if 2<x<10if x≥10 is a continuous function.
🔒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 Condition
The Continuity Condition: When a Function Has No "Breaks"
If you can trace a curve without ever lifting your pen — no jumps, gaps, or leaps — that curve is continuous. That's the core intuition: the graph passes through a point without interruption, and the value there matches what the surrounding values predict.
The Intuition: Three Things Must Align
For f(x) to be continuous at x=a, three things must hold:
- f is defined at a — there is a point (a,f(a)).
- f approaches a single value as x→a — the left and right sides agree.
- That value equals f(a) — no "hole" with a different value plugged in.
If any of these fails, f is discontinuous at a.
Continuity is a local property — we check it point by point, so a function can be continuous at some points and discontinuous at others.
The Precise Statement
f is continuous at x=a if and only if:
limx→af(x)=f(a)
That one equation packs all three conditions: the limit exists (left and right limits equal and finite), f(a) is defined, and they are equal. If f is continuous at every point of (a,b), it is continuous on that interval.
Continuity at x=a:limx→af(x)=f(a)
Common Pitfalls
The "hole" mistake: f(x)=x−1x2−1 is undefined at x=1. Even though limx→1f(x)=2 exists, f(1) doesn't — discontinuous.
The "jump" mistake: piecewise functions often cause this. For
f(x)={x+1x2if x<2if x≥2
at x=2 the left limit is 3, the right limit is 4 — they don't match, so the limit doesn't exist.
The "blow-up" mistake: f(x)=x1 at x=0 is undefined and the limit goes to ±∞ — discontinuous.
Why It Matters
Continuity is the foundation for calculus. Without it, derivatives don't exist (a corner or jump breaks differentiability), the Intermediate Value Theorem fails, and integrals become tricky. …
Concept: Continuity Condition — For a piecewise function to be continuous at a junction, the left-hand limit, right-hand limit, and the function value must all be equal.
Step 1: At x=2
Left limit: limx→2−f(x)=5
Right limit: limx→2+f(x)=a(2)+b=2a+b
Continuity requires 2a+b=5.
Step 2: At x=10
Left limit: limx→10−f(x)=a(10)+b=10a+b
Right limit: limx→10+f(x)=21
Continuity requires 10a+b=21. …
For a piecewise function to be continuous, the left-hand limit and right-hand limit must equal the function value at each boundary. Applying this at x=2 and x=10 gives two linear equations in a and b, which solve to a=2, b=1.
Why continuity at the boundaries is the key
A piecewise function is continuous if it has no jumps, breaks, or holes. Since each piece (5, ax+b, 21) is itself continuous on its own interval, the only places where continuity could fail are the boundary points x=2 and x=10. At each boundary, the value coming from the left must match the value coming from the right — and both must equal the function's defined value at that point.
This gives us two conditions, which become two equations in a and b.
Step-by-step solution
1. Continuity at x=2
For x≤2, f(x)=5, so f(2)=5.
For 2<x<10, f(x)=ax+b. As x approaches 2 from the right, the value approaches a(2)+b=2a+b.
Continuity at x=2 requires:
limx→2+f(x)=f(2)
2a+b=5(Equation 1)
2. Continuity at x=10
For 2<x<10, f(x)=ax+b. As x approaches 10 from the left, the value approaches a(10)+b=10a+b.
For x≥10, f(x)=21, so f(10)=21.
Continuity at x=10 requires:
limx→10−f(x)=f(10)
10a+b=21(Equation 2) …
Method: Two Unknowns from Two Junction Points
When a three-piece function has an unknown linear middle piece (ax+b) sandwiched between two known pieces, continuity must hold at BOTH junction points — this gives two equations in two unknowns.
Steps
Step 1: Identify both junction points from the piecewise conditions
There is one junction wherever the defining inequality changes — typically two junctions for a three-piece function.
Step 2: At the first junction, equate the left-hand and right-hand limits
Evaluate the piece just before the junction and the middle piece ax+b at that junction's x-value; set them equal. This gives your first linear equation in a and b.
Step 3: At the second junction, do the same
Evaluate the middle piece ax+b and the piece just after the second junction at that x-value; set them equal. This is your second equation. …
Common Mistakes
Mistake 1: Using ax+b instead of the actual defined value at x=10
Why it's wrong: the function's own definition says f(10)=21 (from the third piece, since x≥10) — the middle piece ax+b only tells you the left-hand limit approaching 10, not the function's value there. Confusing the two gives an equation using the wrong quantity. Correct approach: always write f(10) from the piece whose inequality actually contains 10, and treat the middle piece's value at 10 purely as the left-hand limit.
Mistake 2: Sign or subtraction error when eliminating b from the system …
Showing the 12 most recent of 18 on this concept.
- AP EAPCET 2021Set eng-2021-08-20-FN1 markMCQQ.If the function f(x), defined below, is continuous on the interval [0,8], then _______
[!FORMULA] f(x)=⎩⎨⎧x2+ax+b,3x+2,2ax+5b,0≤x<22≤x≤44<x≤8
(A) a=3,b=−2 (B) a=−3,b=2 (C) a=−3,b=−2 (D) a=3,b=2›Reveal solutionSolution
This tests matching piecewise function values at the junction points to enforce continuity on a closed interval. Answer: a=3, b=−2.
Concept and Intuition
A piecewise function is continuous at a junction point exactly when the values from each adjoining piece agree there (the left-hand and right-hand pieces must meet without a jump).
Step-by-Step Solution
- At x=2: from the first piece (as x→2−), f→22+2a+b=4+2a+b. From the middle piece, f(2)=3(2)+2=8.
- Continuity at x=2: 4+2a+b=8⇒2a+b=4. — (i)
- At x=4: the middle piece gives f(4)=3(4)+2=14. From the third piece (as x→4+), f→2a(4)+5b=8a+5b.
- Continuity at x=4: 8a+5b=14. — (ii) …
- AP EAPCET 2021Set eng-2021-08-20-FN1 markMCQQ.If f(x), defined below, is continuous at x=4, then _______
[!FORMULA] f(x)=⎩⎨⎧∣x−4∣x−4+a,a+b,∣x−4∣x−4+b,x<4x=4x>4
(A) a=0 & b=0 (B) a=1 & b=1 (C) a=−1 & b=1 (D) a=1 & b=−1›Reveal solutionSolution
This tests evaluating the sign function ∣x−4∣x−4 on either side of x=4 and matching one-sided limits to the function's value there. Answer: a=1, b=−1.
Concept and Intuition
The expression ∣x−4∣x−4 is −1 for x<4 and +1 for x>4 — a signum function centered at 4. Continuity at x=4 needs all three (left limit, value, right limit) to agree.
Step-by-Step Solution
- For x<4: ∣x−4∣=4−x, so ∣x−4∣x−4=−(x−4)x−4=−1. Left-hand limit =−1+a.
- At x=4: f(4)=a+b.
- For x>4: ∣x−4∣=x−4, so the ratio is +1. Right-hand limit =1+b.
- Continuity: −1+a=a+b=1+b. …
- AP EAPCET 2021Set eng-2021-08-23-FN1 markMCQQ.If f(x), defined as given below, is continuous on R, then the value of a+b= ______
[!FORMULA] f(x)=⎩⎨⎧sinx,x2+a,bx+3,−3,x≤00<x<11≤x≤3x>3
(A) 0 (B) 2 (C) −2 (D) 3›Reveal solutionSolution
Tests matching piecewise function values at each junction point to enforce continuity, giving two equations for the two unknowns.
Concept and Intuition
A piecewise function is continuous at a junction point exactly when the left-hand and right-hand pieces agree in value there (since each individual piece is already continuous/smooth on its own interval). Checking each junction in turn gives one equation per unknown constant.
Step-by-Step Solution
- At x=0: left piece (x≤0) gives sin(0)=0. Right-approaching piece (0<x<1) gives limx→0+(x2+a)=a. Continuity requires 0=a⇒a=0.
- At x=1: left-approaching piece (0<x<1) gives limx→1−(x2+a)=1+a=1+0=1. The piece at x=1 itself (1≤x≤3) gives b(1)+3=b+3. Continuity requires 1=b+3⇒b=−2. …
- AP EAPCET 2026Set eng-2026-05-18-AN1 markMCQQ.If the function f(x)=⎩⎨⎧x2−1eax−1−1,2,log(1−bx1+bx)2x1,for x>1for x=1for 0<x<1 is continuous at x=1, then x→alimx−ax2−5x+6= (A) b (B) −b (C) 2b (D) −2b
›Reveal solutionSolution
Continuity at x=1 forces a=2; the required limit x→2limx−2x2−5x+6=−1. The official key marks option (B) −b.
Right-hand limit fixes a
For x>1, put t=x−1→0+, so x=1+t2 and x2−1=t2+t2. Using eat−1∼at,
limx→1+x2−1eax−1−1=limt→0t2+t2at=2a.
Continuity requires this to equal f(1)=2:
2a=2 ⇒ a=2.
Left-hand limit fixes b
For 0<x<1, f(x)=2x1log(1−bx1+bx). Setting its limit as x→1− equal to 2:
21log(1−b1+b)=2 ⇒ log(1−b1+b)=2 ⇒ b=e2+1e2−1.
Evaluate the limit …
- AP EAPCET 2024Set eng-2024-05-19-AN1 markMCQQ.If f(x)={3ax−2b,ax+b+1,x>1x<1 and x→1limf(x) exists, then the relation between a and b is (A) 3a−2b=1 (B) 2a−3b=1 (C) 2a+3b=1 (D) 2a+3b=−1
›Reveal solutionSolution
Existence of the limit at a piecewise junction forces the two one-sided limits to match, giving 2a−3b=1.
Concept and Intuition
For a piecewise function, limx→cf(x) exists only when the value approached from the left equals the value approached from the right — the two pieces must "meet" at that point (the function value at x=1 itself doesn't matter here since neither branch is defined at x=1, only lim).
Step-by-Step Solution
- Left-hand limit as x→1−: uses the branch ax+b+1 (valid for x<1), giving a(1)+b+1=a+b+1. …
- AP EAPCET 2025Set eng-2025-05-22-FN1 markMCQQ.If the function f(x)=⎩⎨⎧1+cosx,a−x,x2−b2,x≤00<x≤2x>2 is continuous everywhere, then a2+b2= (A) 4 (B) 8 (C) 6 (D) 12
›Reveal solutionSolution
Match the piecewise definitions at the two junction points x=0 and x=2 to pin down a and b. Answer: a2+b2=8.
Concept and Intuition
A piecewise function is continuous everywhere exactly when it is continuous at each junction between pieces — the left-hand value (from the left-side piece) must equal the right-hand value (from the right-side piece) at each breakpoint. Here there are two breakpoints, x=0 and x=2, giving one equation each for the unknowns a and b.
Step-by-Step Solution
- At x=0: the left piece (x≤0) gives f(0−)=1+cos(0)=1+1=2. The middle piece (0<x≤2), evaluated as x→0+, gives f(0+)=a−0=a.
- Continuity at 0: a=2.
- At x=2: the middle piece gives f(2)=a−2=2−2=0. The right piece (x>2), as x→2+, gives f(2+)=22−b2=4−b2. …
- AP EAPCET 2021Set eng-2021-08-19-FN1 markMCQQ.If the function f(x), defined below is continuous in the interval [0,π], then ____ f(x)=⎩⎨⎧x+a2(sinx),2x(cotx)+b,a(cos2x)−b(sinx),0≤x<4π4π≤x≤2π2π<x≤π (A) a=6π,b=12π (B) a=6−π,b=12π (C) a=6−π,b=12−π (D) a=6π,b=12−π
›Reveal solutionSolution
Matching the piecewise function's values at the two junction points x=π/4 and x=π/2 gives two linear equations in a,b, solved by a=π/6, b=−π/12.
Concept and Intuition
A piecewise function is continuous on an interval exactly when each piece agrees with its neighbor at every junction point. With two junctions here (π/4 and π/2), we get two equations in the two unknowns a,b — a standard "match the boundary values" problem.
Step-by-Step Solution
- At x=π/4: left piece =4π+a2sin4π=4π+a2⋅22=4π+a.
- Middle piece at π/4: 2(4π)cot4π+b=2π(1)+b=2π+b.
- Equate: 4π+a=2π+b⇒a−b=4π. — (i)
- At x=π/2: middle piece =2(2π)cot2π+b=π(0)+b=b.
- Right piece at π/2: acosπ−bsin2π=a(−1)−b(1)=−a−b. …
- AP EAPCET 2025Set eng-2025-05-23-FN1 markMCQQ.If a function f(x)=⎩⎨⎧x231+ax2+bx3−31−ax2−bx3,5,bx3tan3x−sin3x,x<0x=0x>0 is continuous at x=0, then the geometric mean of a and b is (A) 23 (B) 29 (C) 481 (D) 49
›Reveal solutionSolution
Continuity at x=0 forces both one-sided limits to equal f(0)=5; this determines a and b separately, and their geometric mean is 29.
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 actual value there must all agree. Here f(0)=5 is given, so both one-sided limits must independently equal 5. Each side involves a 00-type indeterminate form that resolves using standard small-angle/small-u approximations: sinϕ≈ϕ, 1−cosϕ≈ϕ2/2 for the right side, and the binomial-type expansion (1±u)1/3≈1±u/3−u2/9 for the left side (the leading behavior of a cube root near 1).
Step-by-Step Solution
Right-hand limit (x→0+): f(x)=bx3tan3x−sin3x.
- tan3x−sin3x=cos3xsin3x−sin3x=sin3x⋅cos3x1−cos3x.
- As x→0: sin3x→3x, 1−cos3x→2(3x)2=29x2, cos3x→1.
- Numerator ≈(3x)(29x2)=227x3.
- Limit =bx327x3/2=2b27.
- Continuity: 2b27=5⇒b=1027.
Left-hand limit (x→0−): f(x)=x231+u−31−u where u=ax2+bx3.
6. (1+u)1/3≈1+3u−9u2, (1−u)1/3≈1−3u−9u2 (same sign on the u2 term since it's even in the expansion of (1±u)1/3 up to that order — more precisely the quadratic coefficient is the same for both since it depends on u2, and subtracting cancels it).
7. Difference ≈32u=32(ax2+bx3). …
- AP EAPCET 2023Set eng-2023-05-17-AN1 markMCQQ.If a function f(x) defined by f(x)=⎩⎨⎧ax2+bx+c,2x2+4x+1,cx2+bx+a,x≤−1−1<x<1x≥1 is continuous on R, and x→23limf(x)=14, then x→−2limf(x)= (A) 6 (B) −8 (C) 5 (D) 1
›Reveal solutionSolution
Using continuity at the two junction points plus the given limit at x=3/2 pins down all three constants a,b,c; the requested limit then evaluates to −8.
Concept and Intuition
A piecewise function is continuous on R exactly when its pieces agree at every junction point. Each junction gives one linear equation in the unknown coefficients. Combined with the extra numerical condition given (limx→3/2f(x)=14), we get enough equations to solve for a,b,c uniquely.
Step-by-Step Solution
- Continuity at x=−1: a(−1)2+b(−1)+c=2(−1)2+4(−1)+1⇒a−b+c=−1.
- Continuity at x=1: 2(1)2+4(1)+1=c(1)2+b(1)+a⇒a+b+c=7.
- Subtracting: 2b=8⇒b=4; adding relations gives a+c=3.
- Since x=3/2≥1, f(3/2)=c(3/2)2+b(3/2)+a=49c+6+a=14⇒49c+a=8. …
- AP EAPCET 2026Set eng-2026-05-12-AN1 markMCQQ.If a function f(x)=⎩⎨⎧∣x∣x−K,∣x∣x+L,5,x>0x<0x=0 is continuous for all real values of x, then L−KL+K= (A) 5 (B) 3 (C) 51 (D) 31
›Reveal solutionSolution
Since x/∣x∣ is just ±1, each piece is actually constant; matching both one-sided limits to f(0)=5 pins down K,L, giving L−KL+K=51.
Concept and Intuition
∣x∣x=1 for x>0 and =−1 for x<0, so despite looking like it depends on x, each branch of f is actually a constant function on its domain. Continuity at x=0 then just requires that constant to equal f(0)=5 from each side.
Step-by-Step Solution
- For x>0: f(x)=∣x∣x−K=1−K (constant).
- limx→0+f(x)=1−K. Continuity requires this =f(0)=5: 1−K=5⇒K=−4.
- For x<0: f(x)=∣x∣x+L=−1+L (constant).
- limx→0−f(x)=L−1. Continuity requires L−1=5⇒L=6. …
- AP EAPCET 2023Set eng-2023-05-15-FN1 markMCQQ.If f(x)={1+6x−3x2,x+log2(b2+7),x≤1x>1 is continuous at all real x, then b = (A) ±1 (B) 0 (C) ±5 (D) ±2
›Reveal solutionSolution
Both pieces are continuous on their own; matching them at the junction x=1 gives log2(b2+7)=3, so b=±1.
Concept and Intuition
A piecewise function built from continuous pieces (a polynomial and a log-plus-linear expression) is automatically continuous everywhere except possibly at the boundary point where the definition switches — here x=1. So the entire "continuous for all real x" condition reduces to one equation: the value approaching from the left must equal the value approaching from the right (and both must equal f(1), which is given by the x≤1 branch).
Step-by-Step Solution
- For x≤1: f(x)=1+6x−3x2, continuous everywhere (polynomial). f(1)=1+6−3=4.
- For x>1: f(x)=x+log2(b2+7), continuous on its domain (as long as b2+7>0, always true). …
- AP EAPCET 2024Set eng-2024-05-23-FN1 markMCQQ.Let f(x)={1+a2x,ax,0≤x≤11<x≤2. If limx→1f(x) exists then the sum of the cubes of the possible values of a is (A) 1 (B) 5 (C) 7 (D) 9
›Reveal solutionSolution
For the piecewise function's limit at the junction point to exist, the two one-sided limits (evaluated from each formula) must be equal; this gives a quadratic in a whose two roots we cube and sum.
Concept and Intuition
At a junction point of a piecewise function, the left-hand limit uses the formula valid just below the point, and the right-hand limit uses the formula valid just above. Since both pieces are continuous polynomials/linear expressions in x near x=1, the one-sided limits are simply the values of each formula evaluated at x=1. Setting them equal is exactly the condition for the overall limit to exist.
Step-by-Step Solution
- As x→1− (using 1+a2x valid for 0≤x≤1): limit =1+a2.
- As x→1+ (using ax valid for 1<x≤2): limit =a(1)=a.
- For the limit to exist: 1+a2=a. …
🎓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.