Skip to content
GATEiit

GATE DA · Calculus and Optimization

Limit, continuity and differentiability

Evaluating limits (standard limits, L'Hôpital's rule, the 1 to the power infinity form), checking continuity and differentiability at a point, and the link between them, as GATE asks for piecewise and modulus functions.

Before you start

  • Functions of a single variable →

    You need domains, piecewise definitions, ∣x∣ and ⌊x⌋ before asking where they are continuous.

  • Rules of differentiation

    L'Hôpital's rule and differentiability checks use the product, quotient and chain rules.

  • Standard series expansions →

    Expanding ex, sin⁡x, cos⁡x near 0 is often the fastest way to a limit.

This topic comes before: Logistic regression, Maxima and minima, Multi-layer perceptron and feed-forward neural networks, Optimization involving a single variable, Taylor series

Concept notes

1. Limits: one-sided limits and standard results

lim⁡x→af(x)=L means f(x) gets arbitrarily close to L as x approaches a (from either side, without needing x=a). The value f(a) itself does not matter.

The left-hand limit (LHL) lim⁡x→a−f(x) and right-hand limit (RHL) lim⁡x→a+f(x) are taken from one side. The limit exists iff LHL and RHL both exist and are equal. Always check both sides for ∣x∣, ⌊x⌋, piecewise functions and 1/x-type terms.

Limits respect sums, products and quotients (when the denominator's limit is not 0) and continuous functions: lim⁡g(f(x))=g(lim⁡f(x)) if g is continuous.

Standard limit (x→0) Value
sin⁡xx, tan⁡xx 1
1−cos⁡xx2 12
ex−1x 1
ax−1x ln⁡a
ln⁡(1+x)x 1
(1+x)1/x e

As x→∞: (1+ax)x→ea, and for a ratio of polynomials only the leading terms matter. The squeeze theorem gives xsin⁡(1/x)→0 as x→0, since ∣xsin⁡(1/x)∣≤∣x∣.

2. Indeterminate forms and L'Hôpital's rule

Forms such as 00, ∞∞, 0⋅∞, ∞−∞, 1∞, 00 and ∞0 do not decide the limit by themselves.

L'Hôpital's rule: if fg gives 00 or ∞∞ at a, then lim⁡f(x)g(x)=lim⁡f′(x)g′(x), provided the right side exists. Differentiate numerator and denominator separately (not the quotient rule) and repeat while the form stays indeterminate.

Convert the other forms first:

  • 0⋅∞: write fg=f1/g.
  • ∞−∞: combine into one fraction, or rationalise (multiply by the conjugate for square roots).
  • 1∞: if f→1 and g→∞, then lim⁡fg=elim⁡g (f−1).
  • 00, ∞0: take logs, lim⁡fg=elim⁡gln⁡f.

Alternative to L'Hôpital: replace each function by its series near 0, e.g. e2x=1+2x+2x2+…, and keep terms up to the lowest power in the denominator.

3. Continuity

f is continuous at a if f(a) is defined and lim⁡x→af(x)=f(a), i.e. LHL = RHL = f(a). f is continuous on an interval if it is continuous at every point of it (one-sided at closed endpoints).

Types of discontinuity:

Type What happens Example at 0
Removable limit exists but ≠f(a) or f(a) undefined sin⁡xx
Jump LHL and RHL exist but differ ⌊x⌋ at integers, sign function
Infinite a one-sided limit is ±∞ 1x
Oscillatory no limit, keeps oscillating sin⁡(1/x)

Polynomials, ex, sin⁡x, cos⁡x are continuous everywhere; ln⁡x, rational functions and x are continuous on their domains. Sums, products, quotients (denominator ≠0) and compositions of continuous functions are continuous.

For a piecewise function, check continuity only at the joining points; set LHL = RHL = value there to find unknown constants.

Intermediate value theorem: if f is continuous on [a,b], it takes every value between f(a) and f(b). So if f(a) and f(b) have opposite signs, f has a root in (a,b). A continuous function on a closed interval also attains a maximum and a minimum.

4. Differentiability

f is differentiable at a if f′(a)=lim⁡h→0f(a+h)−f(a)h exists. Check the left derivative (LHD, h→0−) and right derivative (RHD, h→0+): differentiable iff both exist and are equal.

Key link: differentiable at a ⇒ continuous at a. The converse is false. So a discontinuous function is never differentiable, but a continuous one may still fail, at:

  • a corner: ∣x∣ at 0 has LHD =−1, RHD =1;
  • a vertical tangent: x1/3 at 0;
  • wild oscillation: xsin⁡(1/x) (with value 0 at 0) is continuous but not differentiable at 0, while x2sin⁡(1/x) is differentiable there with derivative 0.

Useful rules:

  • ∣g(x)∣ is not differentiable at a simple zero of g (where g changes sign with g′≠0). So ∣(x−1)(x−2)∣ has two such points.
  • x∣x∣ is differentiable at 0: the extra factor x smooths the corner.
  • For a piecewise function, at the join use continuity to get one equation and LHD = RHD for another; when each piece is a polynomial you can compare the derivatives of the pieces at the join.
slope −1slope +1y = |x|: corner at 0LHL = 1RHL = 2jump at 0: not continuous
Left: |x| is continuous at 0 but has a corner, so it is not differentiable there. Right: a jump means it is not even continuous.

Formulas to remember

Limit exists
lim⁡x→a−f(x)=lim⁡x→a+f(x)=L
Continuity at a
lim⁡x→a−f(x)=lim⁡x→a+f(x)=f(a)
Derivative at a
f′(a)=lim⁡h→0f(a+h)−f(a)h
L'Hôpital's ruleOnly for 00 or ∞∞ forms
lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)
1 to the power infinityWhen f→1 and g→∞
lim⁡f(x)g(x)=elim⁡g(x) (f(x)−1)
Exponential limit
lim⁡x→∞(1+ax)bx=eab
Trigonometric limits
lim⁡x→0sin⁡xx=1,lim⁡x→01−cos⁡xx2=12
Exponential and log limits
lim⁡x→0ax−1x=ln⁡a,lim⁡x→0ln⁡(1+x)x=1

