Intuitive Concept of Continuity

Intuitively, a function is said to be continuous at a point if the graph of the function around that point can be drawn without lifting the pen from the plane of the paper. This idea is only a visual guide, but it is useful in building intuition.

Consider the function f(x)={1,x02,x>0f(x) = \begin{cases} 1, & x \le 0 \\ 2, & x > 0 \end{cases} At x=0x=0, the left hand limit is limx0f(x)=1,\lim_{x \to 0^-} f(x) = 1, and the right hand limit is limx0+f(x)=2.\lim_{x \to 0^+} f(x) = 2. Since these two one-sided limits are different, the limit of f(x)f(x) at x=0x=0 does not exist. Therefore, the function is not continuous at x=0x=0.

Now consider another function f(x)={1,x02,x=0f(x) = \begin{cases} 1, & x \ne 0 \\ 2, & x = 0 \end{cases} Here, limx0f(x)=1andlimx0+f(x)=1,\lim_{x \to 0^-} f(x) = 1 \quad \text{and} \quad \lim_{x \to 0^+} f(x) = 1, so the limit exists and is equal to 1. However, f(0)=2.f(0) = 2. Since the limit exists but is not equal to the value of the function at the point, this function is also not continuous at x=0x=0.

Thus, continuity requires more than just the existence of the function value or the limit separately; they must agree.


Formal Definition of Continuity at a Point

Suppose ff is a real-valued function defined on a subset of the real numbers, and let cc be a point in the domain of ff. Then ff is said to be continuous at cc if limxcf(x)=f(c).\lim_{x \to c} f(x) = f(c).

More explicitly, a function is continuous at x=cx=c if all three of the following conditions hold:

  1. f(c)f(c) is defined,
  2. limxcf(x)\lim_{x \to c} f(x) exists,
  3. limxcf(x)=f(c)\lim_{x \to c} f(x) = f(c).

Equivalently, for interior points of the domain, continuity at cc means limxcf(x)=limxc+f(x)=f(c).\lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x) = f(c).

If any one of these conditions fails, the function is said to be discontinuous at cc, and cc is called a point of discontinuity.

If the domain of ff consists of only one point, then ff is continuous on that domain by definition, because there is no nearby point in the domain at which continuity can fail.


Continuity of a Function

A real function ff is said to be continuous if it is continuous at every point in its domain.

If a function is defined on a closed interval [a,b][a,b], then continuity on [a,b][a,b] means:

  • ff is continuous at every interior point of (a,b)(a,b),
  • ff is right continuous at aa, that is, limxa+f(x)=f(a),\lim_{x \to a^+} f(x) = f(a),
  • ff is left continuous at bb, that is, limxbf(x)=f(b).\lim_{x \to b^-} f(x) = f(b).

This endpoint condition is important because at the endpoints of a closed interval, only one-sided limits are relevant.


Algebra of Continuous Functions

The algebra of continuous functions closely parallels the algebra of limits.

Suppose ff and gg are two real-valued functions continuous at a real number cc. Then:

  1. f+gf+g is continuous at cc,
  2. fgf-g is continuous at cc,
  3. fgfg is continuous at cc,
  4. fg\dfrac{f}{g} is continuous at cc, provided g(c)0g(c) \ne 0.

These facts follow from the corresponding laws of limits.

Special consequences:

  • If λ\lambda is a constant and gg is continuous at cc, then λg\lambda g is continuous at cc.
  • If ff is continuous at cc, then f-f is continuous at cc.
  • If gg is continuous at cc and g(c)0g(c) \ne 0, then 1g\frac{1}{g} is continuous at cc.

Continuity of Composite Functions

Let ff and gg be real-valued functions such that the composite function (fg)(f \circ g) is defined at cc.

If gg is continuous at cc and ff is continuous at g(c)g(c), then the composite function (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)) is continuous at cc.

This theorem is extremely useful. It allows us to conclude continuity of complicated expressions by recognizing them as compositions of simpler continuous functions.

Solved Examples

Example 1: Checking Continuity at a Point

Check the continuity of the function f(x)=2x+3f(x) = 2x + 3 at x=1x = 1.

Solution: Step 1: Find the value of the function at the point: f(1)=2(1)+3=5.f(1) = 2(1) + 3 = 5.

Step 2: Find the limit of the function as x1x \to 1: limx1(2x+3)=2(1)+3=5.\lim_{x \to 1} (2x+3) = 2(1)+3 = 5.

Step 3: Compare the limit with the function value: limx1f(x)=5=f(1).\lim_{x \to 1} f(x) = 5 = f(1).

Hence, ff is continuous at x=1x=1.

In fact, since 2x+32x+3 is a linear polynomial, it is continuous for every real number.


Example 2: Continuity of Modulus Function

Examine whether the function f(x)=xf(x) = |x| is continuous at x=0x = 0.

Solution: Recall that x={x,x<0x,x0|x| = \begin{cases} -x, & x<0 \\ x, & x \ge 0 \end{cases}

Step 1: Find the function value at 0: f(0)=0=0.f(0) = |0| = 0.

Step 2: Find the left hand limit: limx0x=limx0(x)=0.\lim_{x \to 0^-} |x| = \lim_{x \to 0^-} (-x) = 0.

Step 3: Find the right hand limit: limx0+x=limx0+x=0.\lim_{x \to 0^+} |x| = \lim_{x \to 0^+} x = 0.

Step 4: Compare all three values: limx0x=limx0+x=f(0)=0.\lim_{x \to 0^-} |x| = \lim_{x \to 0^+} |x| = f(0) = 0.

Therefore, f(x)=xf(x) = |x| is continuous at x=0x=0.

Since x|x| is also continuous for all x<0x<0 and all x>0x>0, it is continuous for every real number.


Example 3: Finding Points of Discontinuity

Show that the function ff given by f(x)=x3+3f(x) = x^3 + 3 if x0x \ne 0, and f(x)=1f(x) = 1 if x=0x = 0 is not continuous at x=0x = 0.

Solution: Step 1: Find the function value at the point: f(0)=1.f(0) = 1.

Step 2: For x0x \ne 0, the function is x3+3x^3+3, so limx0f(x)=limx0(x3+3)=03+3=3.\lim_{x \to 0} f(x) = \lim_{x \to 0} (x^3+3) = 0^3 + 3 = 3.

Step 3: Compare the limit with the function value: limx0f(x)=31=f(0).\lim_{x \to 0} f(x) = 3 \ne 1 = f(0).

Hence the function is not continuous at x=0x=0.

Also, for every x0x \ne 0, the function behaves like the polynomial x3+3x^3+3, which is continuous. Therefore, the only point of discontinuity is x=0x=0.


Example 4: Continuity of Constant and Polynomial Functions

Prove that every polynomial function is continuous.

Solution: Let p(x)=a0+a1x+a2x2++anxnp(x) = a_0 + a_1x + a_2x^2 + \cdots + a_nx^n be a polynomial.

Each constant function is continuous. The function xx is continuous. Therefore, powers such as x2,x3,,xnx^2, x^3, \dots, x^n are continuous because products of continuous functions are continuous.

Now each term akxka_k x^k is continuous, since it is a constant multiple of a continuous function.

Finally, a polynomial is a finite sum of such continuous terms. Since sums of continuous functions are continuous, p(x)p(x) is continuous.

Hence every polynomial function is continuous at every real number.


Example 5: Continuity of Greatest Integer Function

Find all the points of discontinuity of the greatest integer function defined by f(x)=[x]f(x) = [x].

Solution: The greatest integer function [x][x] gives the greatest integer less than or equal to xx.

We consider two cases.

Case 1: cc is not an integer If cc is not an integer, then for all xx sufficiently close to cc, the value of [x][x] remains equal to [c][c]. Hence, limxc[x]=[c]=f(c).\lim_{x \to c} [x] = [c] = f(c). So the function is continuous at every non-integer point.

Case 2: cc is an integer Let c=nc=n, where nn is an integer. Then:

  • just to the left of nn, we have [x]=n1[x] = n-1,
  • just to the right of nn, we have [x]=n[x] = n.

Therefore, limxn[x]=n1,\lim_{x \to n^-} [x] = n-1, limxn+[x]=n.\lim_{x \to n^+} [x] = n. Since these one-sided limits are different, the limit at x=nx=n does not exist. Hence the function is discontinuous at every integer.

So the greatest integer function is continuous at all non-integers and discontinuous at all integers.


Example 6: Discussing Continuity of Piecewise Functions

Discuss the continuity of the function defined by f(x)=x+2f(x) = x + 2 if x1x \le 1, and f(x)=x2f(x) = x - 2 if x>1x > 1.

Solution: The function is defined for all real numbers. We check continuity in three cases.

Case 1: c<1c < 1 Then near cc, the function is simply f(x)=x+2.f(x) = x+2. So, limxcf(x)=limxc(x+2)=c+2=f(c).\lim_{x \to c} f(x) = \lim_{x \to c} (x+2) = c+2 = f(c). Hence the function is continuous for all x<1x<1.

Case 2: c>1c > 1 Then near cc, the function is f(x)=x2.f(x) = x-2. So, limxcf(x)=limxc(x2)=c2=f(c).\lim_{x \to c} f(x) = \lim_{x \to c} (x-2) = c-2 = f(c). Hence the function is continuous for all x>1x>1.

Case 3: c=1c = 1 Left hand limit: limx1f(x)=limx1(x+2)=3.\lim_{x \to 1^-} f(x) = \lim_{x \to 1^-} (x+2) = 3. Right hand limit: limx1+f(x)=limx1+(x2)=1.\lim_{x \to 1^+} f(x) = \lim_{x \to 1^+} (x-2) = -1. Since limx1f(x)limx1+f(x),\lim_{x \to 1^-} f(x) \ne \lim_{x \to 1^+} f(x), the limit at x=1x=1 does not exist. Therefore the function is not continuous at x=1x=1.

Hence the function is continuous everywhere except at x=1x=1, which is the only point of discontinuity.


Example 7: Continuity of Trigonometric Functions

Discuss the continuity of the sine function.

Solution: Let f(x)=sinx.f(x) = \sin x. We want to check continuity at an arbitrary real number cc.

Step 1: Write x=c+hx = c+h, where h0h \to 0 as xcx \to c. Then, limxcsinx=limh0sin(c+h).\lim_{x \to c} \sin x = \lim_{h \to 0} \sin(c+h).

Step 2: Use the angle addition formula: sin(c+h)=sinccosh+coscsinh.\sin(c+h) = \sin c \cos h + \cos c \sin h. So, limxcsinx=limh0(sinccosh+coscsinh).\lim_{x \to c} \sin x = \lim_{h \to 0} \big(\sin c \cos h + \cos c \sin h\big).

Step 3: Use the standard limits limh0cosh=1,limh0sinh=0.\lim_{h \to 0} \cos h = 1, \qquad \lim_{h \to 0} \sin h = 0. Therefore, limxcsinx=sinc1+cosc0=sinc.\lim_{x \to c} \sin x = \sin c \cdot 1 + \cos c \cdot 0 = \sin c.

Since limxcsinx=sinc=f(c),\lim_{x \to c} \sin x = \sin c = f(c), sinx\sin x is continuous at x=cx=c.

As cc was arbitrary, the sine function is continuous for all real numbers.


Example 8: Continuity of Composite Functions

Show that the function defined by f(x)=sin(x2)f(x) = \sin(x^2) is a continuous function.

Solution: Write f(x)=sin(x2)f(x) = \sin(x^2) as a composition of two functions: h(x)=x2,g(x)=sinx.h(x) = x^2, \qquad g(x) = \sin x. Then f(x)=(gh)(x).f(x) = (g \circ h)(x).

Now:

  • h(x)=x2h(x) = x^2 is a polynomial, so it is continuous for all real numbers.
  • g(x)=sinxg(x) = \sin x is continuous for all real numbers.

By the theorem on continuity of composite functions, since hh is continuous at every real number and gg is continuous at every value of h(x)h(x), the composite function g(h(x))=sin(x2)g(h(x)) = \sin(x^2) is continuous for all real numbers.

Hence f(x)=sin(x2)f(x)=\sin(x^2) is a continuous function.