Thursday, August 14, 2025

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

1. The Problem

We have:

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

If we try direct substitution (x=2x = 2):

(2)2−42−2=4−40=00\frac{(2)^2 - 4}{2 - 2} = \frac{4 - 4}{0} = \frac{0}{0}

This is an indeterminate form — so the limit is not obvious.


Why it’s a Removable Discontinuity

The numerator x2−4x^2 - 4 factors:

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

So:

x2−4x−2=(x−2)(x+2)x−2\frac{x^2 - 4}{x - 2} = \frac{(x - 2)(x + 2)}{x - 2}

For x≠2x \neq 2, the (x−2)(x - 2) cancels:

x2−4x−2=x+2\frac{x^2 - 4}{x - 2} = x + 2

The function behaves exactly like y=x+2y = x + 2 everywhere except at x=2x = 2.

At x=2x = 2, the original expression was undefined (division by zero), so there’s a hole in the graph — that’s the removable discontinuity.


Finding the Limit

Now that it’s simplified:

lim⁡x→2x2−4x−2=lim⁡x→2(x+2)\lim_{x \to 2} \frac{x^2 - 4}{x - 2} = \lim_{x \to 2} (x + 2)






=2+2=4
= 2 + 2 = 4

So:

The limit is 4\boxed{\text{The limit is } 4}

If we define f(2)=4f(2) = 4, the discontinuity disappears and the function becomes continuous.


Visualizing

If you graph y=x2−4x−2y = \frac{x^2 - 4}{x - 2}:

  • It looks like a straight line y=x+2y = x + 2

  • Except there’s an open circle at (2,4)(2, 4)
    That hole is the removable discontinuity.

Here's a visual representation of f(x).

The left top (the first one) shows the f(x) plotted.



Now let’s walk through L’Hôpital’s Theorem for limits clearly and step-by-step.


The Problem L’Hôpital Solves

Sometimes, when evaluating a limit, direct substitution gives an indeterminate form like:

  • 00\frac{0}{0}

  • ∞∞\frac{\infty}{\infty}

These forms mean you can’t just plug in the value — but the limit might still exist.

Example:

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

Direct substitution → 0/00/0.


Statement of L’Hôpital’s Rule

If:

  1. lim⁡x→af(x)=0\lim_{x \to a} f(x) = 0 and lim⁡x→ag(x)=0\lim_{x \to a} g(x) = 0
    OR
    lim⁡x→af(x)=±∞\lim_{x \to a} f(x) = \pm\infty and lim⁡x→ag(x)=±∞\lim_{x \to a} g(x) = \pm\infty

  2. ff and gg are differentiable near aa (except possibly at aa)

  3. g′(x)≠0g'(x) \neq 0 near aa

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)}

provided the limit on the right exists or is ±∞\pm\infty.


How It Works (Example)

Example:

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

Direct substitution → 0/00/0.

Step 1: Differentiate numerator and denominator separately:

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

Step 2: Apply L’Hôpital’s Rule:

lim⁡x→22x1=2(2)=4\lim_{x \to 2} \frac{2x}{1} = 2(2) = 4

Same answer we got earlier by factoring — but L’Hôpital works even when factoring is messy.


Another Example with ∞/∞\infty/\infty

lim⁡x→∞3x2+5x7x2−4\lim_{x \to \infty} \frac{3x^2 + 5x}{7x^2 - 4}

Direct substitution → ∞/∞\infty/\infty.

Differentiate top and bottom:

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

Now:

lim⁡x→∞6x+514x=lim⁡x→∞6+5x14=614=37\lim_{x \to \infty} \frac{6x + 5}{14x} = \lim_{x \to \infty} \frac{6 + \frac{5}{x}}{14} = \frac{6}{14} = \frac{3}{7}

Notes and Common Mistakes

  • Only use when you get 0/00/0 or ∞/∞\infty/\infty
    (For other indeterminate forms like 0⋅∞0 \cdot \infty, 1∞1^\infty, ∞−∞\infty - \infty, you may first need algebraic manipulation.)

  • Apply the rule repeatedly if the first derivative still gives 0/00/0 or ∞/∞\infty/\infty.

  • Remember: Differentiate top and bottom separately, never use the quotient rule here.


