Continuity & Differentiability: PYQ Walkthrough (8)

medium 3 min read

Question

(JEE Main 2024 PYQ — paraphrased) Find the values of aa and bb such that the function

f(x)={ax+1if x3bx+3if x>3f(x) = \begin{cases} ax + 1 & \text{if } x \leq 3 \\ bx + 3 & \text{if } x > 3 \end{cases}

is differentiable at x=3x = 3.

Solution — Step by Step

For differentiability at x=3x = 3, the function must first be continuous there. Set:

limx3f(x)=limx3+f(x)=f(3)\lim_{x \to 3^-} f(x) = \lim_{x \to 3^+} f(x) = f(3)

Left limit: a(3)+1=3a+1a(3) + 1 = 3a + 1. Right limit: b(3)+3=3b+3b(3) + 3 = 3b + 3. Equate:

3a+1=3b+3    3a3b=2    ab=23...(i)3a + 1 = 3b + 3 \implies 3a - 3b = 2 \implies a - b = \frac{2}{3} \quad \text{...(i)}

Left derivative at x=3x = 3: f(x)=af'(x) = a for x<3x < 3, so f(3)=af'(3^-) = a.

Right derivative at x=3x = 3: f(x)=bf'(x) = b for x>3x > 3, so f(3+)=bf'(3^+) = b.

For differentiability:

a=b...(ii)a = b \quad \text{...(ii)}

From (ii), a=ba = b. Substitute into (i): aa=2/3    0=2/3a - a = 2/3 \implies 0 = 2/3, which is impossible.

So there are no values of a,ba, b that make ff differentiable at x=3x = 3.

If the question instead asks for continuity, any a,ba, b with ab=2/3a - b = 2/3 works (e.g., a=1,b=1/3a = 1, b = 1/3).

Why This Works

Differentiability at a point requires:

  1. Continuity at that point.
  2. Equal left- and right-hand derivatives.

For piecewise functions, both conditions give equations relating the parameters. If the system is consistent, you get unique parameter values; if inconsistent, the function cannot be made differentiable.

In this problem, the right branch has a “+3” extra constant that creates a jump that cannot be reconciled with equal slopes — geometrically, the right line is shifted up, so even with equal slopes, the curves don’t meet.

For JEE Main piecewise differentiability questions, always set continuity first, then derivatives. Both conditions are needed — neither is sufficient alone.

Alternative Method

Geometric: the left branch is a line through (3,3a+1)(3, 3a+1) with slope aa. The right is a line through (3,3b+3)(3, 3b+3) with slope bb. For the lines to merge into one differentiable curve at x=3x = 3, both their values and slopes must agree at x=3x = 3 — same conditions.

Common Mistake

Students apply only the differentiability condition a=ba = b and don’t check continuity. They report ”a=ba = b, any value works” — which is wrong, because continuity additionally requires 3a+1=3b+33a + 1 = 3b + 3. The full check reveals the inconsistency.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next