Continuity and Differentiability — Tests, Chain Rule, Implicit Differentiation

Continuity and Differentiability — Tests, Chain Rule, Implicit Differentiation

9 min read

The Core Idea

Continuity and differentiability are about whether a function is “smooth” at a point. A continuous function has no breaks or jumps. A differentiable function has no sharp corners either — it’s smooth enough to have a tangent at every point.

This is one of the highest-weightage chapters in Class 12 maths. CBSE boards dedicate 8-10 marks to differentiation (this chapter + applications). JEE Main tests 1-2 questions on continuity/differentiability checks, and the chain rule is used in nearly every calculus problem.

Decision flowchart:

  1. Is ff defined at aa? If no — not continuous.
  2. Does limxaf(x)\lim_{x \to a} f(x) exist? If no — not continuous.
  3. Does the limit equal f(a)f(a)? If no — not continuous. If yes — continuous at aa.
  4. Does LHD equal RHD? If no — not differentiable (corner or cusp). If yes — differentiable at aa (has a tangent line).

Key Terms & Definitions

Continuity at a point — A function ff is continuous at x=ax = a if: (1) f(a)f(a) is defined, (2) limxaf(x)\lim_{x \to a} f(x) exists, and (3) limxaf(x)=f(a)\lim_{x \to a} f(x) = f(a).

Left-hand derivative (LHD)limh0f(a+h)f(a)h\lim_{h \to 0^-} \frac{f(a+h) - f(a)}{h}.

Right-hand derivative (RHD)limh0+f(a+h)f(a)h\lim_{h \to 0^+} \frac{f(a+h) - f(a)}{h}.

Differentiabilityff is differentiable at x=ax = a if LHD = RHD. A differentiable function is always continuous, but a continuous function may not be differentiable (e.g., x|x| at x=0x = 0).


Differentiation Rules

FunctionDerivative
xnx^nnxn1nx^{n-1}
exe^xexe^x
lnx\ln x1x\frac{1}{x}
sinx\sin xcosx\cos x
cosx\cos xsinx-\sin x
tanx\tan xsec2x\sec^2 x
axa^xaxlnaa^x \ln a

If y=f(g(x))y = f(g(x)), then:

dydx=f(g(x))g(x)\frac{dy}{dx} = f'(g(x)) \cdot g'(x)

In words: differentiate the outer function (keeping inner as is), then multiply by the derivative of the inner function.

Product Rule: (uv)=uv+uv(uv)' = u'v + uv'

Quotient Rule: (uv)=uvuvv2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}

When yy is not explicitly written as a function of xx, differentiate both sides w.r.t. xx, treating yy as a function of xx. Every time you differentiate a yy-term, multiply by dydx\frac{dy}{dx}.

For y=f(x)g(x)y = f(x)^{g(x)} or products of many functions:

  1. Take ln\ln of both sides: lny=g(x)lnf(x)\ln y = g(x) \ln f(x)
  2. Differentiate both sides
  3. Multiply both sides by yy

Solved Examples — Easy to Hard

Example 1 (Easy — CBSE)

Differentiate y=sin(3x2+5)y = \sin(3x^2 + 5).

By chain rule: dydx=cos(3x2+5)6x=6xcos(3x2+5)\frac{dy}{dx} = \cos(3x^2+5) \cdot 6x = \mathbf{6x\cos(3x^2+5)}

Example 2 (Medium — CBSE)

Find dydx\frac{dy}{dx} if x2+y2=25x^2 + y^2 = 25.

Differentiating implicitly: 2x+2ydydx=02x + 2y\frac{dy}{dx} = 0

dydx=xy\frac{dy}{dx} = \mathbf{-\frac{x}{y}}

Example 3 (Medium — JEE Main)

Differentiate y=xsinxy = x^{\sin x}.

Take ln\ln: lny=sinxlnx\ln y = \sin x \cdot \ln x.

Differentiate: 1ydydx=cosxlnx+sinx1x\frac{1}{y}\frac{dy}{dx} = \cos x \cdot \ln x + \sin x \cdot \frac{1}{x}

dydx=xsinx(cosxlnx+sinxx)\frac{dy}{dx} = x^{\sin x}\left(\cos x \cdot \ln x + \frac{\sin x}{x}\right)

Example 4 (Hard — JEE Main)

Check continuity and differentiability of f(x)=x1+x2f(x) = |x-1| + |x-2| at x=1x = 1 and x=2x = 2.

For x<1x < 1: f(x)=(1x)+(2x)=32xf(x) = (1-x) + (2-x) = 3 - 2x

For 1x<21 \leq x < 2: f(x)=(x1)+(2x)=1f(x) = (x-1) + (2-x) = 1

For x2x \geq 2: f(x)=(x1)+(x2)=2x3f(x) = (x-1) + (x-2) = 2x - 3

