Continuity & Differentiability: Tricky Questions Solved (9)

hard 2 min read

Question

Find the values of aa and bb such that the function

f(x)={ax+1if x1x2+bif x>1f(x) = \begin{cases} a x + 1 & \text{if } x \leq 1 \\ x^2 + b & \text{if } x > 1 \end{cases}

is differentiable at x=1x = 1.

Solution — Step by Step

For ff to be differentiable at x=1x = 1, it must first be continuous. So:

limx1f(x)=limx1+f(x)=f(1)\lim_{x \to 1^-} f(x) = \lim_{x \to 1^+} f(x) = f(1)

Left limit: a(1)+1=a+1a(1) + 1 = a + 1. Right limit: (1)2+b=1+b(1)^2 + b = 1 + b.

Continuity requires: a+1=1+b    a=ba + 1 = 1 + b \implies a = b.

The left and right derivatives at x=1x = 1 must be equal.

Left derivative: ddx(ax+1)=a\frac{d}{dx}(ax + 1) = a. Right derivative: ddx(x2+b)=2x\frac{d}{dx}(x^2 + b) = 2x, so at x=1x = 1, it’s 22.

Setting equal: a=2a = 2.

From step 1, b=a=2b = a = 2.

Final answer: a=2a = 2, b=2b = 2.

Why This Works

Differentiability is a stronger condition than continuity. We need the function to be continuous (no jump) AND smooth (no kink) at the boundary. That gives two equations in two unknowns.

If we only impose differentiability via derivatives, we’d miss the continuity condition. Always check continuity FIRST when stitching piecewise functions.

Alternative Method

Compute the left and right derivatives from the limit definition:

f(1)=limh0f(1+h)f(1)hf'_-(1) = \lim_{h \to 0^-} \frac{f(1+h) - f(1)}{h}

This is mechanically equivalent but slower. The piecewise-and-match approach above is cleaner.

For piecewise problems, the recipe is always: (1) match function values at the boundary, (2) match derivatives at the boundary. Two equations, solve for unknowns. Drill this — it appears in CBSE every year.

Common Mistake

Students sometimes only impose differentiability (a=2a = 2) and forget continuity. Without continuity, the “derivative” at the boundary doesn’t exist in the first place — derivatives require continuity as a prerequisite. So always do both.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next