Continuity & Differentiability: Speed-Solving Techniques (2)

medium 2 min read

Question

For what values of aa and bb is the function f(x)={ax+bx1x2+3x>1f(x) = \begin{cases} ax + b & x \leq 1 \\ x^2 + 3 & x > 1 \end{cases} both continuous and differentiable at x=1x = 1? JEE Main 2023 pattern, CBSE 2024 boards.

Solution — Step by Step

For continuity, limx1f(x)=limx1+f(x)=f(1)\displaystyle\lim_{x \to 1^-} f(x) = \lim_{x \to 1^+} f(x) = f(1).

LHL: limx1(ax+b)=a+b\displaystyle\lim_{x \to 1^-}(ax + b) = a + b.

RHL: limx1+(x2+3)=4\displaystyle\lim_{x \to 1^+}(x^2 + 3) = 4.

Setting them equal: a+b=4a + b = 4. (Equation 1)

For x<1x < 1: f(x)=af'(x) = a, so f(1)=af'(1^-) = a.

For x>1x > 1: f(x)=2xf'(x) = 2x, so f(1+)=2f'(1^+) = 2.

For differentiability, left and right derivatives must agree:

a=2(Equation 2)a = 2 \quad \textbf{(Equation 2)}

From Equation 2: a=2a = 2. Substituting into Equation 1: 2+b=4    b=22 + b = 4 \implies b = 2.

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

Why This Works

A function is differentiable at a point only if it’s continuous there — but the converse is false. So we always check continuity first, then differentiability. Continuity gives us one equation, differentiability gives a second; with two unknowns (aa and bb), we can solve.

Geometrically: the line ax+bax + b must meet the parabola x2+3x^2 + 3 smoothly at x=1x = 1. “Smoothly” means same height (continuous) and same slope (differentiable). Two conditions, two unknowns.

Alternative Method

The “smooth join” interpretation gives the answer almost instantly. The parabola at x=1x = 1 has y=4y = 4 and slope y=21=2y' = 2 \cdot 1 = 2. So the line y=ax+by = ax + b at x=1x = 1 must have y=4y = 4 (giving a+b=4a + b = 4) and slope a=2a = 2. Solve: a=2,b=2a = 2, b = 2.

Students sometimes apply differentiability without first checking continuity. If continuity fails, differentiability automatically fails — but answering “differentiable” without verifying both conditions gets zero credit on CBSE boards.

For piecewise problems with three or more pieces, you’ll have multiple junction points and possibly multiple unknowns. Set up one continuity and one differentiability equation per junction, then solve the system.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next