Skip to main content
Mathematics LibreTexts

Continuity

  • Page ID
    219393
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Continuity

    Continuity

    If a graph has no holes asymptotes, or breaks then the function is continuous.  Or if you can draw the function without lifting your pencil then it is continuous.  Below is a formal definition.

     

    Definition of Continuity

    A function is continuous at x = c if 

              \( \lim\limits_{x \to c}f(x) = f(c) \)


    Note that in order for a function to be continuous at a point, three things must be true:
     

    1. The limit must exist at that point.

    2.  The function must be defined at that point,  and 

    3. The limit and the function must have equal values at that point.

                Graph of a piecewise function with a vertical asymptote at x = -2, a hole at x = -1, a jump at x=0 from y=-1 to y=1 and filled in at y=5, and a jump at x=2 with the hole filled in at the right side.

    Notice that the function represented by the graph above is not continuous at 

            x = -2, x = -1, x = 0, and x = 2

    Below is a list of function that are continuous.

    Continuous Functions:  
     

    1. Polynomials

    2. sin and cos

    3. Rational Functions where the denominator is nonzero

    4. Sums, Differences, and Products of continuous functions

    5. Quotients of continuous functions where the denominator function is nonzero

    6. Compositions of continuous functions
       



    Examples:

    The following are continuous:

    1. y = x2 + 3x - 4

    2. y = x sin x

    3.              1
      y  =              
                1+ x2



     

    Exercises:  

    Determine whether the following are continuous.  If they are not continuous, at which points are they discontinuous?

    1.           x - 1
      y  =              
                x + 1

       

    2.                 x
      y  =                      
                x2 + 3x - 4

       

    3. y = { 2x + 3 for x < 1
      3x - 2 for x > 1

       

    4. y = { x2  for x < 2
      5x - 6 for x > 2

     

    1. For what value of k is the function continuous?

       
      f(x) = { 3x2  -5 for x < 1
      5x + k for x > 1

     


    One Sided Limits

    For a function with a break the limit does not exist, however it is still interesting to consider where the path is heading towards on the left side and where it heading on the right.  For example if

                             |x|
              f(x)  =                 
                              x

    then for x negative 

            f(x)  =  -1  

    while for x positive, 

            f(x) = 1  

    We write

            \(  \lim\limits_{x \to 0^{-}} f(x) = -1 \)

    and

            
    \(  \lim\limits_{x \to 0^{+}} f(x) = 1 \)


     

    The Intermediate Value Theorem

    Suppose a continuous function starts at the bottom left of the xy-plane and ends at the top right of the xy-plane.  Now draw a horizontal line somewhere in the middle of the page.  Can you draw a continuous function (that is without lifting the pencil from the paper) from the bottom left to the top right without crossing the line?  The answer is certainly no.  Try it!  The intermediate value theorem formalizes this idea.

            x and y axes, start here is on the bottom left, just above the x-axis is a line that says "Do not cross this line" and End Here is on the top right.

     

                   The Intermediate Value Theorem

    If f is continuous on [a,b]  and 

              f(a) < k < f(b) 

    then there exists at least one number c in the closed interval [a,b] for which 

              f(c) = k


    In particular if f(a) and f(b) have different signs, then f has a root between a and b.  


    Example

    Show that the curve defined by 

            y  =  8x7 + x4 - 2x3 + x - 3

    has a root between -1 and 1.


    Solution

    We apply the intermediate value theorem.  The function 

            f(x) =  8x7 + x4 - 2x3 + x - 3

    is continuous between -1 and 1, since it is a polynomial.  We have 

            f(-1) = -8 + 1 + 2 - 1 - 3 = -9

    and 

            f(1) = 8 + 1 - 2 + 1 - 3 = 5

    Since 

            f(-1) < 0 < f(1)        Here k = 0

    By the Intermediate Value Theorem, there is a c between -1 and 1 with 

            f(c) = 0
     

    Exercise:  

    Write psudocode to find a root of a function

     


    Back to Limits and Continuity Page

     

    Continuity is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?