At x=1x = 1: LHL =32=1= 3-2 = 1, RHL =1= 1, f(1)=1f(1) = 1. Continuous. LHD =2= -2, RHD =0= 0. Not differentiable (corner).

At x=2x = 2: LHL =1= 1, RHL =1= 1, f(2)=1f(2) = 1. Continuous. LHD =0= 0, RHD =2= 2. Not differentiable (corner).


Exam-Specific Tips

CBSE Board: Expect 4-6 marks from this chapter. Typical questions: check continuity at a point for a piecewise function, differentiate using chain rule, implicit differentiation, or logarithmic differentiation. Rolle’s theorem and LMVT also appear.

JEE Main: Continuity + differentiability of piecewise and modulus functions is tested regularly. Also: finding f(x)f'(x) for composite or parametric functions, and questions where differentiability implies some condition on parameters.


Common Mistakes to Avoid

Mistake 1 — Assuming continuous implies differentiable. x|x| is continuous at x=0x = 0 but not differentiable there. Differentiability is a stronger condition.

Mistake 2 — Forgetting the chain rule. When differentiating sin(5x)\sin(5x), students write cos(5x)\cos(5x) instead of 5cos(5x)5\cos(5x). Always multiply by the derivative of the inner function.

Mistake 3 — Missing dy/dxdy/dx in implicit differentiation. Every time you differentiate a term involving yy, you must attach dy/dxdy/dx. Missing it makes the entire solution wrong.

Mistake 4 — Wrong sign in the quotient rule. It’s uvuvu'v - uv' (numerator derivative first, then subtract). Swapping gives the wrong sign.

Mistake 5 — Not checking both LHD and RHD at suspect points. For piecewise functions, you must check left and right limits AND left and right derivatives at every breakpoint.


Practice Questions

Q1. Differentiate y=etanxy = e^{\tan x}.

dy/dx=etanxsec2xdy/dx = e^{\tan x} \cdot \sec^2 x.

Q2. Is f(x)=xxf(x) = \frac{|x|}{x} continuous at x=0x = 0?

f(x)=1f(x) = 1 for x>0x > 0 and f(x)=1f(x) = -1 for x<0x < 0. f(0)f(0) is undefined. Not continuous (function not defined at 0, and limits from left and right don’t match).

Q3. Find dy/dxdy/dx if sin2x+cos2y=1\sin^2 x + \cos^2 y = 1.

2sinxcosx+2cosy(siny)dydx=02\sin x \cos x + 2\cos y(-\sin y)\frac{dy}{dx} = 0. So dydx=sin2x2sinycosy=sin2xsin2y\frac{dy}{dx} = \frac{\sin 2x}{2\sin y \cos y} = \frac{\sin 2x}{\sin 2y}.

Q4. Differentiate y=(lnx)xy = (\ln x)^x.

lny=xln(lnx)\ln y = x \ln(\ln x). Differentiate: 1ydydx=ln(lnx)+xxlnx=ln(lnx)+1lnx\frac{1}{y}\frac{dy}{dx} = \ln(\ln x) + \frac{x}{x \ln x} = \ln(\ln x) + \frac{1}{\ln x}. So dydx=(lnx)x[ln(lnx)+1lnx]\frac{dy}{dx} = (\ln x)^x \left[\ln(\ln x) + \frac{1}{\ln x}\right].

Q5. Find the value of kk if f(x)=kx+1f(x) = kx + 1 for x5x \leq 5 and f(x)=3x5f(x) = 3x - 5 for x>5x > 5, given that ff is continuous at x=5x = 5.

Continuity requires k(5)+1=3(5)5=10k(5) + 1 = 3(5) - 5 = 10. So 5k=95k = 9, giving k=9/5k = 9/5.

Q6. Differentiate y=sin1(2x1x2)y = \sin^{-1}(2x\sqrt{1-x^2}).

Put x=sinθx = \sin\theta. Then 2sinθcosθ=sin2θ2\sin\theta\cos\theta = \sin 2\theta. So y=2sin1xy = 2\sin^{-1}x. dy/dx=21x2dy/dx = \frac{2}{\sqrt{1-x^2}} (for x1/2|x| \leq 1/\sqrt{2}).

Q7. If x=acos3θx = a\cos^3\theta, y=asin3θy = a\sin^3\theta, find dy/dxdy/dx.

dx/dθ=3acos2θsinθdx/d\theta = -3a\cos^2\theta \sin\theta. dy/dθ=3asin2θcosθdy/d\theta = 3a\sin^2\theta \cos\theta. dy/dx=3asin2θcosθ3acos2θsinθ=tanθdy/dx = \frac{3a\sin^2\theta \cos\theta}{-3a\cos^2\theta \sin\theta} = -\tan\theta.

Q8. Verify Rolle’s theorem for f(x)=x25x+6f(x) = x^2 - 5x + 6 on [2,3][2, 3].

