PYQ Vault

MHT-CET Maths · Limits

Continuity of Piecewise Functions — Junction Conditions and Parameter Systems

A piecewise function can only fail at the points where its formula changes — so continuity is one equation per junction, and two unknowns need two junctions.

Why this matters

19 PYQs at 53% HARD, and the most mechanical page in the chapter once the habit is fixed: find the junctions, write left = right = value at each, solve. The same three-piece trigonometric function has been set four times with the question changed only in what combination of a and b it asks for; the 1 − cos 4x family five times. The HARD tag here comes from junctions hidden inside an inequality or a limit that must be evaluated with different tools on the two sides — never from new theory.

Concept 1 of 5

One Junction: Left Limit = Right Limit = Value

Intuition

Two formulas glued at x=cx = c agree everywhere except possibly at the seam. Continuity at the seam is a single equation: the formula on the left, evaluated at cc, equals the formula on the right, evaluated at cc.

Definition

  • A piecewise function is continuous away from its junctions automatically (each piece is a nice formula on an open interval). Only the junctions need checking.
  • At a junction cc: compute lim⁡x→c−\lim_{x\to c^-} from the left piece, lim⁡x→c+\lim_{x\to c^+} from the right piece, and f(c)f(c) from whichever piece's inequality includes cc. Set all three equal.
  • With one unknown, one junction gives one equation — solve it.
  • When each piece is a polynomial or a trigonometric function, the one-sided limit is just substitution into that piece.
  • Check the domain: 'continuous on its domain' or 'on [−2,2][-2, 2]' means every junction inside that domain must be tested.

Junction condition

