Engineering Mathematics / Calculus / Limits, Continuity and Differentiability

Limits

How GATE treats approaching a value: one-sided limits, standard forms, infinity, L’Hospital, and the traps that cost marks.

25 min

What a limit is

A limit answers: as xx gets close to aa, what does f(x)f(x) get close to? It does not ask what f(a)f(a) is. The function can have a hole, a different value, or be undefined at aa, and the limit can still exist.

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

Read: f(x)f(x) can be made as close to LL as you want by taking xx close enough to aa, but not equal to aa.

GATE almost never wants an ε\varepsilon–δ\delta proof. It wants you to evaluate LL, or decide that LL does not exist as a real number.

One-sided limits

lim⁡x→a−f(x)(left),lim⁡x→a+f(x)(right)\lim_{x \to a^{-}} f(x) \quad\text{(left)}, \qquad \lim_{x \to a^{+}} f(x) \quad\text{(right)}

Approach aa only from below, or only from above. Piecewise definitions and absolute values live or die on this.

Worked example

Left and right of ∣x∣/x|x|/x

Find lim⁡x→0−∣x∣x\lim_{x \to 0^{-}} \dfrac{|x|}{x} and lim⁡x→0+∣x∣x\lim_{x \to 0^{+}} \dfrac{|x|}{x}.

Solution. For x<0x<0, ∣x∣=−x|x|=-x, so ∣x∣/x=−1|x|/x=-1. For x>0x>0, ∣x∣=x|x|=x, so ∣x∣/x=1|x|/x=1. Left limit is −1-1, right limit is 11.

When the two-sided limit exists

The two-sided limit exists and equals LL if and only if both one-sided limits exist, are finite, and are equal:

lim⁡x→af(x)=L  ⟺  lim⁡x→a−f(x)=lim⁡x→a+f(x)=L\lim_{x \to a} f(x)=L \iff \lim_{x \to a^{-}} f(x)=\lim_{x \to a^{+}} f(x)=L

If they disagree, the limit does not exist. If f(x)→+∞f(x)\to+\infty or −∞-\infty, write that as a description of growth, but GATE CS treats it as not a finite limit.

Oscillation is the other common case: sin⁡(1/x)\sin(1/x) as x→0x\to 0 keeps hitting −1-1 and 11 in every neighbourhood of 00.

Algebra of limits

If lim⁡f=L\lim f=L and lim⁡g=M\lim g=M (both finite), then

lim⁡(f±g)=L±M,lim⁡(fg)=LM,lim⁡fg=LM (M≠0)\lim(f\pm g)=L\pm M,\quad \lim(fg)=LM,\quad \lim\frac{f}{g}=\frac{L}{M}\ (M\neq 0)

Also lim⁡c=c\lim c=c and lim⁡x=a\lim x=a. Composition: if gg is continuous at LL, then lim⁡g(f(x))=g(L)\lim g(f(x))=g(L). You may not split a product or quotient when one factor blows up or the form is indeterminate.

The GATE evaluation toolkit

Work in this order. Stop at the first method that kills the indeterminate form.

Direct substitution

If ff is a polynomial, a rational with nonzero denominator, sin⁡\sin, cos⁡\cos, exp⁡\exp, or ln⁡\ln at a point in its domain, plug in.

Factor and cancel

0/00/0 from polynomials: factor, cancel the vanishing term, then substitute.

Worked example

Hole in a rational function

lim⁡x→2x2−4x−2\lim_{x \to 2} \dfrac{x^2-4}{x-2}

Solution. x2−4=(x−2)(x+2)x^2-4=(x-2)(x+2). For x≠2x\neq 2 the quotient is x+2x+2, so the limit is 44. The graph is the line y=x+2y=x+2 with a hole at x=2x=2.

Rationalize

Roots producing 0/00/0: multiply by the conjugate.

Worked example

Conjugate

lim⁡x→01+x−1x\lim_{x \to 0} \dfrac{\sqrt{1+x}-1}{x}

Solution. Multiply numerator and denominator by 1+x+1\sqrt{1+x}+1: 11+x+1→12\dfrac{1}{\sqrt{1+x}+1}\to\dfrac{1}{2}.

Limits at infinity

For rationals, divide numerator and denominator by the highest power of xx in the denominator.

