1. Home
  2. Explore
  3. Mathematics
  4. Continuity of Functions

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Continuity of Functions

Continuity in Calculus

Definition of Continuity at a Point

A function fff is continuous at a point ccc if three conditions are met:

  1. f(c)f(c)f(c) is defined – the function has a real value at x=cx=cx=c. Common causes for failure: holes, vertical asymptotes.

  2. lim⁡x→cf(x)\lim_{x \to c} f(x)limx→c​f(x) exists – the two-sided limit must be a real number (not infinite). This requires that the left-hand and right-hand limits exist and are equal.

  3. lim⁡x→cf(x)=f(c)\lim_{x \to c} f(x) = f(c)limx→c​f(x)=f(c) – the limit and the function value must match.

Visually, continuity means you can draw the graph without lifting your pencil. A discontinuity is any place where you must lift the pencil (hole, jump, vertical asymptote).

Important: Continuity does not require smoothness – only that the graph is unbroken.

Continuity on Open and Closed Intervals

Open Intervals

A function is continuous on an open interval (a,b)(a, b)(a,b) if it is continuous at every point inside that interval.

Closed Intervals

A function fff is continuous on a closed interval [a,b][a, b][a,b] if:

  • It is continuous on the open interval (a,b)(a, b)(a,b) (every interior point).

  • Right-hand continuity at aaa: lim⁡x→a+f(x)=f(a)\displaystyle \lim_{x \to a^+} f(x) = f(a)x→a+lim​f(x)=f(a)

  • Left-hand continuity at bbb: lim⁡x→b−f(x)=f(b)\displaystyle \lim_{x \to b^-} f(x) = f(b)x→b−lim​f(x)=f(b)

This means the function must also "connect" properly at the endpoints.

Everywhere Continuous

A function is continuous on the entire real line (−∞,∞)(-\infty, \infty)(−∞,∞), e.g., polynomials, sine, cosine.

Types of Discontinuity

Two main types exist:

Removable Discontinuity

  • Also called a hole.

  • The limit lim⁡x→cf(x)\lim_{x \to c} f(x)limx→c​f(x) exists, but f(c)f(c)f(c) is either undefined or f(c)≠lim⁡x→cf(x)f(c) \neq \lim_{x \to c} f(x)f(c)=limx→c​f(x).

  • Can be "fixed" by redefining f(c)f(c)f(c) to equal the limit.

Non-Removable Discontinuity

  • Includes jump discontinuities (left and right limits exist but are not equal) and infinite discontinuities (vertical asymptotes).

  • Cannot be fixed by simply redefining f(c)f(c)f(c) – there is a genuine break.

Properties of Continuity

If bbb is a real number and fff and ggg are continuous at ccc, then the following are also continuous at ccc:

  • bfb fbf (scalar multiple)

  • f+gf + gf+g and f−gf - gf−g (sum/difference)

  • f⋅gf \cdot gf⋅g (product)

  • f/gf/gf/g (quotient), provided g(c)≠0g(c) \neq 0g(c)=0

The following types of functions are continuous at every point in their domain:

  • Polynomials

  • Rational functions (except where denominator is zero)

  • Radical functions (within domain)

  • Trigonometric functions (within domain)

This means when checking continuity, the main work is to find where a function is undefined, or for piecewise functions, where the pieces meet.

Checking for Continuity: Examples

Example 1: Finding a Limit by Rationalizing

Evaluate lim⁡x→4+x−2x−4\displaystyle \lim_{x \to 4^+} \frac{\sqrt{x} - 2}{x - 4}x→4+lim​x−4x​−2​.

Because direct substitution gives 0/00/00/0, rationalize the numerator:

lim⁡x→4+(x−2)(x+2)(x−4)(x+2)=lim⁡x→4+x−4(x−4)(x+2)=lim⁡x→4+1x+2\lim_{x \to 4^+} \frac{(\sqrt{x} - 2)(\sqrt{x} + 2)}{(x-4)(\sqrt{x} + 2)} = \lim_{x \to 4^+} \frac{x - 4}{(x-4)(\sqrt{x} + 2)} = \lim_{x \to 4^+} \frac{1}{\sqrt{x} + 2}limx→4+​(x−4)(x​+2)(x​−2)(x​+2)​=limx→4+​(x−4)(x​+2)x−4​=limx→4+​x​+21​

Now substitute x=4x=4x=4:

14+2=12+2=14\frac{1}{\sqrt{4} + 2} = \frac{1}{2+2} = \frac{1}{4}4​+21​=2+21​=41​

Thus lim⁡x→4+f(x)=14\displaystyle \lim_{x \to 4^+} f(x) = \frac{1}{4}x→4+lim​f(x)=41​.

Purpose: If you cannot find a limit, you cannot test continuity – so limit skills are essential.

Example 2: Limit of a Greatest Integer Function

Consider f(x)=3+⌊x⌋f(x) = 3 + \lfloor x \rfloorf(x)=3+⌊x⌋ (the greatest integer less than or equal to xxx).

Evaluate lim⁡x→3f(x)\displaystyle \lim_{x \to 3} f(x)x→3lim​f(x).

  • As x→3−x \to 3^-x→3−, ⌊x⌋=2\lfloor x \rfloor = 2⌊x⌋=2, so f(x)=5f(x) = 5f(x)=5.

  • As x→3+x \to 3^+x→3+, ⌊x⌋=3\lfloor x \rfloor = 3⌊x⌋=3, so f(x)=6f(x) = 6f(x)=6.

Because the left and right limits are different (5≠65 \neq 65=6), the two-sided limit does not exist.