f(x)={g(x),x≤ch(x),x>c continuous at c  ⟺  g(c)=lim⁡x→c+h(x)f(x) = \begin{cases} g(x), & x \le c \\ h(x), & x > c \end{cases} \text{ continuous at } c \iff g(c) = \lim_{x\to c^+} h(x)

Worked example

f(x)=2x+kf(x) = 2x + k for x≤1x \le 1 and f(x)=x2+3f(x) = x^2 + 3 for x>1x > 1. Find kk if ff is continuous.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 1LimitsMODERATE
If f(x)={mx+1,x⩽π2sin⁡x+n,x>π2f(x) =\left\{ \begin{matrix} mx+ 1, & x\leqslant \frac{\pi}{2} \\ \sin x+ n, & x>\frac{\pi}{2} \end{matrix} \right., is continuous at x=π2,( m,n∈Z)x=\frac{\pi}{2},(\text{ }m,n \in\mathbb{Z}) then

[Q122 · 20 April Shift I · 2025]

Which piece owns the point?

f(c)f(c) comes from the piece whose inequality includes cc — the one written with ≤\le or ≥\ge. When a stem gives a separate value at cc (f(3)=a+bf(3) = a + b), that value is a THIRD quantity and must equal both one-sided limits.

Concept 2 of 5

Two Different Formulas Meeting at 0: Compute Each Side with Its Own Tool

Intuition

The paper's favourite: a trigonometric standard form on the left of 00, a surd on the right, and a constant α\alpha at 00. The two sides need two different tools — and both must come out equal to α\alpha.

Definition

  • Left of 00: typically 1−cos⁡kxx2→k22\dfrac{1 - \cos kx}{x^2} \to \dfrac{k^2}{2} (for k=4k = 4: 88), or sin⁡axx+3→a+3\dfrac{\sin ax}{x} + 3 \to a + 3.
  • Right of 00: typically a surd — x16+x−4\dfrac{\sqrt{x}}{\sqrt{16 + \sqrt{x}} - 4}: rationalise to 16+x+4→8\sqrt{16 + \sqrt{x}} + 4 \to 8; or 1+mx−1−mxx→m\dfrac{\sqrt{1 + mx} - \sqrt{1 - mx}}{x} \to m.
  • If both sides are pure limits, they must agree with each other; α\alpha is then their common value. If one side is a formula that can be substituted (2x+1x−2→−12\dfrac{2x + 1}{x - 2} \to -\dfrac{1}{2}), that value is the target for the other side.
  • When the unknown sits inside the left piece (kk in 1−cos⁡kx1 - \cos kx) and the right piece is fixed, solve k22=8\dfrac{k^2}{2} = 8, and read the sign from the options.

The two recurring one-sided limits

lim⁡x→0−1−cos⁡4xx2=8lim⁡x→0+x16+x−4=lim⁡x→0+(16+x+4)=8\lim_{x\to 0^-}\frac{1 - \cos 4x}{x^2} = 8 \qquad \lim_{x\to 0^+}\frac{\sqrt{x}}{\sqrt{16 + \sqrt{x}} - 4} = \lim_{x\to 0^+}\left(\sqrt{16 + \sqrt{x}} + 4\right) = 8

Worked example

f(x)=sin⁡3xxf(x) = \dfrac{\sin 3x}{x} for x<0x < 0, f(0)=αf(0) = \alpha, f(x)=e3x−1xf(x) = \dfrac{e^{3x} - 1}{x} for x>0x > 0. Find α\alpha if ff is continuous at 00.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 2LimitsHARD
Given f(x)={1−cos⁡4xx2,x<0α,x=0x16+x−4,x>0f(x) = \begin{cases} \frac{1-\cos 4x}{x^2}, & x<0 \\ \alpha, & x=0 \\ \frac{\sqrt{x}}{\sqrt{16+\sqrt{x}}-4}, & x>0 \end{cases}. If f(x)f(x) is continuous at x=0x=0, then value of α\alpha is

[Q120 · 13th May Shift 1 · 2024]

Substituting into the surd piece

x16+x−4\dfrac{\sqrt{x}}{\sqrt{16 + \sqrt{x}} - 4} is 00\dfrac{0}{0} at 00, not 00. Multiply by the conjugate 16+x+4\sqrt{16 + \sqrt{x}} + 4; the x\sqrt{x} cancels and the value is 88. Answering 00 or −8-8 (a sign slip in the conjugate) are the two distractors.

Concept 3 of 5

Exponential Junctions and the Given Value at 0

Intuition

When a piece is 3sin⁡x+5tan⁡xax−1\dfrac{3\sin x + 5\tan x}{a^{x} - 1}, its limit is 8log⁡a\dfrac{8}{\log a} — a formula in the unknown base. Equating it to the value given at 00 turns the unknown into a power of 22.

Definition

  • psin⁡x+qtan⁡xax−1→p+qlog⁡a\dfrac{p\sin x + q\tan x}{a^{x} - 1} \to \dfrac{p + q}{\log a}; px+qxcos⁡xbx−1→p+qlog⁡b\dfrac{px + qx\cos x}{b^{x} - 1} \to \dfrac{p + q}{\log b}.
  • Equate to the given f(0)f(0), say 2log⁡2\dfrac{2}{\log 2}: 8log⁡a=2log⁡2⇒log⁡a=4log⁡2=log⁡16⇒a=16\dfrac{8}{\log a} = \dfrac{2}{\log 2} \Rightarrow \log a = 4\log 2 = \log 16 \Rightarrow a = 16.
  • 8x−4x−2x+1x2=(4x−1)(2x−1)x2→log⁡4log⁡2=2(log⁡2)2\dfrac{8^{x} - 4^{x} - 2^{x} + 1}{x^2} = \dfrac{(4^{x} - 1)(2^{x} - 1)}{x^2} \to \log 4\log 2 = 2(\log 2)^2 on one side; a polynomial-plus-constant piece exsin⁡x+x+λlog⁡4e^{x}\sin x + x + \lambda\log 4 on the other simply substitutes to λlog⁡4=2λlog⁡2\lambda\log 4 = 2\lambda\log 2.
  • The answer is usually requested as eλe^{\lambda} or 500eλ500e^{\lambda}: with λ=log⁡2\lambda = \log 2, eλ=2e^{\lambda} = 2.

Exponential-denominator junction

lim⁡x→0psin⁡x+qtan⁡xax−1=p+qlog⁡alog⁡a=klog⁡2  ⟺  a=2k\lim_{x\to 0}\frac{p\sin x + q\tan x}{a^{x} - 1} = \frac{p + q}{\log a} \qquad \log a = k\log 2 \iff a = 2^{k}

Worked example

f(x)=ax−1xf(x) = \dfrac{a^{x} - 1}{x} for x<0x < 0, f(0)=2f(0) = 2, f(x)=e2x−1xf(x) = \dfrac{e^{2x} - 1}{x} for x>0x > 0. Find aa if ff is continuous at 00.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3LimitsHARD
If f(x)f(x) is continuous at point x=0x= 0 where f(x)={3sin⁡x+5tan⁡xax−1,x<02log⁡2,x=08x+2xcosx bx−1,x>0f(x) =\left\{ \begin{matrix} \frac{3\sin x+ 5\tan x}{a^{x}- 1} & ,x< 0 \\ \frac{2}{\log2} & ,x= 0 \\ \frac{8x+ 2xcosx}{{\text{ }b}^{x}- 1} & ,x> 0 \end{matrix} \right. then the values of aa and bb, respectively, are .

[Q146 · 19 April Shift I · 2025]

log a = 4 log 2 means a = 16, not a = 8

4log⁡2=log⁡24=log⁡164\log 2 = \log 2^4 = \log 16. The option a=8a = 8 comes from 2×42 \times 4; the exponent rule for logs is what the stem is testing.

Concept 4 of 5

Two Junctions, Two Unknowns: Set Up a Linear System

Intuition

Three pieces have two seams, and each seam gives one equation in aa and bb. Write both, solve the pair, then compute whatever combination the stem asks for — a−ba - b, 2a+3b2a + 3b, the ordered pair.

Definition

  • Count the junctions first. Three pieces → two junctions → two equations. Unknowns beyond that number cannot be determined by continuity alone.
  • The recurring paper: x+a2sin⁡xx + a\sqrt2\sin x on [0,π4][0, \frac{\pi}{4}], 2xcot⁡x+b2x\cot x + b on [π4,π2][\frac{\pi}{4}, \frac{\pi}{2}], acos⁡2x−bsin⁡xa\cos 2x - b\sin x on (π2,π](\frac{\pi}{2}, \pi]. At π4\frac{\pi}{4}: π4+a=π2+b\frac{\pi}{4} + a = \frac{\pi}{2} + b, i.e. a−b=π4a - b = \frac{\pi}{4}. At π2\frac{\pi}{2}: 2⋅π2⋅0+b=−a−b2\cdot\frac{\pi}{2}\cdot 0 + b = -a - b, i.e. a+2b=0a + 2b = 0. Hence a=π6a = \frac{\pi}{6}, b=−π12b = -\frac{\pi}{12}.
  • Junctions can be hidden in an inequality: ∣2x−3∣≥2|2x - 3| \ge 2 means x≤12x \le \frac12 or x≥52x \ge \frac52, so the seams are at 12\frac12 and 52\frac52. Solve the inequality before writing anything.
  • A seam that involves a limit rather than substitution (sin⁡axx+3\dfrac{\sin ax}{x} + 3 at 00) is handled with the standard form, then the equation is linear as usual.
  • Pieces like 2x2a\dfrac{2x^2}{a} and aa meeting at 11 give a2=2a^2 = 2 — a quadratic; carry both roots to the second junction and let it decide.

The two-seam system

seam c1: g(c1)=h(c1)seam c2: h(c2)=k(c2)⇒ two linear equations in a,b\text{seam } c_1:\ g(c_1) = h(c_1) \qquad \text{seam } c_2:\ h(c_2) = k(c_2) \qquad \Rightarrow\ \text{two linear equations in } a, b

Worked example

f(x)=x+af(x) = x + a for x≤0x \le 0, 2x+b2x + b for 0<x≤10 < x \le 1, 33 for x>1x > 1. Find aa and bb if ff is continuous.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 4LimitsHARD
The values of a and b, so that the function f(x)={x+a2sin⁡x,0≤x≤π42xcot⁡x+b,π4≤x≤π2acos⁡2x−bsin⁡x,π2<x≤πf(x)=\begin{cases}x+a\sqrt{2}\sin x,&0\leq x\leq\frac{\pi}{4}\\2x\cot x+b,&\frac{\pi}{4}\leq x\leq\frac{\pi}{2}\\a\cos2x-b\sin x,&\frac{\pi}{2}<x\leq\pi\end{cases} is continuous for 0≤x≤π0\leq x\leq\pi, are respectively given by

[Q120 · 10th May Shift 1 · 2023]

Applying continuity at only one seam

With two unknowns, one equation leaves a free parameter, and any option can be 'reached'. The 2022 sitting's own key was wrong for exactly this reason — it used one seam and printed 135\frac{13}{5} where two seams give 235\frac{23}{5}. Count the seams before solving.

Concept 5 of 5

The Squeeze: x² sin(1/x) Is Continuous for Any Coefficient

Intuition

sin⁡1x\sin\dfrac{1}{x} oscillates wildly near 00 and has no limit — but multiply it by x2x^2 and the oscillation is crushed between −x2-x^2 and x2x^2, both of which go to 00. The product is continuous at 00 no matter what constant sits in front.

Definition

  • Squeeze theorem: if g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) near cc and g,h→Lg, h \to L, then f→Lf \to L.
  • ∣sin⁡u∣≤1|\sin u| \le 1 for every uu, so ∣x2sin⁡1x∣≤x2→0\left|x^2\sin\dfrac{1}{x}\right| \le x^2 \to 0 and ∣xsin⁡1x∣≤∣x∣→0\left|x\sin\dfrac{1}{x}\right| \le |x| \to 0.
  • Consequence: f(x)=bx2sin⁡1xf(x) = bx^2\sin\dfrac{1}{x} for x>0x > 0, f(0)=0f(0) = 0, is continuous at 00 for every real bb — the parameter is unconstrained.
  • Likewise a2(x−∣x∣)a^2(x - |x|) for x<0x < 0 equals 2a2x→02a^2x \to 0 for every aa. A stem asking 'for which a,ba, b is ff continuous' can have the answer 'all real aa and bb'.
  • Without the crushing factor, sin⁡1x\sin\dfrac{1}{x} alone has no limit at 00 and no choice of f(0)f(0) makes it continuous.

Squeeze at 0

∣x2sin⁡1x∣≤x2→0 ⇒ lim⁡x→0x2sin⁡1x=0\left|x^2\sin\frac{1}{x}\right| \le x^2 \to 0 \ \Rightarrow\ \lim_{x\to 0} x^2\sin\frac{1}{x} = 0

Worked example

f(x)=xsin⁡1xf(x) = x\sin\dfrac{1}{x} for x≠0x \neq 0 and f(0)=0f(0) = 0. Is ff continuous at 00?
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 5LimitsMODERATE
If f(x)={a2(x−∣x∣),x<00,x=0bx2sin⁡1x,x>0f(x) = \begin{cases} a^2(x-|x|), & x < 0 \\ 0, & x = 0 \\ bx^2\sin\frac{1}{x}, & x > 0 \end{cases} is continuous at x=0x = 0, then

[Q108 · 11th May Shift 1 · 2023]

Looking for a constraint that is not there

When both pieces tend to 00 for every value of the parameters, the answer is 'any real aa, any real bb'. Options that restrict aa to rationals or irrationals are noise — nothing in the limit distinguishes them.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (5)

  • One Junction: Left Limit = Right Limit = Value

    Junction condition

    f(x)={g(x),x≤ch(x),x>c continuous at c  ⟺  g(c)=lim⁡x→c+h(x)f(x) = \begin{cases} g(x), & x \le c \\ h(x), & x > c \end{cases} \text{ continuous at } c \iff g(c) = \lim_{x\to c^+} h(x)
  • Two Different Formulas Meeting at 0: Compute Each Side with Its Own Tool

    The two recurring one-sided limits

    lim⁡x→0−1−cos⁡4xx2=8lim⁡x→0+x16+x−4=lim⁡x→0+(16+x+4)=8\lim_{x\to 0^-}\frac{1 - \cos 4x}{x^2} = 8 \qquad \lim_{x\to 0^+}\frac{\sqrt{x}}{\sqrt{16 + \sqrt{x}} - 4} = \lim_{x\to 0^+}\left(\sqrt{16 + \sqrt{x}} + 4\right) = 8
  • Exponential Junctions and the Given Value at 0

    Exponential-denominator junction

    lim⁡x→0psin⁡x+qtan⁡xax−1=p+qlog⁡alog⁡a=klog⁡2  ⟺  a=2k\lim_{x\to 0}\frac{p\sin x + q\tan x}{a^{x} - 1} = \frac{p + q}{\log a} \qquad \log a = k\log 2 \iff a = 2^{k}
  • Two Junctions, Two Unknowns: Set Up a Linear System

    The two-seam system

    seam c1: g(c1)=h(c1)seam c2: h(c2)=k(c2)⇒ two linear equations in a,b\text{seam } c_1:\ g(c_1) = h(c_1) \qquad \text{seam } c_2:\ h(c_2) = k(c_2) \qquad \Rightarrow\ \text{two linear equations in } a, b
  • The Squeeze: x² sin(1/x) Is Continuous for Any Coefficient

    Squeeze at 0

    ∣x2sin⁡1x∣≤x2→0 ⇒ lim⁡x→0x2sin⁡1x=0\left|x^2\sin\frac{1}{x}\right| \le x^2 \to 0 \ \Rightarrow\ \lim_{x\to 0} x^2\sin\frac{1}{x} = 0

Watch out for (5)

Drill every past-year question on this subtopic

19 questions from the bank — paginated, with cart and Word-export support.

Related notes