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 …
- COMEDK 2025Set 2025-E1 markMCQQ.The relationship between a and b for the continuous function f(x)={ax+1,bx+3, if x≤3 if x>3 at x=3 is (A) 3b=3a+2 (B) 3a=b+2 (C) 3a=3b+2 (D) a=3b−2
›Reveal solutionSolution
For a piecewise function to be continuous at the boundary, the left-hand limit must equal the right-hand limit and the function value. Setting a(3)+1=b(3)+3 gives 3a+1=3b+3, which simplifies to 3a=3b+2, matching option (C).
The key idea is that continuity at a point means the function’s value and the limits from both sides all agree. Here, the function is defined by two different linear expressions meeting at x=3. For it to be continuous, the y-value computed from the left piece (at x=3) must equal the y-value computed from the right piece (also at x=3). That gives a simple equation linking a and b.
- Identify the left-hand value. For x≤3, we use f(x)=ax+1. At x=3, this gives
f(3)=a(3)+1=3a+1.
- Identify the right-hand limit. For x>3, we use f(x)=bx+3. As x approaches 3 from the right, the value approaches
limx→3+f(x)=b(3)+3=3b+3.
- Set them equal for continuity. Continuity at x=3 requires
f(3)=limx→3+f(x),
so
3a+1=3b+3.
- Solve for the relationship. Subtract 1 from both sides: 3a=3b+2. …
- COMEDK 2023Set 2023-M1 markMCQQ.If f(x)=⎩⎨⎧2sinxasinx+bcosx;;;−π≤x≤2−π−2π<x<2π2π≤x≤π is continuous on [−π,π], then the values of a and b are (A) a=1 and b=1 (B) a=−1 and b=−1 (C) a=−1 and b=1 (D) a=1 and b=−1
›Reveal solutionSolution
Matching the pieces for continuity at x=±π/2 gives a=1, b=−1.
The standard form of this function is
f(x)=⎩⎨⎧2sinx,asinx+b,cosx,−π≤x≤−2π−2π<x<2π2π≤x≤π.
For f to be continuous the pieces must agree at the joining points.
At x=−2π: left piece =2sin(−2π)=2(−1)=−2; middle piece =asin(−2π)+b=−a+b. So
−a+b=−2.(1) …
- COMEDK 2021Set 20211 markMCQQ.If f(x)={ax+3,a2x−1x≤2x>2, then the values of a for which f is continuous for all x are (A) 1 and −2 (B) 1 and 2 (C) −1 and 2 (D) −1 and −2
›Reveal solutionSolution
Set them equal: 2a + 3 = 2a^2 - 1 => 2a^2 - 2a - 4 = 0 => a^2 - a - 2 = 0 => (a - 2)(a + 1) = 0 => a = 2 or a = -1.
Concept: a piecewise polynomial function is continuous everywhere except possibly at the break point; there the left limit, right limit and the value must agree.
Both pieces (ax + 3 and a^2 x - 1) are polynomials, hence continuous on their own domains. Continuity at x = 2 requires
lim(x -> 2-) f(x) = f(2) = a(2) + 3 = 2a + 3 …
- KCET 2022Set C-41 markMCQQ.If f(x)={x2−1,0<x<22x+3,2≤x<3 The quadratic equation whose roots are limx→2−f(x) and limx→2+f(x) is (A) x2−10x+21=0 (B) x2−6x+9=0 (C) x2−7x+8=0 (D) x2−14x+49=0
›Reveal solutionSolution
Evaluate the one-sided limits from the correct branches of the piecewise function (3 and 7), then build the quadratic from the sum and product of those roots.
Step 1 — Identify which branch each one-sided limit uses
f(x)={x2−1,2x+3,0<x<22≤x<3
- x→2− means x approaches 2 from below, so x lies in (0,2) → use f(x)=x2−1.
- x→2+ means x approaches 2 from above, so x lies in [2,3) → use f(x)=2x+3.
This is the whole point of a one-sided limit on a piecewise function: the side selects the formula.
Step 2 — Compute the limits
Both branches are polynomials, hence continuous, so the limits are found by direct substitution:
limx→2−f(x)=limx→2−(x2−1)=22−1=3
limx→2+f(x)=limx→2+(2x+3)=2(2)+3=7
(As an aside, 3=7, so f is discontinuous at x=2 — but that does not affect the one-sided values.) …
- COMEDK 2021Set 2021-B1 markMCQQ.Let f(x)={(x−1)2x3−5x2+7x−3,a,x=1x=1. If f(x) is continuous ∀x∈R, then a = (A) -4 (B) 2 (C) -2 (D) 4
›Reveal solutionSolution
a=−2.
Check x=1 in the numerator: 1−5+7−3=0, so (x−1) is a factor. Dividing:
x3−5x2+7x−3=(x−1)(x2−4x+3)=(x−1)(x−1)(x−3)=(x−1)2(x−3).
Thus for x=1, f(x)=(x−1)2(x−1)2(x−3)=x−3. …
- COMEDK 2023Set 2023-E1 markMCQQ.
[!FORMULA] The function defined by f(x)=⎩⎨⎧xsinx+cosx−5kx4(1−1−x)x>0x=0x<0 is continuous at x=0, then the value of k is
(A) −52 (B) −2 (C) 2 (D) −25›Reveal solutionSolution
Value at 0: f(0) = -5k. Continuity => -5k = 2 => k = -2/5.
Concept: continuity at x = 0 requires LHL = RHL = f(0). (The stem is truncated but the standard question asks for k that makes f continuous at 0.)
Right-hand limit (x -> 0+): f(x) = sin x / x + cos x -> 1 + 1 = 2.
Left-hand limit (x -> 0-): f(x) = 4(1 - sqrt(1 - x))/x. Rationalise: …
- COMEDK 2026Set 2026-M1 markMCQQ.If f(x)={sinx1+x−1−xk,x=0,x=0 is continuous at x=0, then k= (A) 1 (B) 21 (C) 2 (D) 0
›Reveal solutionSolution
For a function to be continuous at a point, the limit as x approaches that point must equal the function’s value there. Here we compute limx→0sinx1+x−1−x using rationalization and standard limits, obtaining k=1.
Concept & Intuition
Continuity at x=0 means limx→0f(x)=f(0)=k. The given expression for x=0 is a 0/0 form, so we need to simplify it. The classic trick: rationalize the numerator to eliminate the square roots, then use limx→0xsinx=1.
Step-by-step solution
- Set up the continuity condition Since f is continuous at x=0,
k=f(0)=limx→0f(x)=limx→0sinx1+x−1−x.
- Rationalize the numerator Multiply numerator and denominator by the conjugate 1+x+1−x:
sinx1+x−1−x⋅1+x+1−x1+x+1−x=sinx(1+x+1−x)(1+x)−(1−x).
The numerator simplifies to 2x.
- Rewrite the limit
limx→0sinx(1+x+1−x)2x.
- Separate into known limits
limx→0sinx2x⋅1+x+1−x1.
We know limx→0sinxx=1, so limx→0sinx2x=2⋅1=2.
- Evaluate the remaining factor …
- COMEDK 2025Set 2025-M1 markMCQQ.If f(x)={1−x1−xm2m−1 if x=1 if x=1 and the function is discontinuous at x=1, then (A) m=1 (B) m=21 (C) m=21 (D) m=1
›Reveal solutionSolution
The function is defined piecewise, and continuity at x=1 requires the limit as x→1 of 1−x1−xm to equal 2m−1. Using the limit formula limx→11−x1−xm=m, continuity forces m=2m−1⇒m=1. Discontinuity occurs when m=1, so the correct option is (D).
The key idea is that a piecewise function is continuous at the boundary point if the limit from both sides matches the defined value. Here, the limit of the rational expression as x→1 is a standard derivative-like result: 1−x1−xm is the sum of a geometric series when m is a positive integer, but the limit formula holds for any real m. So we compare that limit to 2m−1; if they are unequal, the function is discontinuous.
- Write the continuity condition For f to be continuous at x=1, we need
limx→1f(x)=f(1)=2m−1.
Since for x=1, f(x)=1−x1−xm, we compute
L=limx→11−x1−xm.
- Evaluate the limit Recognize that 1−x1−xm=1+x+x2+⋯+xm−1 when m is a positive integer, but the limit formula works for any real m using L’Hôpital’s rule or the definition of derivative:
limx→11−x1−xm=limx→1−1−mxm−1=m.
So L=m.
- Set equality for continuity Continuity requires m=2m−1. Solving:
m=2m−1⇒1=m.
Thus the function is continuous only when m=1.
- Discontinuity condition …
- COMEDK 2024Set 2024-M1 markMCQQ.
[!FORMULA] If f(x)={(π−2x)21−sinxλ,, if x=2π if x=2π Then f(x) will be continues function at x=2π, then λ=
(A) −81 (B) 1 (C) 41 (D) 81›Reveal solutionSolution
To make f continuous at x=2π, we need λ=limx→π/2(π−2x)21−sinx. Using a substitution and the standard limit limt→0tsint=1, we find λ=81.
The key idea: continuity at a point means the function’s value equals its limit there. Here, f is defined piecewise, so we compute the limit of the expression for x=π/2 as x approaches π/2, and set λ equal to that limit.
Why this approach works:
Direct substitution gives 0/0, an indeterminate form. We need to simplify algebraically or use a substitution to reveal a known limit. The presence of sinx and (π−2x)2 suggests letting t=π/2−x, which turns the denominator into (2t)2 and the numerator into 1−cost, a classic limit pair.
Step-by-step:
- Set up the limit for continuity For f to be continuous at x=π/2, we require
λ=limx→π/2(π−2x)21−sinx.
- Substitute to simplify Let t=2π−x. Then as x→π/2, t→0. Also:
π−2x=π−2(2π−t)=π−π+2t=2t,
so (π−2x)2=4t2.
For the numerator: sinx=sin(2π−t)=cost, so 1−sinx=1−cost.
The limit becomes:
λ=limt→04t21−cost.
- Use the half-angle identity Recall 1−cost=2sin2(t/2). Then:
4t21−cost=4t22sin2(t/2)=2t2sin2(t/2).
- Rewrite to use limu→0usinu=1 Let u=t/2, so t=2u and t2=4u2. Then:
- KCET 2024Set A-11 markMCQQ.The real value of 'α' for which 1+2isinα1−isinα is purely real is (A) (n+1)2π, n∈N (B) (2n+1)2π, n∈N (C) nπ, n∈N (D) (2n−1)2π, n∈N
›Reveal solutionSolution
For a complex number to be purely real, its imaginary part must vanish. Rationalising the given expression and setting the imaginary part to zero gives sinα=0, so α=nπ, n∈N. The correct option is (C).
The key idea is that a complex number is purely real when its imaginary part is zero. Here we have a fraction involving isinα, so we need to manipulate it into a standard form x+iy and then set y=0.
- Rationalise the denominator Multiply numerator and denominator by the conjugate of the denominator:
1+2isinα1−isinα×1−2isinα1−2isinα
The denominator becomes:
(1)2+(2sinα)2=1+4sin2α
The numerator expands as:
(1−isinα)(1−2isinα)=1−2isinα−isinα+2i2sin2α
Since i2=−1, the last term is −2sin2α. So:
Numerator=(1−2sin2α)−3isinα
- Write in x+iy form The whole expression becomes:
1+4sin2α1−2sin2α+i⋅1+4sin2α−3sinα
The imaginary part is 1+4sin2α−3sinα.
- Set the imaginary part to zero For the number to be purely real:
1+4sin2α−3sinα=0
The denominator is always positive (since 1+4sin2α≥1), so this reduces to:
−3sinα=0⇒sinα=0
- Solve sinα=0 …
- KCET 2026Set UNKNOWN1 markMCQQ.If f(x)=⎩⎨⎧ax+72x−3bx−3if x<1if x=1if x>1 is continuous at x=1, then (A) a=3,b=2 (B) a=−8,b=−2 (C) a=8,b=−2 (D) a=−8,b=2
›Reveal solutionSolution
Continuity at x=1 means both one-sided limits must equal f(1) — match each piece to f(1)=2(1)−3=−1 separately.
Step 1 — Find f(1)
The middle piece gives f(1)=2(1)−3=−1. This is the target value both one-sided limits must reach.
Step 2 — Left-hand limit fixes a
limx→1−(ax+7)=a+7
Setting this equal to −1: a+7=−1⟹a=−8. …
🎓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.