Hence fff is discontinuous at x=3x=3x=3 (a jump discontinuity).

Example 3: Continuity on a Closed Interval

Check continuity of f(x)=2x2−9f(x) = \frac{2}{x^2 - 9}f(x)=x2−92​ on [−2,3][-2, 3][−2,3].

  • On the open interval (−2,3)(-2, 3)(−2,3), the function is continuous because rational functions are continuous where denominator ≠0\neq 0=0. The denominator is zero at x=±3x = \pm 3x=±3, but only x=3x=3x=3 is an endpoint.

  • At left endpoint x=−2x = -2x=−2: Compute lim⁡x→−2+2x2−9=24−9=−25\displaystyle \lim_{x \to -2^+} \frac{2}{x^2-9} = \frac{2}{4-9} = -\frac{2}{5}x→−2+lim​x2−92​=4−92​=−52​, and f(−2)=−25f(-2) = -\frac{2}{5}f(−2)=−52​. So left endpoint is fine.

  • At right endpoint x=3x = 3x=3: lim⁡x→3−2x2−9=29−9=20\displaystyle \lim_{x \to 3^-} \frac{2}{x^2-9} = \frac{2}{9-9} = \frac{2}{0}x→3−lim​x2−92​=9−92​=02​, which does not exist (vertical asymptote).

Since the right endpoint limit does not exist, fff is not continuous on the closed interval [−2,3][-2, 3][−2,3]. It would be continuous on the open interval (−2,3)(-2, 3)(−2,3).

Example 4: Finding Values Where a Function is Discontinuous

Find all xxx where f(x)=x−1x2+2x−3f(x) = \frac{x-1}{x^2 + 2x - 3}f(x)=x2+2x−3x−1​ is discontinuous.

Factor the denominator: x2+2x−3=(x−1)(x+3)x^2 + 2x - 3 = (x-1)(x+3)x2+2x−3=(x−1)(x+3).

So f(x)=x−1(x−1)(x+3)f(x) = \frac{x-1}{(x-1)(x+3)}f(x)=(x−1)(x+3)x−1​.

  • At x=1x=1x=1, the factor (x−1)(x-1)(x−1) cancels, leaving a hole (removable discontinuity).

  • At x=−3x=-3x=−3, denominator is zero with no cancellation → vertical asymptote (non-removable discontinuity).

Thus fff is discontinuous at x=1x=1x=1 (removable) and x=−3x=-3x=−3 (non-removable). Everywhere else it is continuous.

Example 5: Piecewise Function – Determine Continuity

Given

f(x)={−2,x<−13x+1,−1≤x<1x2,x≥1f(x) = \begin{cases} -2, & x < -1 \\ 3x + 1, & -1 \leq x < 1 \\ x^2, & x \geq 1 \end{cases}f(x)=⎩⎨⎧​−2,3x+1,x2,​x<−1−1≤x<1x≥1​

Check continuity at x=−1x=-1x=−1 and x=1x=1x=1.

  • At x=−1x=-1x=−1:

    • lim⁡x→−1−f(x)=−2\displaystyle \lim_{x \to -1^-} f(x) = -2x→−1−lim​f(x)=−2

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

    • f(−1)=3(−1)+1=−2f(-1) = 3(-1) + 1 = -2f(−1)=3(−1)+1=−2

    • Left limit = right limit = function value, so continuous at x=−1x=-1x=−1.

  • At x=1x=1x=1:

    • lim⁡x→1−f(x)=3(1)+1=4\displaystyle \lim_{x \to 1^-} f(x) = 3(1) + 1 = 4x→1−lim​f(x)=3(1)+1=4

    • lim⁡x→1+f(x)=(1)2=1\displaystyle \lim_{x \to 1^+} f(x) = (1)^2 = 1x→1+lim​f(x)=(1)2=1

    • Left limit ≠\neq= right limit, so the two-sided limit does not exist → discontinuous at x=1x=1x=1 (jump discontinuity).

Graphically: The pieces connect at x=−1x=-1x=−1 but there is a jump at x=1x=1x=1.

Example 6: Find a Constant to Make a Piecewise Function Continuous

Find aaa so that fff is continuous at x=0x=0x=0, where

f(x)={2sin⁡xx,x<02a−5x,x≥0f(x) = \begin{cases} \frac{2 \sin x}{x}, & x < 0 \\ 2a - 5x, & x \geq 0 \end{cases}f(x)={x2sinx​,2a−5x,​x<0x≥0​
  • Left-hand limit: lim⁡x→0−2sin⁡xx=2⋅lim⁡x→0−sin⁡xx=2⋅1=2\displaystyle \lim_{x \to 0^-} \frac{2 \sin x}{x} = 2 \cdot \lim_{x \to 0^-} \frac{\sin x}{x} = 2 \cdot 1 = 2x→0−lim​x2sinx​=2⋅x→0−lim​xsinx​=2⋅1=2.

  • Right-hand limit: lim⁡x→0+(2a−5x)=2a\displaystyle \lim_{x \to 0^+} (2a - 5x) = 2ax→0+lim​(2a−5x)=2a (direct substitution).

  • For continuity, left limit = right limit = f(0)f(0)f(0) (since f(0)f(0)f(0) is given by the second piece). So 2a=22a = 22a=2, giving a=1a = 1a=1.

With a=1a=1a=1, the function is continuous at x=0x=0x=0.


In summary: Continuity is a fundamental concept in calculus. Checking it involves verifying that the function is defined, the limit exists, and the limit equals the function value. For most functions, discontinuities occur only where the function is undefined (holes, asymptotes) or at boundaries in piecewise functions.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent