4

Day 4

Continuity And Ivt


Continuity at a Point (The Three Conditions)

Continuity is a stricter promise than 'the limit exists' — the function also has to actually be there, and match.

Core Theorem
A function f(x)f(x) is continuous at x=cx=c if and only if:
1.
f(c)f(c) is defined.
2.
limxcf(x)\lim_{x \to c} f(x) exists (meaning limxcf(x)=limxc+f(x)\lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x)).
3.
limxcf(x)=f(c)\lim_{x \to c} f(x) = f(c).
Watch the TikTok ExplanationContinuity at a Point
Step-by-Step SOP
  1. 1

    Check Left and Right

    For piecewise functions, always check limxc\lim_{x \to c^-} and limxc+\lim_{x \to c^+} separately.
  2. 2

    Verify the Point

    Confirm f(c)f(c) exists and matches the limit before declaring continuity.

Practice Exercises


Example 01Medium
Where is f(x)=x2x2x2f(x) = \frac{x^2 - x - 2}{x - 2} discontinuous?
NEED A HINT?
Check where the function is undefined first, then check whether the limit still exists there.
SHOW DETAILED EXPLANATION

Step 1: Find Where f is Undefined

The denominator is zero when x2=0    x=2x - 2 = 0 \implies x = 2. Condition 1 fails here.

Step 2: Check if the Limit Still Exists

Factor: limx2(x2)(x+1)x2=limx2(x+1)\lim_{x \to 2} \frac{(x-2)(x+1)}{x-2} = \lim_{x \to 2} (x+1).

Step 3: Evaluate the Simplified Limit

limx2(x+1)=2+1=3\lim_{x \to 2} (x+1) = 2+1 = 3. The limit exists.

Step 4: Conclude

