∑GATE DA Atlas

Continuity, Differentiability and the Mean Value Theorems

Continuity at a point and on an interval, the kinds of discontinuity, the intermediate and extreme value theorems, the derivative as a limit, differentiability vs continuity, derivative rules (product, quotient, chain, implicit, logarithmic), derivatives of the functions used in ML, Rolle's theorem and the mean value theorem.

Section 310 practice questions

Continuity

ff is continuous at aa if

lim⁡x→af(x)=f(a),\lim_{x\to a}f(x) = f(a),

which packs three conditions: f(a)f(a) is defined, the limit exists, and they are equal. ff is continuous on an interval if it is continuous at every point (one-sided at closed endpoints).

Polynomials, exe^x, sin⁡\sin, cos⁡\cos are continuous everywhere; rational functions, ln⁡\ln,  \sqrt{\ } and tan⁡\tan are continuous on their domains. Sums, products, quotients (where the denominator ≠0\ne 0) and compositions of continuous functions are continuous.

Types of discontinuity

TypeBehaviourExample
Removablelimit exists but ≠f(a)\ne f(a) or f(a)f(a) undefinedx2−1x−1\frac{x^2 - 1}{x - 1} at x=1x = 1
Jumpboth one-sided limits exist but differ⌊x⌋\lfloor x\rfloor at integers; the step function
Infinitea one-sided limit is ±∞\pm\infty1/x1/x at 0
Oscillatingno limitsin⁡(1/x)\sin(1/x) at 0

Two theorems about continuous functions on [a,b][a, b]

  • Intermediate value theorem: ff takes every value between f(a)f(a) and f(b)f(b). In particular, if f(a)f(a) and f(b)f(b) have opposite signs, ff has a root in (a,b)(a, b) — the basis of the bisection method.
  • Extreme value theorem: ff attains a maximum and a minimum on [a,b][a, b]. (Fails on open intervals: 1/x1/x on (0,1)(0, 1).)

The derivative

f′(a)=lim⁡h→0f(a+h)−f(a)h,f'(a) = \lim_{h\to0}\frac{f(a + h) - f(a)}{h},

the slope of the tangent line and the instantaneous rate of change. ff is differentiable at aa if this limit exists (left and right derivatives exist and agree).

Differentiable ⇒ continuous, never the reverse. Places where a continuous function fails to be differentiable: corners (∣x∣\lvert x\rvert, ReLU at 0), cusps (x2/3x^{2/3}), vertical tangents (x1/3x^{1/3}).

Differentiation rules

RuleFormula
Linearity(af+bg)′=af′+bg′(af + bg)' = af' + bg'
Product(fg)′=f′g+fg′(fg)' = f'g + fg'
Quotient(fg)′=f′g−fg′g2\left(\frac fg\right)' = \frac{f'g - fg'}{g^2}
Chain(f(g(x)))′=f′(g(x)) g′(x)(f(g(x)))' = f'(g(x))\,g'(x)
Inverse function(f−1)′(y)=1f′(x)(f^{-1})'(y) = \frac{1}{f'(x)} where y=f(x)y = f(x)
Logarithmicfor y=uvy = u^v: y′y=v′ln⁡u+vu′u\frac{y'}{y} = v'\ln u + v\frac{u'}{u}
f(x)f(x)f′(x)f'(x)
xnx^nnxn−1nx^{n-1}
exe^x, axa^xexe^x, axln⁡aa^x\ln a
ln⁡x\ln x, log⁡ax\log_a x1x\frac1x, 1xln⁡a\frac{1}{x\ln a}
sin⁡x\sin x, cos⁡x\cos x, tan⁡x\tan xcos⁡x\cos x, −sin⁡x-\sin x, sec⁡2x\sec^2x
σ(x)=11+e−x\sigma(x) = \frac{1}{1 + e^{-x}}σ(x)(1−σ(x))\sigma(x)(1 - \sigma(x))
tanh⁡x\tanh x1−tanh⁡2x1 - \tanh^2x
ln⁡(1+ex)\ln(1 + e^x) (softplus)σ(x)\sigma(x)
max⁡(0,x)\max(0, x) (ReLU)00 for x<0x < 0, 11 for x>0x > 0

The chain rule is the mathematical core of backpropagation: the gradient of a composition is the product of local derivatives along the path — see neural networks.

Implicit differentiation: differentiate both sides of F(x,y)=0F(x, y) = 0 treating yy as y(x)y(x). For x2+y2=25x^2 + y^2 = 25: 2x+2yy′=0⇒y′=−x/y2x + 2yy' = 0 \Rightarrow y' = -x/y.

Higher derivatives f′′f'', f′′′f''', … describe curvature and appear in Taylor series and the second-derivative test.

Rolle's theorem and the mean value theorem

Rolle: 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 f′(c)=0f'(c) = 0 for some c∈(a,b)c \in (a, b).

Mean value theorem (Lagrange): under the same smoothness conditions,

f′(c)=f(b)−f(a)b−afor some c∈(a,b).f'(c) = \frac{f(b) - f(a)}{b - a}\quad\text{for some } c\in(a, b).

Somewhere the instantaneous slope equals the average slope. Consequences:

  • f′=0f' = 0 on an interval ⇒ ff is constant; f′>0f' > 0 ⇒ strictly increasing; f′<0f' < 0 ⇒ strictly decreasing.
  • ∣f(b)−f(a)∣≤M∣b−a∣\lvert f(b) - f(a)\rvert \le M\lvert b - a\rvert if ∣f′∣≤M\lvert f'\rvert \le M (Lipschitz bounds, used in convergence proofs for gradient descent).

Cauchy's MVT: f′(c)g′(c)=f(b)−f(a)g(b)−g(a)\frac{f'(c)}{g'(c)} = \frac{f(b) - f(a)}{g(b) - g(a)} — the theorem behind L'Hôpital's rule.

Quick revision

Practice questions

GATE-style questions: 3 one-mark and 7 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.

Q1MCQ1 mark

The function f(x)=∣x∣f(x) = \lvert x\rvert at x=0x = 0 is

Q2NAT2 marks

f(x)=kx+1f(x) = kx + 1 for x≤2x \le 2 and f(x)=x2f(x) = x^2 for x>2x > 2. The value of kk that makes ff continuous at x=2x = 2 is ______.

Q3NAT2 marks

f(x)=ax+bf(x) = ax + b for x<1x < 1 and f(x)=x2f(x) = x^2 for x≥1x \ge 1. If ff is differentiable at x=1x = 1, then b=b = ______.

Q4NAT1 mark

The derivative of x3ln⁡xx^3\ln x at x=1x = 1 is ______.

Q5NAT2 marks

For f(x)=x2f(x) = x^2 on [1,3][1, 3], the point c∈(1,3)c \in (1, 3) guaranteed by the mean value theorem is c=c = ______.

Q6MSQ2 marks

Which statements are true?

One or more options are correct.

Q7NAT2 marks

The derivative of the sigmoid function σ(x)=11+e−x\sigma(x) = \dfrac{1}{1 + e^{-x}} at x=0x = 0 is ______.

Q8MCQ1 mark

ff is continuous on [0,1][0, 1] with f(0)=−1f(0) = -1 and f(1)=2f(1) = 2. Which conclusion is guaranteed?

Q9NAT2 marks

For f(x)=x3−3xf(x) = x^3 - 3x on [0,3][0, \sqrt3], the point c∈(0,3)c \in (0, \sqrt3) given by Rolle's theorem is ______.

Q10NAT2 marks

The derivative of f(x)=xxf(x) = x^x at x=ex = e is ______ (round to one decimal).