Definitions of Continuity and Discontinuity

 

Consider a function f whose graph is shown in the following figure. We can intuitively say that f is discontinuous at x=3,1,3, and 5 and is continuous at any other points; we don’t have to lift the pen to draw the graph of f except when x=3,1,3,5.

Figure 1: The function f is not continuous at x=3,1,3 and 5.

 

Read more detail about the above example

 

Here is the formal definition of continuity.

Definition 1: The function f is continuous at a if limxaf(x)=f(a)

It follows from the above definition that when the function f is continuous at a then

  1. f is defined at a.
  2. limxaf(x) exits (which requires that f to be defined on some open interval containing a).
  3. limxaf(x)=f(a)
  • When f is not continuous at a we say f is discontinuous at a or has a discontinuity at a.

 

Left and Right Continuities

 

In a similar fashion, we can define left and right continuities.

Definition 2: The function f is left-continuous at a (or continuous from the left) if limxaf(x)=f(a) The function is right-continuous at a (or continuous from the right) if limxa+f(x)=f(a).

  • It follows from the definitions that the function f is continuous at x=a if and only if it is left-continuous and right-continuous at the point a.

 

Continuity on an Interval

 

  • If a function is continuous at every x in an open interval (a,b), we say it is continuous over (a,b).
  • We say a function is continuous over a closed interval [a,b] if it is continuous over the open interval (a,b) and is left-continuous at a and right-continuous at b.
Example 1
Show that f(x)=34x2 is continuous on [2,2].

Solution

For 2<a<2, we have

limxaf(x)=limxa(34x2)=limxa3limxa4x2(by Difference Rule in Sec. 4.4)=3limxa(4x2)(by Root Rule)=34a2((4x2) is a Polynomial)=f(a)

Similarly, we can show limx2+f(x)=3=f(2),limx2f(x)=3=f(2) The graph of f is shown in the following figure.

Figure 2

 

Types of Discontinuity

1. Removable Discontinuity

 

We say that f has a removable discontinuity at x=a if limxaf(x)=L, and either f is not defined at a or f(a)L. We can make f(x) continuous at x=a, if L is assumed as the value of f(a).

Read More on Removable Discontinuity

2. Jump Discontinuity

We say f has a jump discontinuity at x=a if the right and left limits exist but have different values limxaf(x)limxa+f(x).

Read More on Jump Discontinuity

3. Infinite Discontinuity

We say f has an infinite discontinuity at x=a if one of the one-sided limits or both of them are plus or minus infinity.

Read More on Infinite Discontinuity

4. Oscillating Discontinuity

Read More on Oscillating Discontinuity


A function that is discontinuous at every point of its domain

Elementary Continuous Functions

Here are some elementary continuous functions

  1. Power functions. y=xn where n is a positive integer is continuous everywhere.

  2. Polynomials are continuous everywhere, because for any a, limxaP(x)=P(a)

  3. Rational functions. Let P(x)and Q(x) be two polynomials and Q(a)0. Then the rational function R(x)=P(x)Q(x) is continuous at x=a. In other words, a rational function is continuous on their domains and is discontinuous at the points where the denominator is zero.

  4. Root functions (1). y=xn where n is a positive odd integer is continuous everywhere.

  5. Root functions (2). y=xn where n is a positive even integer is continuous on its domain [0,).

  6. The sine and cosine functions are continuous on R=(,).
    Figure 8: y=sinx and y=cosx are continuous everywhere.
  7. The tangent, cotangent, secant and cosecant functions are continuous where they are defined; that is, on their domains. Specifically y=tanx is continuous everywhere except where cosx=0; that is when x=π2+kπ for all integers k. Thus y=tanx is continuous on {x| xπ2+kπ,kZ}

    Figure 9: y=tanx is continuous on its domain

    The graphs of the rest of trigonometric functions are illustrated in Figure . The domains of these functions are apparent from their graphs.

    (a) y=cotx (b) y=secx (c) y=cscx

    Figure 10

  8. Inverse trigonometric functions are continuous on their domains. For example, y=arcsinx and y=arccosx are continuous on [1,1]and y=arctanx is continuous on R=(,).

  9. Exponential functions. y=ex is continuous on its domain R=(,).

  10. Logarithmic functions. y=lnx is continuous on its domain (0,).

In fact, most of the functions that we deal with in this course are continuous on their domains. Some exceptions are:

  1. The greatest integer function (also known as the floor function) f(x)=x (or y=[[x]]) which is discontinuous at every integer (although it is defined everywhere).

    Graph of y=x

  2. Piece-wise defined functions are not necessarily continuous on their domains. For example, y=|x|={xif x0xif x<0 is continuous everywhere but the sign function y=sgn(x) and the Heaviside step function y=H(x) are continuous everywhere except when x=0. sgn(x)={1if x>00if x=01if x<0 H(x)={1if x00if x<0 [The Heaviside step function is right-continuous at x=0]

    (a) y=|x| is continuous everywhere (b) y=sgn(x) is discontinuous at x=0 (c) y=H(x) is discontinuous at x=0

    Figure 11

Example 2

Let f(x)={x2+3if x3mx+5if x<3

Solution

For what value of the constant m is the functionf continuous at x=3? The functionf is right-continuous at x=3: limx3+f(x)=limx3+(x2+3)=32+3=12=f(3). Therefore, f must be left-continuous at x=3 to be continuous at x=3. That is, we must have limx3f(x)=f(3) or limx3(mx+5)=3m+5=12 or m=73.

Example 3

For what values of x is there a discontinuity in the graph of f(x)=x24x23x+2?

Solution

f is a rational function, so it is discontinuous at the points where the denominator x23x+2 is zero: x23x+2=0x=3±324(2)2(1) [Recall that if ax2+bx+c=0, then x=(b±b24ac)/(2a)] x=2 or x=1 Therefore, f is discontinuous at x=1 and x=2. However, f has a removable discontinuity at x=2, because x24x23x+2=(x2)(x+2)(x1)(x2)=x+2x1(if x2). [Recall that A2B2=(AB)(A+B)], and limx2f(x)=limx2x+2x1=4. That is, if we define a new function g(x)={x24x23x+2if x24if x=2 then g is continuous at x=2, and its graph does not have a hole when x=2 (compare with the graph of f shown in the following figure.

Figure 12: Graph of f(x)=x24x23x+2.

Algebraic Operations on Continuous Functions

Theorem 1: If the functions f and g are continuous at x=a, and k is a number then the following functions are continuous at x=a:
1. Sum f(x)+g(x) 2. Difference f(x)g(x) 3. Constant Multiple kf(x) 4. Product f(x)g(x) 5. Quotient f(x)g(x)provided g(a)0 6. Power (f(x))nn is a positive integer

The results of the above theorem follow from the corresponding Limit Laws. For instance, to prove the sum property we have limxa(f(x)+g(x))=limxaf(x)+limxag(x)=f(a)+g(a)

Continuity of Composite Functions

Theorem 2: If limxag(x)=b and f is continuous at the point b, then limxaf(g(x))=f(limxag(x))=f(b).

Intuitively, the above theorem is plausible because limxag(x)=b means that when x is close to a, g(x) is close to b and the continuity of fat the point b means that if the input (which is here g(x)) is close to b, the output (which is here f(g(x))) is close to f(b).


Show the rigorous proof


  • The theorem holds when a is an endpoint of the domain, provided we use an appropriate one-sided limit in place of a two-sided one.

Proof of the Root Rule from Sec. 4.4

Example 4

Evaluate the following limits
(a) limx3sin(x+3x2+3x)
(b) limx1arctan(x+cos(π2x))
(c) limx0ln(1+etanx)

Solution

(a) Because y=sinx is a continuous function everywhere, by Theorem 2 we have limx3sin(x+3x2+3x)=sin(limx3x+3x2+3x) If we substitute x=3 in (x+3)/(x2+3x) we get 0/0, which shows the numerator and the denominator have a common factor: x+3x2+3x=x+3x(x+3)=1x(x3) Therefore, sin(limx3x+3x2+3x)=sin(limx3x+3x(x+3))=sin(limx31x)=sin(13)=sin(13)0.3272.

(b) Because y=arctanx is a continuous function, we have limx1arctan(x+cos(π2x))=arctan(limx1(x+cos(π2x)))=arctan(limx1x+limx1cos(π2x)) and again because y=cosx is a continuous function, we have arctan(limx1x+limx1cos(π2x))=arctan(limx1x+cos(limx1π2x))=arctan(1+cos(π2))=arctan(1+0)=π4. Therefore, limx1arctan(x+cos(π2x))=π4.

(c) Because y=lnx is a continuous function on its domain (0,), we have limx0ln(1+etanx)=ln(limx0(1+etanx))=ln(limx01+limx0etanx) Because y=ex is continuous everywhere, ln(limx01+limx0etanx)=ln(limx01+elimx0tanx)=ln(1+e0)=ln(1+1)=ln2. That is, limx0ln(1+etanx)=ln2.

Example 5

Find limxsin1x.

Solution

Because f(x)=sinx is continuous everywhere, limxsin1x=sin(limx1x). [Recall that limx±1xr=0 where r>0 is a rational number (Theorem 1 in Section 4.7)]. Thus sin(limx1x)=sin(0)=0. The graph of y=sin1x is shown below.

Figure 13: Graph of y=sin1x. We can see from this figure that limx±sin1x=0.

Example 6

Find
(a) limx0+arctan(1x)
(b) limx0arctan(1x)
(c) limxarctan(1x)
(d) limxarctan(1x)

Solution

(a) Because y=arctanx is a continuous function, we can find the limit of its input first. That is, limx0+arctan(1x)=arctan(limx0+1x)=arctan(+)=π2 [To be accurate, we cannot write arctan(+) because + is not a number] (b) Similar to part (a) limx0arctan(1x)=arctan(limx01x)=arctan()=π2.

(c) limx+arctan(1x)=arctan(limx+1x)=arctan(0)=0.

(d) limxarctan(1x)=arctan(limx1x)=arctan(0)=0. The graph of y=arctan(1/x) is shown in the following figure.

Figure 14: Graph of y=arctan1x.

It follows from Theorem 2 that

Theorem 3: If g is a continuous function at a and if fis continuous at g(a),then fg is continuous at a


Show the proof


Example 7
Where are the following functions continuous?
(a) h(x)=cos(x3+1)
(b) F(x)=|xcosxx2+1|
(c) G(x)=x2+2x2

Solution

(a) We have h(x)=f(g(x)) where f(x)=cosx and g(x)=x3+1. Because both f and g (which is a polynomial) are continuous on R, it follows from Theorem 3 that h=fg is also continuous on R.

(b) Notice that F is the composition of the following functions F=fg: f(x)=|x| and g(x)=xcosxx2+1 Obviously f is continuous on R. We can write g(x)=u(x)v(x)/w(x) where u(x)=x, v(x)=cosx, w(x)=x2+1 Because u,v and w are continuous functions on R and w(x)0, by the product and quotient rules (Theorem 1), g is continuous on R too. Because f and g are both continuous on R and F=fg, it follows from Theorem 3 that F is also continuous on R.

(c) We have G=fg where f(x)=x, and g(x)=x2+2x2 The square root function is continuous on its domain [0,), and g which is a polynomial is continuous on R. So by Theorem 3, G is continuous on its domain, which is {xR| x2+2x20} We can use the sign table to determine where g(x)=x2+2x20: x2+2x2=0x=b±b24ac2a=2±22+4×22=1±3 So we can write x2+2x2=(x+13)(x+1+3)

\large x   13   1+3  
sign of (x+13)   – – – – – – – – 0 + + + +  
sign of (x+1+3)   – – – – 0 + + + + + + + + +  
sign of x2+2x2   + + + + 0 – – – – 0 + + + +  

Therefore, G is continuous on the following set: {xR| x2+2x20}=(,13][1+3,)