Since f(2)f(2) is undefined but the limit is 3, ff has a removable discontinuity at x=2x=2.
Example 02Easy
Let f(x)={x2+kx<23x1x2f(x) = \begin{cases} x^2 + k & x < 2 \\ 3x - 1 & x \geq 2 \end{cases}. Find the value of kk that makes f(x)f(x) continuous at x=2x=2.
NEED A HINT?
Set the left-hand limit equal to the right-hand limit (which equals f(2)f(2) here) at x=2x=2.
SHOW DETAILED EXPLANATION

Step 1: Evaluate the Right-Hand Limit

As x2+x \to 2^+, use 3x13x-1: limx2+f(x)=3(2)1=5\lim_{x \to 2^+} f(x) = 3(2)-1 = 5.

Step 2: Evaluate the Left-Hand Limit

As x2x \to 2^-, use x2+kx^2+k: limx2f(x)=22+k=4+k\lim_{x \to 2^-} f(x) = 2^2+k = 4+k.

Step 3: Solve for k

For continuity, Left = Right: 4+k=5    k=14+k = 5 \implies k=1.
Example 03Hard
Find aa and bb so that f(x)={x24x2x<2ax2bx+32x<32xa+bx3f(x) = \begin{cases} \frac{x^2-4}{x-2} & x < 2 \\ ax^2 - bx + 3 & 2 \le x < 3 \\ 2x - a + b & x \ge 3 \end{cases} is continuous everywhere.
NEED A HINT?
You have two 'seams' to fix (at x=2x=2 and x=3x=3) and two unknowns — set up one equation at each seam and solve the system.
SHOW DETAILED EXPLANATION

Step 1: Simplify the First Piece

For x<2x<2: x24x2=x+2\frac{x^2-4}{x-2} = x+2, so limx2f(x)=2+2=4\lim_{x \to 2^-} f(x) = 2+2 = 4.

Step 2: Match at x=2

The middle piece must approach 4 as x2+x \to 2^+: a(2)2b(2)+3=4    4a2b=1a(2)^2 - b(2) + 3 = 4 \implies 4a - 2b = 1.

Step 3: Match at x=3

The middle and last pieces must agree at x=3x=3: a(3)2b(3)+3=2(3)a+b    9a3b+3=6a+b    10a4b=3a(3)^2 - b(3) + 3 = 2(3) - a + b \implies 9a - 3b + 3 = 6 - a + b \implies 10a - 4b = 3.

Step 4: Solve the System

From Step 2: b=4a12b = \frac{4a-1}{2}. Substituting into Step 3: 10a4(4a12)=3    10a8a+2=3    2a=1    a=1210a - 4\left(\frac{4a-1}{2}\right) = 3 \implies 10a - 8a + 2 = 3 \implies 2a = 1 \implies a = \frac{1}{2}. Then b=4(1/2)12=12b = \frac{4(1/2)-1}{2} = \frac{1}{2}.
Common Pitfalls
  • Assuming ContinuityNever assume f(c)=limxcf(x)f(c) = \lim_{x \to c} f(x) unless the problem explicitly states the function is continuous — all three conditions must be checked.
  • Multi-Piece Functions Need One Equation Per SeamA 3-piece function has 2 boundary points — you need one matching equation at each seam, then solve them as a system (see Example 3).

Types of Discontinuity: Removable, Jump, Infinite, and Oscillating

Not all discontinuities look the same — learn to name what's actually broken: a missing point, a mismatched jump, a blow-up to infinity, or a limit that never settles down at all.

Core Theorem
Removable: limxaf(x)\lim_{x \to a} f(x) exists but limxaf(x)f(a)\lim_{x \to a} f(x) \neq f(a) (or f(a)f(a) is undefined) — a 'hole'.
Jump:
limxa+f(x)limxaf(x)\lim_{x \to a^+} f(x) \neq \lim_{x \to a^-} f(x) — the two sides disagree, so the general limit doesn't exist.
Infinite:
limxa+f(x)=±\lim_{x \to a^+} f(x) = \pm\infty or limxaf(x)=±\lim_{x \to a^-} f(x) = \pm\infty — the function blows up, usually at a vertical asymptote.
Oscillating:
f(x)f(x) fluctuates infinitely fast near x=ax=a and never settles toward any single value, so neither one-sided limit exists at all.
Watch the TikTok ExplanationTypes of DiscontinuityWatch the TikTok ExplanationTypes of Discontinuity (Part 2)
Step-by-Step SOP
  1. 1

    Compute Both One-Sided Limits

    Always start here — this immediately tells you whether you're looking at a jump (sides disagree) or something else.
  2. 2

    If Sides Agree, Compare to f(a)

    A mismatch (or missing f(a)f(a)) at this stage means removable; a match means the function is actually continuous there.

Practice Exercises


Example 01Medium
Classify the discontinuity of f(x)={x+1x<14x=12x1x>1f(x) = \begin{cases} x + 1 & x < 1 \\ 4 & x = 1 \\ 2x - 1 & x > 1 \end{cases} at x=1x=1.
NEED A HINT?
Compute both one-sided limits first — if they agree, compare that shared value to f(1)f(1).
SHOW DETAILED EXPLANATION

Step 1: Evaluate the One-Sided Limits

limx1(x+1)=2\lim_{x \to 1^-} (x+1) = 2 and limx1+(2x1)=2\lim_{x \to 1^+} (2x-1) = 2.

Step 2: Confirm the General Limit Exists

Since both sides agree, limx1f(x)=2\lim_{x \to 1} f(x) = 2.

Step 3: Compare to f(1)

f(1)=4f(1) = 4, but the limit is 22, so 242 \neq 4.

Step 4: Classify

The limit exists but doesn't match the function value — this is a removable discontinuity at x=1x=1.
Example 02Easy
If limxaf(x)=7\lim_{x \to a} f(x) = 7 and f(a)f(a) is undefined, what type of discontinuity is at x=ax=a?
NEED A HINT?
The limit exists — the only thing 'broken' is that the point itself is missing.
SHOW DETAILED EXPLANATION

Conclusion

Because the limit exists but the function value is not there, it is a removable discontinuity (a hole).
Example 03Medium
Classify the discontinuity of the floor function f(x)=xf(x) = \lfloor x \rfloor at x=3x=3.
NEED A HINT?
Think about what value x\lfloor x \rfloor takes for xx just below 3 versus just above 3.
SHOW DETAILED EXPLANATION

Step 1: Evaluate the Left-Hand Limit

For xx slightly less than 3 (like 2.9), x=2\lfloor x \rfloor = 2, so limx3f(x)=2\lim_{x \to 3^-} f(x) = 2.

Step 2: Evaluate the Right-Hand Limit

For xx slightly greater than or equal to 3 (like 3.0, 3.1), x=3\lfloor x \rfloor = 3, so limx3+f(x)=3\lim_{x \to 3^+} f(x) = 3.

Step 3: Classify

Since 232 \neq 3, the one-sided limits disagree — this is a jump discontinuity at every integer, including x=3x=3.
Example 04Medium
Classify the discontinuity of f(x)=1x2f(x) = \dfrac{1}{x-2} at x=2x=2.
NEED A HINT?
Think about what happens to 1x2\frac{1}{x-2} as xx gets extremely close to 2 from either side.
SHOW DETAILED EXPLANATION

Step 1: Confirm f(2) is Undefined

The denominator x2=0x-2=0 at x=2x=2, so f(2)f(2) is undefined.

Step 2: Check the One-Sided Limits

limx2+1x2=+\lim_{x \to 2^+} \frac{1}{x-2} = +\infty and limx21x2=\lim_{x \to 2^-} \frac{1}{x-2} = -\infty.

Step 3: Classify

Because the function blows up without bound as x2x \to 2 (this is exactly the vertical asymptote at x=2x=2), this is an infinite discontinuity.
Example 05Hard
Classify the discontinuity of f(x)=sin(1x)f(x) = \sin\left(\dfrac{1}{x}\right) at x=0x=0.
NEED A HINT?
You've seen this exact function before (Day 1) — what happened to the limit as x0x \to 0?
SHOW DETAILED EXPLANATION

Step 1: Confirm f(0) is Undefined

1x\frac{1}{x} is undefined at x=0x=0, so f(0)f(0) doesn't exist.

Step 2: Examine the Behavior Near x=0

As x0x \to 0, 1x±\frac{1}{x} \to \pm\infty, so sin(1/x)\sin(1/x) cycles through every value in [1,1][-1,1] infinitely many times — it never approaches ++\infty, -\infty, or any single number.

Step 3: Classify

Since neither one-sided limit exists (not even as ±\pm\infty) — the function just oscillates forever — this is an oscillating discontinuity, not an infinite one.
Common Pitfalls
  • Removable ≠ Undefined OnlyA removable discontinuity can also happen when f(a)f(a) IS defined but simply doesn't match the limit (Example 1) — not just when it's missing entirely.
  • Jump Needs Both Sides to ExistA jump discontinuity requires both one-sided limits to exist individually — they just don't agree with each other.
  • The Floor Function Jumps at Every Integerx\lfloor x \rfloor isn't just discontinuous at x=3x=3 — the exact same jump pattern repeats at every integer value of xx.
  • Infinite vs. Oscillating — Neither Has One-Sided Limits, But Only One 'Blows Up'Both types fail to have a finite one-sided limit, but infinite discontinuities head cleanly toward ++\infty or -\infty (like 1/(x2)1/(x-2)), while oscillating discontinuities never approach any value, finite or infinite (like sin(1/x)\sin(1/x)).

Continuity of Familiar Functions

You rarely check all three continuity conditions from scratch every time — instead you lean on the fact that entire families of functions are already known to be continuous everywhere they're defined, and that combining continuous functions keeps them continuous. This is also exactly why every IVT example so far could just say 'it's a polynomial, so it's continuous' without further proof.

Core Theorem
Polynomial, rational, radical, trigonometric, inverse trigonometric, exponential, and logarithmic functions are all continuous on their entire domain.
If
ff and gg are continuous at x=ax=a, then so are f±gf \pm g, fgf \cdot g, kfkf, fαf^{\alpha}, and fg\frac{f}{g} (provided g(a)0g(a) \neq 0).
If
gg is continuous at aa and ff is continuous at g(a)g(a), then the composite function f(g(x))f(g(x)) is continuous at aa.
Watch the TikTok ExplanationContinuity of Composite Functions
Step-by-Step SOP
  1. 1

    Identify the Building Blocks

    Break the function into the familiar pieces (polynomial, trig, radical, etc.) being added, multiplied, divided, or composed together.
  2. 2

    Confirm Each Piece is Continuous on Its Own Domain

    Each named family (polynomial, rational, radical, trig, inverse trig, exponential, logarithmic) is automatically continuous wherever it's defined.
  3. 3

    Watch for Quotient and Composite Exceptions

    Exclude any point where a denominator is zero, or where the inner function of a composite isn't continuous.

Practice Exercises


Example 01Medium
Determine where h(x)=x2+cosxx1h(x) = \dfrac{x^2+\cos x}{x-1} is continuous.
NEED A HINT?
Break the function into its numerator and denominator, then apply the quotient rule for continuity.
SHOW DETAILED EXPLANATION

Step 1: Check the Numerator

x2x^2 and cosx\cos x are both continuous everywhere, so their sum x2+cosxx^2+\cos x is continuous everywhere too.

Step 2: Check the Denominator

x1x-1 is a polynomial, so it's continuous everywhere — but it equals zero at x=1x=1.

Step 3: Apply the Quotient Rule

A quotient of continuous functions is continuous everywhere except where the denominator is zero.

Step 4: State the Result

h(x)h(x) is continuous on (,1)(1,)(-\infty, 1) \cup (1, \infty).
Example 02Medium
Determine where h(x)=1x2h(x) = \left|\dfrac{1}{x-2}\right| is continuous.
NEED A HINT?
This is a composite function — identify the inner and outer functions first.
SHOW DETAILED EXPLANATION

Step 1: Split Into Inner and Outer Functions

Let f(x)=xf(x) = |x| (outer) and g(x)=1x2g(x) = \frac{1}{x-2} (inner), so h(x)=f(g(x))h(x) = f(g(x)).

Step 2: Check the Outer Function

f(x)=xf(x) = |x| is continuous everywhere, for all real numbers.

Step 3: Check the Inner Function

g(x)=1x2g(x) = \frac{1}{x-2} is continuous everywhere except x=2x=2.

Step 4: Apply the Composite Rule

Since the outer function is continuous everywhere, hh is continuous wherever the inner function is — that is, on (,2)(2,)(-\infty, 2) \cup (2, \infty).
Common Pitfalls
  • 'Continuous' Doesn't Mean 'Defined Everywhere'x\sqrt{x} and lnx\ln x are continuous — but only on their domain ([0,)[0,\infty) and (0,)(0,\infty) respectively). 'Continuous' always means continuous on wherever the function is actually defined.
  • Quotients Need the Denominator CheckBefore declaring a quotient continuous everywhere, always find where the denominator is zero and exclude those points — even if the numerator is perfectly well-behaved.

Intermediate Value Theorem (IVT)

An 'existence' theorem used to prove that a continuous function must pass through a specific value, without ever having to solve for it exactly.

Core Theorem
If ff is continuous on [a,b][a, b] and kk is any number between f(a)f(a) and f(b)f(b), then there exists at least one number cc in (a,b)(a, b) such that f(c)=kf(c) = k.
Corollary (Root-Finding): If
ff is continuous on [a,b][a,b] and f(a)f(a), f(b)f(b) have opposite signs, then there exists at least one c(a,b)c \in (a,b) such that f(c)=0f(c) = 0. (This is just the theorem above with k=0k=0 — it's the special case you'll use most often.)
Step-by-Step SOP
  1. 1

    State Continuity

    Confirm (and explicitly write) that the function has no holes or jumps on the interval in question.
  2. 2

    Test the Endpoints

    Evaluate f(a)f(a) and f(b)f(b) to find the range of yy-values guaranteed to be hit.
  3. 3

    Conclude with the Standard Justification

    Write: 'Since f(x)f(x) is continuous on [a,b][a,b] and kk is between f(a)f(a) and f(b)f(b), by the IVT there is a cc in (a,b)(a,b) such that f(c)=kf(c)=k.'

Practice Exercises


Example 01Easy
Show that f(x)=x3+x1f(x) = x^3 + x - 1 has a zero on the interval [0,1][0, 1].
NEED A HINT?
Find f(0)f(0) and f(1)f(1) and check if 0 lies between them.
SHOW DETAILED EXPLANATION

Step 1: Check Continuity

f(x)f(x) is a polynomial, so it is continuous everywhere, including on [0,1][0,1].

Step 2: Evaluate Endpoints

f(0)=03+01=1f(0) = 0^3+0-1 = -1. f(1)=13+11=1f(1) = 1^3+1-1 = 1.

Step 3: Apply IVT

Since f(0)<0<f(1)f(0) < 0 < f(1), by the IVT there is a c(0,1)c \in (0,1) such that f(c)=0f(c) = 0.
Example 02Easy
A continuous function gg has values g(2)=10g(2) = 10 and g(5)=20g(5) = 20. Is there a value x=cx=c such that g(c)=15g(c) = 15?
NEED A HINT?
Is 15 between 10 and 20?
SHOW DETAILED EXPLANATION

Analysis

Since gg is continuous and 10<15<2010 < 15 < 20, the IVT guarantees at least one cc in (2,5)(2,5) where g(c)=15g(c) = 15.
Example 03Medium
Why can't the IVT be used for f(x)=1/xf(x) = 1/x on [1,1][-1, 1] to prove f(c)=0f(c) = 0 for some cc?
NEED A HINT?
Check the requirements of the theorem before applying it.
SHOW DETAILED EXPLANATION

Conclusion

f(x)=1/xf(x) = 1/x is not continuous at x=0x=0, which is inside the interval [1,1][-1,1] — the continuity requirement is violated, so the IVT cannot be applied.
Example 04Medium
Show that the equation 4x36x2+3x2=04x^3 - 6x^2 + 3x - 2 = 0 has a solution between x=1x=1 and x=2x=2.
NEED A HINT?
Define f(x)=4x36x2+3x2f(x) = 4x^3-6x^2+3x-2 and check its sign at the two endpoints.
SHOW DETAILED EXPLANATION

Step 1: Check Continuity

f(x)=4x36x2+3x2f(x) = 4x^3-6x^2+3x-2 is a polynomial, so it's continuous on [1,2][1,2].

Step 2: Evaluate the Endpoints

f(1)=46+32=1f(1) = 4-6+3-2 = -1. f(2)=3224+62=12f(2) = 32-24+6-2 = 12.

Step 3: Apply IVT

Since f(1)=1<0<12=f(2)f(1) = -1 < 0 < 12 = f(2), by the IVT there is a c(1,2)c \in (1,2) such that f(c)=0f(c) = 0 — a solution to the equation exists in that interval.
Example 05Medium
Prove that the curves y=x3y = x^3 and y=3x+1y = 3x+1 must intersect somewhere.
NEED A HINT?
Curves 'intersecting' means their difference equals zero somewhere — turn this into a root-existence problem.
SHOW DETAILED EXPLANATION

Step 1: Set Up a Difference Function

Let f(x)=x3(3x+1)=x33x1f(x) = x^3 - (3x+1) = x^3 - 3x - 1. The curves intersect wherever f(x)=0f(x) = 0.

Step 2: Check Continuity

f(x)f(x) is a polynomial, so it's continuous everywhere.

Step 3: Find a Sign Change

f(2)=861=1>0f(2) = 8-6-1 = 1 > 0 and f(0)=001=1<0f(0) = 0-0-1 = -1 < 0.

Step 4: Apply IVT

Since f(0)<0<f(2)f(0) < 0 < f(2) and ff is continuous on [0,2][0,2], by the IVT there is a c(0,2)c \in (0,2) with f(c)=0f(c) = 0 — meaning the two curves intersect at x=cx=c.
Example 06Hard
Show that any continuous function f:[0,1][0,1]f:[0,1] \to [0,1] must have a fixed point — a value cc where f(c)=cf(c)=c. Then verify it for f(x)=x2+13f(x) = \dfrac{x^2+1}{3}.
NEED A HINT?
You can't apply the IVT to ff directly since you're not looking for a zero of ff — instead, build a new function g(x)=f(x)xg(x) = f(x) - x and find a zero of that.
SHOW DETAILED EXPLANATION

Step 1: Build a Difference Function

Let g(x)=f(x)xg(x) = f(x) - x. A fixed point of ff (where f(c)=cf(c)=c) is exactly a zero of gg (where g(c)=0g(c)=0).

Step 2: Evaluate g at the Endpoints

Since ff maps [0,1][0,1] into [0,1][0,1]: f(0)0    g(0)=f(0)00f(0) \ge 0 \implies g(0) = f(0) - 0 \ge 0. Also f(1)1    g(1)=f(1)10f(1) \le 1 \implies g(1) = f(1) - 1 \le 0.

Step 3: Apply the IVT to g

gg is continuous (it's a difference of continuous functions), and g(0)0g(1)g(0) \ge 0 \ge g(1), so by the IVT there is a c[0,1]c \in [0,1] with g(c)=0g(c) = 0 — that is, f(c)=cf(c) = c. This proves the general fixed-point result.

Step 4: Verify Concretely for f(x) = (x²+1)/3

Solve x=x2+13    x23x+1=0    x=3±52x = \frac{x^2+1}{3} \implies x^2 - 3x + 1 = 0 \implies x = \frac{3 \pm \sqrt{5}}{2}. Taking the root inside [0,1][0,1]: c=3520.382c = \frac{3-\sqrt{5}}{2} \approx 0.382, and indeed f(0.382)0.382f(0.382) \approx 0.382.
Common Pitfalls
  • Forgetting ContinuityYou MUST explicitly state that the function is continuous on the interval before invoking the IVT on the AP exam, or you will lose points.
  • The x vs y TrapThe IVT guarantees a 'c' value (an xx-value) exists, but you prove it using the 'y-values' (the endpoint outputs) — don't mix the two up in your justification.
  • 'Curves Intersect' is a Root Problem in DisguiseWhenever you need to show two curves cross, subtract one from the other and apply the IVT to the difference — you rarely need to solve for the exact intersection point (see Example 5).
  • Fixed Point ≠ Root — Build g(x) = f(x) - x FirstYou can't apply the IVT to ff itself to find a fixed point, since ff isn't guaranteed to cross zero. The trick is always the same: define g(x)=f(x)xg(x) = f(x) - x and find where that is zero (see Example 6).
Gary Chang

Gary Chang

Calculus Educator

5+ Years of Calculus Teaching Experience | AP Calculus Specialist. Dedicated to helping students master calculus through step-by-step logic and clear visualizations.