Skip to content
GATEiit

GATE CSE · Engineering Mathematics

Limits, continuity and differentiability

Evaluating limits (standard limits, indeterminate forms, L'Hôpital's rule), testing continuity and differentiability at a point, and spotting where a function with modulus or pieces fails to be differentiable.

Before you start

  • Standard derivatives and series

    Limits are often settled by the series of sin⁡x, cos⁡x, ex and ln⁡(1+x) near 0.

  • Modulus and piecewise functions

    Most continuity and differentiability questions are built from ∣x∣, floor and piecewise definitions.

This topic comes before: Integration, Maxima and minima, Mean value theorem

Concept notes

1. Limits and the standard limits

lim⁡x→af(x)=L means f(x) gets as close to L as we like when x is close enough to a (but x≠a). The value f(a) itself does not matter.

The limit exists only when the left-hand limit lim⁡x→a−f(x) and the right-hand limit lim⁡x→a+f(x) both exist and are equal. For floor, modulus and piecewise functions, always find both.

Standard limits (use them directly):

Limit Value
lim⁡x→0sin⁡xx, lim⁡x→0tan⁡xx 1
lim⁡x→01−cos⁡xx2 12
lim⁡x→0ex−1x, lim⁡x→0ln⁡(1+x)x 1
lim⁡x→0ax−1x ln⁡a
lim⁡x→0(1+x)1/x, lim⁡x→∞(1+1x)x e
lim⁡x→axn−anx−a nan−1

For a ratio of polynomials as x→∞, divide by the highest power: the limit is the ratio of leading coefficients if the degrees are equal, 0 if the denominator has the higher degree, and ±∞ otherwise.

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

The forms 00, ∞∞, 0⋅∞, ∞−∞, 1∞, 00 and ∞0 are indeterminate: the answer depends on the functions, not the form.

L'Hôpital's rule: if f(x)g(x) gives 00 or ∞∞ at a, then lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x) provided the right side exists. Differentiate the top and the bottom separately (not the quotient rule). Repeat while the form stays indeterminate. Check the form before every use.

Reduce the other forms first:

  • 0⋅∞: write fg=f1/g.
  • ∞−∞: take a common denominator.
  • 1∞: if f→1 and g→∞, then lim⁡fg=elim⁡g (f−1).
  • 00, ∞0: take logs, ln⁡y=gln⁡f, find that limit, then exponentiate.

Series shortcut: near 0, sin⁡x=x−x36+…, cos⁡x=1−x22+…, ex=1+x+x22+…, tan⁡x=x+x33+…. Replace each function by its first few terms and cancel; this is often faster than applying L'Hôpital three times.

3. Continuity

f is continuous at a when three things hold:

  1. f(a) is defined,
  2. lim⁡x→af(x) exists (left and right limits equal),
  3. the limit equals f(a).

Kinds of discontinuity:

Kind What happens Example at 0
Removable limit exists but ≠f(a) or f(a) undefined sin⁡xx
Jump left and right limits exist but differ ⌊x⌋ at an integer
Infinite a one-sided limit is ±∞ 1x
Oscillatory no limit, the function keeps oscillating sin⁡1x

Polynomials, ex, sin⁡x, cos⁡x are continuous everywhere; sums, products, compositions of continuous functions are continuous, and so is a quotient where the denominator is non-zero.

Intermediate value theorem: if f is continuous on [a,b] and k lies between f(a) and f(b), then f(c)=k for some c∈[a,b]. In particular, a sign change of a continuous f means a root in between.

To make a piecewise function continuous at a joining point, set the left limit, the right limit and the value equal and solve for the unknown constants.

y = |x|: continuous, corner at 0 jump: left limit ≠ right limit 0 a slope −1 slope +1
Left: $|x|$ is continuous at 0 but has a corner, so it is not differentiable there. Right: a jump discontinuity.

4. Differentiability

f is differentiable at a if f′(a)=lim⁡h→0f(a+h)−f(a)h exists. This needs the left derivative (h→0−) and the right derivative (h→0+) to be finite and equal.

Key fact: differentiable ⇒ continuous. The converse is false: ∣x∣ is continuous at 0, but its left derivative is −1 and right derivative is +1. So a discontinuous function is never differentiable there; check continuity first.

Where differentiability fails:

  • Corner: one-sided derivatives differ, as in ∣x−a∣ at a.
  • Vertical tangent: derivative infinite, as in x1/3 at 0.
  • Discontinuity: any jump or hole.

Useful cases:

  • ∣f(x)∣ can fail only where f(x)=0; at a simple root (where f′≠0) it does fail. At a repeated root such as ∣x3∣ or x∣x∣ it stays differentiable.
  • xnsin⁡1x (with value 0 at 0): continuous for n≥1, differentiable at 0 for n≥2.
  • max⁡(f,g) and min⁡(f,g) can fail where f=g if their slopes differ there.

For a piecewise function joined at a: first match values (continuity), then match the derivatives from each side (differentiability).

Rules: (uv)′=u′v+uv′, (uv)′=u′v−uv′v2, and the chain rule ddxf(g(x))=f′(g(x)) g′(x).

Formulas to remember

Derivative at a point
f′(a)=lim⁡h→0f(a+h)−f(a)h
L'Hôpital's ruleOnly for 0/0 or ∞/∞
lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)
The 1^∞ formWhen f→1 and g→∞
lim⁡f g=elim⁡g (f−1)
Exponential limit
lim⁡x→∞(1+ax)bx=eab
Sine limit
lim⁡x→0sin⁡axbx=ab
Cosine limit
lim⁡x→01−cos⁡axx2=a22
Continuity at a
lim⁡x→a−f(x)=lim⁡x→a+f(x)=f(a)

Common mistakes

  • Applying L'Hôpital's rule when the form is not 0/0 or ∞/∞, or using the quotient rule instead of differentiating top and bottom separately.
  • Treating the 1^∞ form as 1; it usually gives a power of e.
  • Finding only one side of the limit for floor, modulus or piecewise functions.
  • Assuming a continuous function is differentiable; |x| is the standard counter-example.
  • Matching only the derivatives at a join and forgetting that the values must match first.

Worked examples

Try each step yourself, then reveal the working.

Example 1: A 0/0 limit by L'Hôpital and by series

numerical

Find lim⁡x→0x−sin⁡xx3.

  1. Step 1: Check the form.

    Try it on paper first.

Example 2: A 1-to-the-infinity limit

numerical

Find lim⁡x→0(1+3x)2/x.

  1. Step 1: Identify the form.

    Try it on paper first.

Example 3: Making a piecewise function differentiable

numerical

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

  1. Step 1: First make f continuous at 1.

    Try it on paper first.

Example 4: Where is a modulus function not differentiable?

conceptual

Find the points where f(x)=∣x−1∣+∣x−2∣ is not differentiable.

  1. Step 1: Find where each modulus term is zero.

    Try it on paper first.

Previous year questions

11 official GATE CSE questions on this topic, newest first.

Practise these 11 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 CSE syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.