Common mistakes

  • Applying L'Hôpital's rule when the form is not 00 or ∞∞, or using the quotient rule instead of differentiating top and bottom separately.
  • Checking only one side of a join in a piecewise, modulus or floor function.
  • Treating 1∞ as 1; it is elim⁡g(f−1).
  • Assuming continuity implies differentiability; ∣x∣ is the standard counter-example.
  • Counting a repeated zero of g as a corner of ∣g∣: ∣x2∣=x2 is smooth at 0.
  • Using the function's value f(a) to decide whether the limit exists; the limit ignores f(a).

Worked examples

Try each step yourself, then reveal the working.

Example 1: A 0/0 limit two ways

numerical

Evaluate lim⁡x→01−cos⁡xx2.

  1. Step 1: Check the form and apply L'Hôpital once.

    Try it on paper first.

Example 2: A 1 to the power infinity limit

numerical

Evaluate lim⁡x→∞(1+3x)2x.

  1. Step 1: Identify the form.

    Try it on paper first.

Example 3: Constants for a differentiable piecewise function

numerical

f(x)=x2 for x≤1 and f(x)=ax+b for x>1. Find a and b so that f is differentiable everywhere.

  1. Step 1: Where can things go wrong?

    Try it on paper first.

Example 4: Continuous but not differentiable

conceptual

At x=0, decide continuity and differentiability of ∣x∣, x∣x∣ and ⌊x⌋.

  1. Step 1: Check |x| from both sides.

    Try it on paper first.

Previous year questions

8 official GATE DA questions on this topic, newest first.

Practise these 8 PYQs →

Topic test

10 questions: up to 4 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.