Skip to content
NCERT Exemplar · Q67

Q.Find the values of pp and qq so that f(x)={x2+3x+p,x≤1qx+2,x>1f(x) = \begin{cases} x^2 + 3x + p, & x \le 1 \\ qx + 2, & x > 1 \end{cases} is differentiable at x=1x = 1.

Yanam CbseLong· 3mImportance★★★★★
Appeared in past exams:WBJEE 2025· Set math-2025· 1mreworded
88% · 247/281 Questions
🔒 Locked · start free trial →

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 →

For differentiability at a point, the function must first be continuous there, and then the left-hand and right-hand derivatives must match. Solving continuity gives p=q−2p = q - 2, and matching derivatives gives q=5q = 5, so p=3p = 3.

The key idea: differentiability at a point is a stronger condition than continuity. A function is differentiable at x=1x = 1 only if it is continuous there and its derivative from the left equals its derivative from the right. We'll enforce both conditions step by step.


1. Enforce continuity at x=1x = 1

For ff to be differentiable at x=1x = 1, it must first be continuous there. That means the left-hand limit, right-hand limit, and the function value at x=1x = 1 must all be equal.

The left-hand piece is f(x)=x2+3x+pf(x) = x^2 + 3x + p for x≤1x \le 1, so at x=1x = 1:

f(1)=12+3(1)+p=4+pf(1) = 1^2 + 3(1) + p = 4 + p

The left-hand limit as x→1−x \to 1^- is the same:

lim⁡x→1−f(x)=4+p\lim_{x \to 1^-} f(x) = 4 + p

The right-hand piece is f(x)=qx+2f(x) = qx + 2 for x>1x > 1, so the right-hand limit as x→1+x \to 1^+ is:

lim⁡x→1+f(x)=q(1)+2=q+2\lim_{x \to 1^+} f(x) = q(1) + 2 = q + 2

Continuity requires:

4+p=q+24 + p = q + 2

which simplifies to:

p=q−2(1)p = q - 2 \qquad(1)

Watch out

Many students stop here and think continuity alone is enough. But differentiability demands more — the slopes must also match.


2. Enforce equal derivatives from both sides

Now we need the left-hand derivative and the right-hand derivative at x=1x = 1 to be equal.

Left-hand derivative: For x≤1x \le 1, f(x)=x2+3x+pf(x) = x^2 + 3x + p. Differentiate:

f′(x)=2x+3f'(x) = 2x + 3

So the left-hand derivative at x=1x = 1 is:

f−′(1)=2(1)+3=5f'_-(1) = 2(1) + 3 = 5

Right-hand derivative: For x>1x > 1, f(x)=qx+2f(x) = qx + 2. Differentiate:

f′(x)=qf'(x) = q

So the right-hand derivative at x=1x = 1 is:

f+′(1)=qf'_+(1) = q

For differentiability, we need:

5=q5 = q …

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.