2. The Problem

Alright — let’s go step-by-step for

lim⁡x→0sin⁡xx\lim_{x \to 0} \frac{\sin x}{x}

Direct Substitution Check

If x=0x = 0,

sin⁡(0)0=00\frac{\sin(0)}{0} = \frac{0}{0}

That’s an indeterminate form — so we need another method.

\lim_{x \to 0} \frac{\sin x}{x} = 1

Using L’Hôpital’s Rule

We have 0/00/0 form. Differentiate top and bottom:

lim⁡x→0cos⁡x1=cos⁡0=1

Final Answer:

                                                                        1

Visualization


See the plot at left column second from top.

3 . The problem

lim⁡x→01x\lim_{x \to 0} \frac{1}{x}


First observation

If x=0x = 0, the expression is undefined because we can’t divide by zero.
So we check left-hand limit (LHL) and right-hand limit (RHL) separately.


Right-hand limit ( x→0+x \to 0^+ )

Take xx as small positive numbers:

xx 1/x1/x
0.1 10
0.01 100
0.001 1000

As x→0+x \to 0^+, 1/x→+∞1/x \to +\infty.


Left-hand limit ( x→0−x \to 0^- )

Take xx as small negative numbers:

xx 1/x1/x
-0.1 -10
-0.01 -100
-0.001 -1000

As x→0−x \to 0^-, 1/x→−∞1/x \to -\infty.


Conclusion

The two one-sided limits are not equal:

lim⁡x→0+1x=+∞\lim_{x \to 0^+} \frac{1}{x} = +\infty lim⁡x→0−1x=−∞\lim_{x \to 0^-} \frac{1}{x} = -\infty

Since they differ, the two-sided limit does not exist.


📌 Important: This is an example of an infinite discontinuity.

This is the third graph in the image attached earlier.

4. The problem - Jump Discontinuity