f(2)=410+6=0f(2) = 4 - 10 + 6 = 0, f(3)=915+6=0f(3) = 9 - 15 + 6 = 0. ff is polynomial so continuous and differentiable. f(x)=2x5=0f'(x) = 2x - 5 = 0 gives x=5/2(2,3)x = 5/2 \in (2, 3). Rolle’s theorem verified.


FAQs

Can a function be differentiable but not continuous?

No. Differentiability at a point requires continuity at that point. If a function is differentiable, it’s automatically continuous.

What does the derivative represent geometrically?

The derivative f(a)f'(a) is the slope of the tangent line to the curve y=f(x)y = f(x) at the point x=ax = a.

When do we use logarithmic differentiation?

When the function has a variable in both the base and the exponent (xxx^x, xsinxx^{\sin x}), or when differentiating a product of many functions.

What is the second derivative test?

f(a)>0f''(a) > 0 means the function has a local minimum at aa. f(a)<0f''(a) < 0 means a local maximum. f(a)=0f''(a) = 0 is inconclusive.

What is Rolle’s theorem?

If ff is continuous on [a,b][a, b], differentiable on (a,b)(a, b), and f(a)=f(b)f(a) = f(b), then there exists at least one c(a,b)c \in (a, b) where f(c)=0f'(c) = 0.


Additional Concepts

Mean Value Theorem (LMVT)

If ff is continuous on [a,b][a,b] and differentiable on (a,b)(a,b), there exists c(a,b)c \in (a,b) such that:

f(c)=f(b)f(a)baf'(c) = \frac{f(b) - f(a)}{b - a}

Geometrically: the tangent at some point cc is parallel to the secant joining (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)).

Rolle’s theorem is LMVT with f(a)=f(b)f(a) = f(b) — the secant is horizontal, so the tangent is too.

Higher-order derivatives

The second derivative f(x)f''(x) tells us about concavity:

  • f(x)>0f''(x) > 0: concave up (curve bends upward, like a cup)
  • f(x)<0f''(x) < 0: concave down (curve bends downward, like a cap)
  • f(x)=0f''(x) = 0: possible inflection point (concavity changes)

Derivatives of inverse trig functions

FunctionDerivative
sin1x\sin^{-1}x11x2\frac{1}{\sqrt{1-x^2}}
cos1x\cos^{-1}x11x2\frac{-1}{\sqrt{1-x^2}}
tan1x\tan^{-1}x11+x2\frac{1}{1+x^2}
cot1x\cot^{-1}x11+x2\frac{-1}{1+x^2}
sec1x\sec^{-1}x$\frac{1}{
csc1x\csc^{-1}x$\frac{-1}{

Parametric differentiation

If x=f(t)x = f(t) and y=g(t)y = g(t):

dydx=dy/dtdx/dt=g(t)f(t)\frac{dy}{dx} = \frac{dy/dt}{dx/dt} = \frac{g'(t)}{f'(t)}

Example: x=acosθx = a\cos\theta, y=asinθy = a\sin\theta.

dydx=acosθasinθ=cotθ\frac{dy}{dx} = \frac{a\cos\theta}{-a\sin\theta} = -\cot\theta

Additional Practice Questions

Q9. Verify LMVT for f(x)=x2+2x+3f(x) = x^2 + 2x + 3 on [1,4][1, 4].

f(1)=6f(1) = 6, f(4)=27f(4) = 27. f(4)f(1)41=213=7\frac{f(4)-f(1)}{4-1} = \frac{21}{3} = 7. f(x)=2x+2=7    x=5/2=2.5(1,4)f'(x) = 2x + 2 = 7 \implies x = 5/2 = 2.5 \in (1,4). Verified.

Q10. Differentiate y=tan12x1x2y = \tan^{-1}\frac{2x}{1-x^2}.

Recognise: tan12x1x2=2tan1x\tan^{-1}\frac{2x}{1-x^2} = 2\tan^{-1}x (for |x| &lt; 1). So dydx=21+x2\frac{dy}{dx} = \frac{2}{1+x^2}.

Summary of When to Use Each Differentiation Technique

TechniqueWhen to useExample
Chain ruleComposite functionssin(ex)\sin(e^x), ln(cosx)\ln(\cos x)
Product ruleProduct of two functionsx2sinxx^2 \sin x, exlnxe^x \ln x
Quotient ruleRatio of two functionssinxx2+1\frac{\sin x}{x^2 + 1}
Implicityy not isolatedx2+y2=1x^2 + y^2 = 1
LogarithmicVariable base and exponentxxx^x, (sinx)cosx(\sin x)^{\cos x}
Parametricx=f(t)x = f(t), y=g(t)y = g(t)x=acostx = a\cos t, y=bsinty = b\sin t

When you see a function and cannot decide which rule to use, ask: is it a composition (chain), a product (product rule), a ratio (quotient rule), or does it have the variable in both base and exponent (logarithmic)? This decision tree covers 95% of differentiation problems.

Practice Questions