Limits and standard limits, continuity and differentiability, mean value theorems, finding maxima and minima, and definite integration techniques for GATE.
Calculus in GATE CS is mostly one-variable and mostly one-mark: evaluate a limit, decide continuity or differentiability at a point, locate a maximum, find the value promised by the mean value theorem, or compute a definite integral. The questions reward knowing a handful of standard results and a few integration tricks.
Limits
limx→af(x)=L means f(x) gets arbitrarily close to L as x approaches a from either side. The limit exists iff the left limit and right limit both exist and are equal.
Standard limits
Limit
Value
limx→0xsinx
1
limx→0xtanx
1
limx→0x21−cosx
21
limx→0xex−1
1
limx→0xax−1
lna
limx→0xln(1+x)
1
limx→0(1+x)1/x
e
limx→∞(1+xa)x
ea
limx→ax−axn−an
nan−1
limx→∞exxk, limx→∞xklnx (k>0)
0
Techniques
Direct substitution. Try it first.
Factor and cancel for 00 in rational functions.
Rationalize when square roots appear.
L'Hospital's rule. For 00 or ∞∞, limgf=limg′f′ if the right side exists. Other indeterminate forms (0⋅∞, ∞−∞) must first be rewritten as a quotient.
Exponent forms1∞, 00, ∞0: write y=fg, take lny=glnf, find that limit, then exponentiate. For 1∞ there is a shortcut: if f→1 and g→∞, then limfg=elimg(f−1).
Rational functions at infinity. Compare degrees: numerator degree smaller gives 0, equal gives the ratio of leading coefficients, larger gives ±∞.
Series.sinx=x−6x3+⋯, cosx=1−2x2+24x4−⋯, ex=1+x+2x2+⋯, ln(1+x)=x−2x2+⋯. Useful when L'Hospital would need many rounds.
Continuity and differentiability
f is continuous at a if limx→af(x)=f(a): the limit exists and equals the value.
f is differentiable at a if
f′(a)=limh→0hf(a+h)−f(a)
exists, meaning the left and right derivatives exist and agree.
Differentiable implies continuous. The converse is false: ∣x∣ is continuous at 0 with left derivative −1 and right derivative +1.
Checks for piecewise functions at a joining point a:
Continuity: left limit, right limit and f(a) all equal.
Differentiability: also left and right derivatives equal. For pieces that are differentiable on each side, compare the one-sided derivative formulas at a.
Known examples at x=0 (with f(0)=0):
f(x)
Continuous
Differentiable
$
x
$
$x
x
$
xsin(1/x)
yes
no
x2sin(1/x)
yes
yes, f′(0)=0, but f′ not continuous at 0
⌊x⌋
no (jump)
no
x1/3
yes
no (vertical tangent)
∣f(x)∣ can fail to be differentiable where f crosses zero. ∣x−a∣ type terms create corners at a; (x−a)∣x−a∣ does not.
Mean value theorems
Rolle's theorem. If f is continuous on [a,b], differentiable on (a,b), and f(a)=f(b), then f′(c)=0 for some c∈(a,b).
Lagrange's mean value theorem. If f is continuous on [a,b] and differentiable on (a,b), then for some c∈(a,b)f′(c)=b−af(b)−f(a).
Geometric meaning: some tangent is parallel to the chord.
Cauchy's mean value theorem. Under the same conditions for f and g, with g′=0 on (a,b):
g′(c)f′(c)=g(b)−g(a)f(b)−f(a).
GATE questions either ask for c or ask which function fails the hypotheses. Hypothesis failures to look for: a discontinuity or a corner inside the interval (for example ∣x∣ on [−1,1] fails Rolle's conditions at 0, and indeed no c has f′(c)=0), or unequal end values for Rolle.
Useful consequence: if f′(x)=0 on an interval, f is constant there; if f′>0, f is strictly increasing.
Maxima and minima
One variable
Find critical points: where f′(x)=0 or f′ does not exist.
Second derivative test:f′′(c)<0 gives a local maximum, f′′(c)>0 a local minimum. If f′′(c)=0, use the first derivative sign change, or higher derivatives: if the first nonzero derivative at c has even order k, it is an extremum (max if f(k)(c)<0); if odd, it is an inflection point.
Absolute extrema on a closed interval [a,b]: evaluate f at every critical point inside and at both endpoints, then pick the largest and smallest. Endpoints are often the answer.
Two variables
For f(x,y), critical points satisfy fx=fy=0. With r=fxx, s=fxy, t=fyy at the point: