DEV Community

Somenath Mukhopadhyay
Somenath Mukhopadhyay

Posted on • Originally published at som-itsolutions.blogspot.com on

When you teach a person, actually two people learn - here i am delving into calculus to show the light to my son...

Understanding Limits, L’Hôpital’s Rule, and Discontinuities

In this guide we’ll walk through classic calculus limit problems, the types of discontinuities you’ll see, and how tools like factoring, L’Hôpital’s Rule, and the Squeeze Theorem help.


  1. Removable Discontinuity

We want:

limx2x24x2\lim_{x \to 2} \frac{x^2 - 4}{x - 2}

Direct substitution:

(2)2422=00\frac{(2)^2 - 4}{2 - 2} = \frac{0}{0}

This is an indeterminate form.

Factor the numerator:

x24=(x2)(x+2)x^2 - 4 = (x - 2)(x + 2)

For x2x \neq 2 :

x24x2=x+2\frac{x^2 - 4}{x - 2} = x + 2

The graph looks like y=x+2y = x + 2 except for a hole at x=2x = 2 .

Limit:

limx2(x+2)=4\lim_{x \to 2} (x + 2) = 4

  1. L’Hôpital’s Rule

When to use: Direct substitution gives 00\frac{0}{0} or \frac{\infty}{\infty} .

If ff and gg are differentiable near aa , g(x)0g'(x) \neq 0 near aa , and the derivative quotient limit exists:

limxaf(x)g(x)=limxaf(x)g(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}

Example:

limx2x24x2\lim_{x \to 2} \frac{x^2 - 4}{x - 2}

Differentiate top and bottom:

f(x)=2x,g(x)=1f'(x) = 2x, \quad g'(x) = 1

Then:

limx22x1=4\lim_{x \to 2} \frac{2x}{1} = 4

Example with /\infty/\infty :

limx3x2+5x7x24\lim_{x \to \infty} \frac{3x^2 + 5x}{7x^2 - 4}

Differentiate:

f(x)=6x+5,g(x)=14xf'(x) = 6x + 5, \quad g'(x) = 14x

So:

limx6+5x14=37\lim_{x \to \infty} \frac{6 + \frac{5}{x}}{14} = \frac{3}{7}

  1. Classic Limit — sinx/x\sin x / x
limx0sinxx=1\lim_{x \to 0} \frac{\sin x}{x} = 1

By L’Hôpital:

limx0cosx1=1\lim_{x \to 0} \frac{\cos x}{1} = 1

  1. Infinite Discontinuity

For 1x\frac{1}{x} :

As x0+x \to 0^+ : 1x+\frac{1}{x} \to +\infty

As x0x \to 0^- : 1x\frac{1}{x} \to -\infty

Two-sided limit does not exist.


  1. Jump Discontinuity
f(x)={1x<0 2x0f(x) = \begin{cases} 1 & x < 0 \ 2 & x \ge 0 \end{cases}

The function jumps from 1 to 2 at x=0x = 0 .


  1. Limit Does Not Exist — sin(1/x)\sin(1/x)

As x0x \to 0 , 1/x±1/x \to \pm\infty and sin(1/x)\sin(1/x) oscillates infinitely between −1 and 1.
No single limit value exists.


  1. Piecewise Jump Discontinuity
f(x)={x21x<1 2x=1 3xx>1f(x) = \begin{cases} x^2 - 1 & x < 1 \ 2 & x = 1 \ 3 - x & x > 1 \end{cases}

LHL at x=1x=1 is 00

RHL at x=1x=1 is 22

Since LHL ≠ RHL, there’s a jump discontinuity.


  1. Squeeze Theorem Example

Let:

f(x)={xsin(1x),x0 0,x=0f(x) = \begin{cases} x \sin\left(\frac{1}{x}\right), & x \neq 0 \ 0, & x = 0 \end{cases}

We know:

1sin(1x)1-1 \le \sin\left(\frac{1}{x}\right) \le 1

Multiply by x|x| :

xxsin(1x)x-|x| \le x \sin\left(\frac{1}{x}\right) \le |x|

Both bounds → 00 as x0x \to 0 .
By the Squeeze Theorem:

limx0xsin(1x)=0\lim_{x \to 0} x \sin\left(\frac{1}{x}\right) = 0

✅ Continuous at x=0x = 0 .



Top comments (0)