What is Continuity?

Understanding when a function is continuous at a point

Understanding Continuity

A function is continuous if you can draw it without lifting your pencil. Mathematically, it's more precise!

The Informal Definition

A function is continuous at x = a if:

The graph has no breaks, jumps, or holes at that point

The Formal Definition

A function f is continuous at x = a if all three conditions hold:

  1. f(a) exists - The function is defined at a
  2. limxaf(x)\lim_{x \to a} f(x) exists - The limit exists at a
  3. limxaf(x)=f(a)\lim_{x \to a} f(x) = f(a) - The limit equals the function value

All three must be true! If even one fails, the function is discontinuous at that point.

Testing for Continuity

Example 1: Is f(x)=x2f(x) = x^2 continuous at x = 3?

Check 1: Does f(3) exist? f(3)=32=9f(3) = 3^2 = 9 ✓ Yes

Check 2: Does limx3f(x)\lim_{x \to 3} f(x) exist? limx3x2=9\lim_{x \to 3} x^2 = 9 ✓ Yes

Check 3: Does limx3f(x)=f(3)\lim_{x \to 3} f(x) = f(3)? 9=99 = 9 ✓ Yes

Conclusion: f is continuous at x = 3!

Example 2: Not Continuous

f(x)={x+1if x25if x=2f(x) = \begin{cases} x + 1 & \text{if } x \neq 2 \\ 5 & \text{if } x = 2 \end{cases}

Is this continuous at x = 2?

Check 1: Does f(2) exist? f(2)=5f(2) = 5 ✓ Yes

Check 2: Does limx2f(x)\lim_{x \to 2} f(x) exist? limx2(x+1)=3\lim_{x \to 2} (x + 1) = 3 ✓ Yes

Check 3: Does limx2f(x)=f(2)\lim_{x \to 2} f(x) = f(2)? 353 \neq 5 ✗ NO!

Conclusion: f is NOT continuous at x = 2 (even though f(2) exists and the limit exists!)

Continuous Everywhere

Many familiar functions are continuous everywhere:

  • Polynomials: x2x^2, x32x+1x^3 - 2x + 1, etc.
  • Exponential functions: exe^x, 2x2^x
  • Sine and cosine: sin(x)\sin(x), cos(x)\cos(x)
  • Square root (on its domain): x\sqrt{x} for x0x \geq 0

Common Discontinuities

Functions are typically discontinuous where:

  • Rational functions have division by zero
  • Piecewise functions change formulas
  • Absolute value creates a corner (still continuous, but not differentiable!)

Why Continuity Matters

Continuous functions have nice properties:

  • Intermediate Value Theorem: If continuous on [a, b], it takes every value between f(a) and f(b)
  • Can find limits by direct substitution
  • Behave predictably - no surprises!

Visual Test

On a graph, a function is continuous at a point if:

  • No gap (both sides connect)
  • No hole (no open circle)
  • No jump (no sudden leap)
  • The point is actually on the curve

📚 Practice Problems

1Problem 1medium

Question:

Determine if f(x)=x29x3f(x) = \frac{x^2 - 9}{x - 3} is continuous at x = 3.

💡 Show Solution

Check 1: Does f(3) exist?

f(3)=32933=00f(3) = \frac{3^2 - 9}{3 - 3} = \frac{0}{0}

This is undefined! ✗

Conclusion: f is NOT continuous at x = 3 because f(3) doesn't exist.

The function has a hole at x = 3.

Note: Even though we can find the limit: limx3x29x3=limx3(x3)(x+3)x3=limx3(x+3)=6\lim_{x \to 3} \frac{x^2 - 9}{x - 3} = \lim_{x \to 3} \frac{(x-3)(x+3)}{x - 3} = \lim_{x \to 3} (x + 3) = 6

The limit exists (equals 6), but f(3) doesn't exist, so the function fails condition 1 of continuity.

2Problem 2hard

Question:

For what value of k is f(x)={x2if x<2kx+1if x2f(x) = \begin{cases} x^2 & \text{if } x < 2 \\ kx + 1 & \text{if } x \geq 2 \end{cases} continuous at x = 2?

💡 Show Solution

For f to be continuous at x = 2, we need: limx2f(x)=f(2)\lim_{x \to 2} f(x) = f(2)

Find f(2): Since x=22x = 2 \geq 2, we use the second piece: f(2)=k(2)+1=2k+1f(2) = k(2) + 1 = 2k + 1

Find the limit from the left: limx2f(x)=limx2x2=4\lim_{x \to 2^-} f(x) = \lim_{x \to 2^-} x^2 = 4

Find the limit from the right: limx2+f(x)=limx2+(kx+1)=2k+1\lim_{x \to 2^+} f(x) = \lim_{x \to 2^+} (kx + 1) = 2k + 1

For continuity, these must all be equal: 4=2k+14 = 2k + 1 3=2k3 = 2k k=32k = \frac{3}{2}

Answer: k=32k = \frac{3}{2}

With this value, f(2) = 4 and both one-sided limits equal 4, making the function continuous!