PYQ Vault

CBSE Class 12 Maths · Continuity and Differentiability

Differentiability and the Chain Rule

Checking whether a function has a derivative at a point by comparing its left and right hand derivatives, finding constants that make a function differentiable, differentiating composite functions by the chain rule, and differentiating one function with respect to another.

Why this matters

64 questions, forty-five of them from board papers from 2023 to 2026. The board checks differentiability at a point with left and right hand derivatives (|x − 5| and [x] at x = −3 in 2024, x|x| in 2025, a piecewise race track in 2026), asks which of |x|, |x| − x and x|x| are differentiable at 0 (2023, 2025), sets a case study on the L.H.D. and R.H.D. of a piecewise function (2023), asks for a and b that make a function differentiable (2023, 2024), and asks chain rule derivatives such as cos³(sec² 2t) (2024) and the derivative of one function with respect to another (2024, 2025). The textbook adds Example 21, Exercise 5.2, Miscellaneous Examples 39(i) and 43, and Miscellaneous Exercise questions 1, 2, 8, 19, 20 and 21.

Concept 1 of 4: Differentiability at a point: left and right hand derivatives

A function is differentiable at a point when its graph has one clear tangent there. A sharp corner, as in |x| at 0, gives one slope from the left and another from the right, so there is no derivative.

Definition

  • Left hand derivative: Lf′(c)=lim⁡h→0f(c−h)−f(c)−hLf'(c) = \lim_{h \to 0} \dfrac{f(c - h) - f(c)}{-h}. Right hand derivative: Rf′(c)=lim⁡h→0f(c+h)−f(c)hRf'(c) = \lim_{h \to 0} \dfrac{f(c + h) - f(c)}{h}. Here h>0h > 0.
  • The book writes both as lim⁡f(c+h)−f(c)h\lim \dfrac{f(c + h) - f(c)}{h}, with h tending to 0 from below for the left side; the two forms give the same value.
  • f is differentiable at c when both one-sided derivatives are finite and equal; then f′(c)f'(c) is their common value.
  • Theorem 3: if f is differentiable at c, it is continuous at c. The converse is false: ∣x∣|x| is continuous at 0, but its one-sided derivatives there are −1-1 and 1.
  • So if f is not continuous at c, it is not differentiable at c. Say so and stop.
  • Board layout: f(c)f(c), then the LHD, then the RHD, each limit on its own line, then the conclusion.

Differentiable at x = c

lim⁡h→0f(c−h)−f(c)−h=lim⁡h→0f(c+h)−f(c)h\lim_{h \to 0} \frac{f(c - h) - f(c)}{-h} = \lim_{h \to 0} \frac{f(c + h) - f(c)}{h}

Worked example

Check the differentiability of f(x)={8x−9,x<4x2+7,x≥4f(x) = \begin{cases} 8x - 9, & x < 4 \\ x^2 + 7, & x \ge 4 \end{cases} at x=4x = 4.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/3/1 · 22 (b)Moderate

Example 1 · Continuity and Differentiability · Differentiability and the Chain Rule

Check the differentiability of f(x)={x2+1,0≤x<13−x,1≤x≤2f(x) = \begin{cases} x^2 + 1, & 0 \le x < 1 \\ 3 - x, & 1 \le x \le 2 \end{cases} at x=1x = 1.

The minus sign in the LHD

In f(c−h)−f(c)−h\dfrac{f(c - h) - f(c)}{-h} the denominator is −h-h. Dropping that minus turns −1-1 into 1 and hides a corner.

Differentiating across a jump

If the pieces do not meet at the join, f is not continuous there, so it is not differentiable. Board 2025 set pieces giving −7-7 and −1-1 at x=−2x = -2: check continuity first.

Continuous but not differentiable

∣x−a∣|x - a| is continuous at a but not differentiable there. When an MCQ asks about both properties, decide each one separately.

Concept 2 of 4: Finding constants so that a function is differentiable

A function made of two pieces is differentiable at the join only if the pieces meet (continuity) and leave the join with the same slope (LHD = RHD). Each condition gives one equation, so two unknowns can be found.

Definition

  • Equation 1, continuity at c: the two pieces have the same value at c.
  • Equation 2, LHD = RHD: once the pieces meet at c, the one-sided derivatives are the derivatives of the two pieces at c.
  • Solve the two equations together. State both conditions in words before the algebra; each carries marks.
  • When each piece is a polynomial, the only point that needs checking is the join.

Two conditions at the join c

f1(c)=f2(c),f1′(c)=f2′(c)f_1(c) = f_2(c), \qquad f_1'(c) = f_2'(c)

Worked example

Find a and b if f(x)={ax2+b,x≤24x+1,x>2f(x) = \begin{cases} ax^2 + b, & x \le 2 \\ 4x + 1, & x > 2 \end{cases} is differentiable at x=2x = 2.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/2/1 · 25 (b)Moderate

Example 2 · Continuity and Differentiability · Differentiability and the Chain Rule

If f(x)={ax+b;0<x≤12x2−x;1<x<2f(x) = \begin{cases} ax + b & ; \quad 0 < x \le 1 \\ 2x^2 - x & ; \quad 1 < x < 2 \end{cases} is a differentiable function in (0, 2), then find the values of a and b.

One equation for two unknowns

LHD = RHD alone leaves one constant free. Continuity gives the second equation; without it you cannot finish.

Slopes of the pieces before continuity

Reading the one-sided derivatives as the derivatives of the pieces is valid only once the pieces meet at the join. Write the continuity equation first.

Concept 3 of 4: The chain rule

A composite such as sin⁡(x2)\sin(x^2) is a function inside a function. Differentiate the outside layer, keep the inside as it is, then multiply by the derivative of the inside. Repeat until you reach x.

Definition

  • Theorem 4 (chain rule): if f=v∘uf = v \circ u, t=u(x)t = u(x), and both dvdt\dfrac{dv}{dt} and dtdx\dfrac{dt}{dx} exist, then dfdx=dvdt⋅dtdx\dfrac{df}{dx} = \dfrac{dv}{dt} \cdot \dfrac{dt}{dx}.
  • For three layers, dfdx=dwds⋅dsdt⋅dtdx\dfrac{df}{dx} = \dfrac{dw}{ds} \cdot \dfrac{ds}{dt} \cdot \dfrac{dt}{dx}.
  • Work from the outside in, one factor for each layer, and write the final answer in x (NCERT Example 21).
  • sin⁡2(x3)\sin^2(x^3) means [sin⁡(x3)]2[\sin(x^3)]^2: three layers (the square, the sine, the cube).
  • The product and quotient rules still apply; use the chain rule inside each part.

Chain rule

dfdx=dvdt⋅dtdx\frac{df}{dx} = \frac{dv}{dt} \cdot \frac{dt}{dx}

Worked example

Differentiate y=(1+tan⁡3x)4y = (1 + \tan 3x)^4 with respect to x.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/4/1 · 22 (a)Moderate

Example 3 · Continuity and Differentiability · Differentiability and the Chain Rule

If y=cos⁡3(sec⁡22t)y = \cos^{3}(\sec^{2} 2t), find dydt\dfrac{dy}{dt}.

Dropping the inner derivative

ddxcos⁡(log⁡x+ex)=−sin⁡(log⁡x+ex)(1x+ex)\dfrac{d}{dx}\cos(\log x + e^x) = -\sin(\log x + e^x)\left(\dfrac{1}{x} + e^x\right). The board's MCQs list the answer without the inner factor as a wrong option.

Putting in the value too early

To find a derivative at x=ax = a, differentiate first and substitute last. Substituting first turns the function into a number, whose derivative is 0.

Concept 4 of 4: Derivative of one function with respect to another

To differentiate u with respect to v, when both are functions of x, find how fast each changes with x and divide. The x cancels out in the ratio.

Definition

  • Put u=f(x)u = f(x) and v=g(x)v = g(x). Then dudv=du/dxdv/dx\dfrac{du}{dv} = \dfrac{du/dx}{dv/dx}, where dvdx≠0\dfrac{dv}{dx} \ne 0.
  • NCERT uses this in Miscellaneous Example 43: sin⁡2x\sin^2 x with respect to ecos⁡xe^{\cos x}.
  • If u is already a simple function of v, such as u=vu = \sqrt{v}, differentiate in v directly.
  • With inverse trigonometric functions, simplify each one first (next page).

u with respect to v

dudv=du/dxdv/dx,dvdx≠0\frac{du}{dv} = \frac{du/dx}{dv/dx}, \quad \frac{dv}{dx} \ne 0

Worked example

Differentiate sin⁡x\sin x with respect to cos⁡x\cos x.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/6/1 · 22 (a)Moderate

Example 4 · Continuity and Differentiability · Differentiability and the Chain Rule

Differentiate e2x\sqrt{e^{\sqrt{2x}}} with respect to e2xe^{\sqrt{2x}} for x>0x > 0.

Writing du/dx

The derivative of u with respect to v is not dudx\dfrac{du}{dx}. Divide by dvdx\dfrac{dv}{dx}, or the answer is wrong by a whole factor.

Upside down

dudv\dfrac{du}{dv} has the derivative of u on top. The derivative of x2x^2 with respect to x3x^3 is 2x3x2=23x\dfrac{2x}{3x^2} = \dfrac{2}{3x}, not 3x2\dfrac{3x}{2}.

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 (4)

Watch out for (9)

Test yourself on Continuity and Differentiability

20 past CBSE Class 12 questions from this chapter, timed at 30 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.