lim⁡x→∞anxn+⋯bmxm+⋯={0n<man/bmn=m±∞n>m\lim_{x \to \infty}\frac{a_n x^n+\cdots}{b_m x^m+\cdots} = \begin{cases} 0 & n<m\\ a_n/b_m & n=m\\ \pm\infty & n>m \end{cases}

Worked example

Dominant terms

lim⁡x→∞3x2+12x2−5\lim_{x \to \infty} \dfrac{3x^2+1}{2x^2-5}

Solution. Divide by x2x^2: 3+1/x22−5/x2→32\dfrac{3+1/x^2}{2-5/x^2}\to\dfrac{3}{2}.

Same idea as n→∞n\to\infty for sequences.

Standard limits

Memorize these in radians. Almost every GATE limit rewrites into one of them.

lim⁡x→0sin⁡xx=1,lim⁡x→0tan⁡xx=1,lim⁡x→01−cos⁡xx2=12\lim_{x \to 0}\frac{\sin x}{x}=1,\quad \lim_{x \to 0}\frac{\tan x}{x}=1,\quad \lim_{x \to 0}\frac{1-\cos x}{x^2}=\frac12
lim⁡x→0ex−1x=1,lim⁡x→0ln⁡(1+x)x=1,lim⁡x→0ax−1x=ln⁡a\lim_{x \to 0}\frac{e^x-1}{x}=1,\quad \lim_{x \to 0}\frac{\ln(1+x)}{x}=1,\quad \lim_{x \to 0}\frac{a^x-1}{x}=\ln a
lim⁡x→axn−anx−a=nan−1,lim⁡n→∞(1+1n)n=e,lim⁡x→∞(1+ax)x=ea\lim_{x \to a}\frac{x^n-a^n}{x-a}=n a^{n-1},\quad \lim_{n \to \infty}\left(1+\frac{1}{n}\right)^n=e,\quad \lim_{x \to \infty}\left(1+\frac{a}{x}\right)^x=e^a

Immediate corollaries (use substitution u=u= the small inner expression):

lim⁡x→0sin⁡(ax)x=a,lim⁡x→0sin⁡(ax)sin⁡(bx)=ab,lim⁡x→0tan⁡(ax)tan⁡(bx)=ab\lim_{x \to 0}\frac{\sin(ax)}{x}=a,\quad \lim_{x \to 0}\frac{\sin(ax)}{\sin(bx)}=\frac{a}{b},\quad \lim_{x \to 0}\frac{\tan(ax)}{\tan(bx)}=\frac{a}{b}

Worked example

Rewrite to a standard limit

lim⁡x→0sin⁡5xsin⁡2x\lim_{x \to 0} \dfrac{\sin 5x}{\sin 2x}

Solution. sin⁡5x5x⋅5/(sin⁡2x2x⋅2)→1⋅51⋅2=52\dfrac{\sin 5x}{5x}\cdot 5 \Big/ \left(\dfrac{\sin 2x}{2x}\cdot 2\right) \to \dfrac{1\cdot 5}{1\cdot 2}=\dfrac{5}{2}.

Worked example

1−cos⁡1-\cos

lim⁡x→01−cos⁡2xx2\lim_{x \to 0} \dfrac{1-\cos 2x}{x^2}

Solution. 1−cos⁡2x(2x)2⋅4→12⋅4=2\dfrac{1-\cos 2x}{(2x)^2}\cdot 4 \to \dfrac12\cdot 4=2.

Worked example

Exponential

lim⁡x→0e3x−1x\lim_{x \to 0} \dfrac{e^{3x}-1}{x}

Solution. 3⋅lim⁡e3x−13x=33\cdot\lim\dfrac{e^{3x}-1}{3x}=3.

Substitution

Set tt equal to the inner expression that is going to 00 or ∞\infty, rewrite, then apply a standard limit. This is how sin⁡(5x)/x\sin(5x)/x becomes 5⋅sin⁡u/u5\cdot\sin u/u.

Indeterminate forms

These are not numbers. They mean the limit is not obvious; rewrite.

The dangerous GATE trap is 1∞1^\infty. It is not 11. Take log: if y=fgy=f^g, then ln⁡y=gln⁡f\ln y=g\ln f, find lim⁡ln⁡y=L\lim\ln y=L, then the original limit is eLe^L.

Worked example

The 1∞1^\infty form

lim⁡n→∞(1+2n)n\lim_{n \to \infty}\left(1+\dfrac{2}{n}\right)^n

Solution. This is (1+an)n\left(1+\dfrac{a}{n}\right)^n with a=2a=2, so the limit is e2e^2.

L’Hôpital’s rule

If ff and gg are differentiable near aa (except possibly at aa), g′≠0g'\neq 0 there, and the limit is 0/00/0 or ∞/∞\infty/\infty, then

lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\lim_{x \to a}\frac{f(x)}{g(x)}=\lim_{x \to a}\frac{f'(x)}{g'(x)}

if the right-hand limit exists (or is ±∞\pm\infty). You may repeat. Convert 0⋅∞0\cdot\infty to a quotient first. Convert 1∞1^\infty by taking ln⁡\ln.

GATE uses this when standard limits would be messy, not as a first resort for sin⁡x/x\sin x/x.

Worked example

When Taylor is the fastest check

lim⁡x→0tan⁡x−xx3\lim_{x \to 0} \dfrac{\tan x-x}{x^3}

Solution. 0/00/0. Differentiate: sec⁡2x−13x2=tan⁡2x3x2\dfrac{\sec^2 x-1}{3x^2}=\dfrac{\tan^2 x}{3x^2}, still 0/00/0. Differentiate again, or use tan⁡x=x+x3/3+⋯\tan x=x+x^3/3+\cdots, so (tan⁡x−x)/x3→1/3(\tan x-x)/x^3\to 1/3. Answer: 1/31/3.

Squeeze theorem

If g(x)≤f(x)≤h(x)g(x)\le f(x)\le h(x) near aa and lim⁡g=lim⁡h=L\lim g=\lim h=L, then lim⁡f=L\lim f=L.

The GATE instance is bounded oscillation times something going to 00:

∣xsin⁡(1/x)∣≤∣x∣→0  ⟹  lim⁡x→0xsin⁡(1/x)=0|x\sin(1/x)|\le|x|\to 0 \implies \lim_{x \to 0} x\sin(1/x)=0

Same for x2sin⁡(1/x)x^2\sin(1/x). Contrast: sin⁡(1/x)\sin(1/x) alone is not squeezed to a single value.

Sequences

In GATE CS, nn is a positive integer, but the same algebra applies. Typical asks: (1+1/n)n→e\bigl(1+1/n\bigr)^n\to e, (1+1/n)2n→e2\bigl(1+1/n\bigr)^{2n}\to e^2, and polynomials versus exponentials (nk/an→0n^k/a^n\to 0 for a>1a>1). Treat them like limits at infinity.

Piecewise functions

Write the left- and right-hand limits from the formula that applies on that side. Do not plug the junction formula from the wrong piece.

Worked example

Jump

f(x)={x+1x<02xx≥0f(x)=\begin{cases}x+1 & x<0\\ 2x & x\ge 0\end{cases}. Does lim⁡x→0f(x)\lim_{x \to 0} f(x) exist?

Solution. Left-hand limit =1=1, right-hand limit =0=0. The two-sided limit does not exist.

Worked example

Limit ignores the defined point

f(x)=x2−1x−1f(x)=\dfrac{x^2-1}{x-1} for x≠1x\neq 1, and f(1)=3f(1)=3. Find lim⁡x→1f(x)\lim_{x \to 1} f(x).

Solution. For x≠1x\neq 1, f(x)=x+1→2f(x)=x+1\to 2. The limit is 22, not 33.

What you do not need for GATE CS

No ε\varepsilon–δ\delta proofs, no multivariable limits, no series tests. Partial derivatives and gradient are not in the CS Calculus syllabus.

Formula sheet

Check yourself

Practice

  1. Q1 · 1 markMCQ

    lim⁡x→0sin⁡3xx\lim_{x \to 0} \dfrac{\sin 3x}{x} equals

  2. Q2 · 1 markNAT

    lim⁡x→01−cos⁡xx2\lim_{x \to 0} \dfrac{1-\cos x}{x^2} equals (numerical value)

  3. Q3 · 1 markMCQ

    lim⁡x→0∣x∣x\lim_{x \to 0} \dfrac{|x|}{x}

  4. Q4 · 1 markNAT

    lim⁡x→0sin⁡4xsin⁡2x\lim_{x \to 0} \dfrac{\sin 4x}{\sin 2x} equals

  5. Q5 · 1 markMCQ

    Let f(x)=x2−1x−1f(x)=\dfrac{x^2-1}{x-1} for x≠1x\neq 1 and f(1)=3f(1)=3. Then lim⁡x→1f(x)\lim_{x \to 1} f(x) is

  6. Q6 · 2 marksNAT

    lim⁡x→∞2x2+3x4x2−1\lim_{x \to \infty} \dfrac{2x^2+3x}{4x^2-1} equals

  7. Q7 · 2 marksMSQ

    Which of the following limits exist and are finite?

  8. Q8 · 2 marksMCQ

    lim⁡n→∞(1+1n)2n\lim_{n \to \infty}\left(1+\dfrac{1}{n}\right)^{2n} equals