f(x)={1x<02x≥0​

Visualization:

A step function shows a sudden jump — perfect for illustrating discontinuity.

The topmost in the right column of the image attached earlier


4. The Problem

The limit of

lim⁡x→0sin⁡(1x)\lim_{x \to 0} \sin\left(\frac{1}{x}\right)

is a classic example of a limit that does not exist.


Why it doesn’t exist

As x→0x \to 0,

  • 1x→+∞\frac{1}{x} \to +\infty when x→0+x \to 0^+

  • 1x→−∞\frac{1}{x} \to -\infty when x→0−x \to 0^-

The sine function sin⁡(t)\sin(t) oscillates between -1 and +1 infinitely often as t→±∞t \to \pm \infty.

So near x=0x=0, sin⁡(1x)\sin\left(\frac{1}{x}\right) oscillates wildly — no single number is approached.


Formal reasoning

We can try to take the right-hand limit:

Pick sequences:

xn=12πn⇒sin⁡(1xn)=sin⁡(2πn)=0x_n = \frac{1}{2\pi n} \quad \Rightarrow \quad \sin\left(\frac{1}{x_n}\right) = \sin(2\pi n) = 0

and

yn=12πn+π/2⇒sin⁡(1yn)=sin⁡(2πn+π2)=1y_n = \frac{1}{2\pi n + \pi/2} \quad \Rightarrow \quad \sin\left(\frac{1}{y_n}\right) = \sin\left(2\pi n + \frac{\pi}{2}\right) = 1

Both xn→0x_n \to 0 and yn→0y_n \to 0, but the function values approach different limits (0 and 1).
Hence, the limit does not exist.

5. The problem

Alright, let’s check if your function is continuous at x=1x = 1.

Given:

f(x)={x2−1if x<12if x=13−xif x>1f(x) = \begin{cases} x^2 - 1 & \text{if } x < 1 \\ 2 & \text{if } x = 1 \\ 3 - x & \text{if } x > 1 \end{cases}

Step 1 – Left-hand limit (as x→1−x \to 1^-)

For x<1x < 1, f(x)=x2−1f(x) = x^2 - 1

lim⁡x→1−f(x)=12−1=0\lim_{x \to 1^-} f(x) = 1^2 - 1 = 0

Step 2 – Right-hand limit (as x→1+x \to 1^+)

For x>1x > 1, f(x)=3−xf(x) = 3 - x

lim⁡x→1+f(x)=3−1=2\lim_{x \to 1^+} f(x) = 3 - 1 = 2

Step 3 – Compare limits

  • Left-hand limit = 0

  • Right-hand limit = 2
    Since 0≠20 \neq 2, the limit at x=1x = 1 does not exist.


Step 4 – Conclusion

Continuity at x=1x = 1 requires:

lim⁡x→1f(x)=f(1)\lim_{x \to 1} f(x) = f(1)

But here:

  • The two one-sided limits are not equal

  • So the function has a jump discontinuity at x=1x = 1

Final Answer: ❌ Not continuous at x=1x = 1.

Visualization

The bottom of the left column shows the graphical output of the function


6. The Problem

Let’s check step-by-step whether

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

is continuous at x=0x = 0.


Step 1: Continuity definition at a point

A function ff is continuous at x=0x = 0 if:

lim⁡x→0f(x)=f(0)\lim_{x \to 0} f(x) = f(0)

That means:

  1. f(0)f(0) exists ✅

  2. The limit lim⁡x→0f(x)\lim_{x \to 0} f(x) exists

  3. They are equal


Step 2: Check f(0)f(0)

From the definition:

f(0)=0f(0) = 0

Step 3: Find lim⁡x→0f(x)\lim_{x \to 0} f(x)

When x≠0x \neq 0:

f(x)=xsin⁡(1x)f(x) = x \sin\left(\frac{1}{x}\right)

We know that:

−1≤sin⁡(1x)≤1-1 \leq \sin\left(\frac{1}{x}\right) \leq 1

Multiplying through by xx (near x=0x=0):

−∣x∣≤xsin⁡(1x)≤∣x∣- |x| \leq x \sin\left(\frac{1}{x}\right) \leq |x|

Step 4: Apply the Squeeze Theorem

As x→0x \to 0:

−∣x∣→0and∣x∣→0- |x| \to 0 \quad \text{and} \quad |x| \to 0

So:

lim⁡x→0xsin⁡(1x)=0\lim_{x \to 0} x \sin\left(\frac{1}{x}\right) = 0

Step 5: Compare with f(0)f(0)

We have:

lim⁡x→0f(x)=0=f(0)\lim_{x \to 0} f(x) = 0 = f(0)

✅ Therefore, f(x)f(x) is continuous at x=0x = 0.

Visualisation



The squeeze theorem

The Squeeze Theorem (also called the Sandwich Theorem or Pinching Theorem) is a method in calculus for finding the limit of a function by “trapping” it between two simpler functions whose limits are known and equal.


Definition

If for all xx near aa (except possibly at aa itself), we have

g(x)≤f(x)≤h(x)g(x) \leq f(x) \leq h(x)

and

lim⁡x→ag(x)=Landlim⁡x→ah(x)=L\lim_{x \to a} g(x) = L \quad \text{and} \quad \lim_{x \to a} h(x) = L

then

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

Intuition

Think of it like this:
If you trap f(x)f(x) between g(x)g(x) and h(x)h(x), and both of those are “squeezing” toward the same value LL as xx approaches aa, then f(x)f(x) must be squeezed to LL as well.


Example

Let’s prove:

lim⁡x→0xsin⁡(1x)=0\lim_{x \to 0} x \sin\left(\frac{1}{x}\right) = 0

We know:

−1≤sin⁡(1x)≤1-1 \leq \sin\left(\frac{1}{x}\right) \leq 1

Multiply all sides by ∣x∣|x|:

−∣x∣≤xsin⁡(1x)≤∣x∣-|x| \leq x \sin\left(\frac{1}{x}\right) \leq |x|

As x→0x \to 0:

lim⁡x→0−∣x∣=0andlim⁡x→0∣x∣=0\lim_{x \to 0} -|x| = 0 \quad\text{and}\quad \lim_{x \to 0} |x| = 0

By the Squeeze Theorem:

lim⁡x→0xsin⁡(1x)=0

No comments: