The feature of continuity can be seen on a day to day basis. For instance, the human heart is beating continuously even when the person is sleeping. A continuous function is one which can be drawn on a graph paper without lifting a pen or pencil. In this article, students will learn about Continuity in an interval.

In mathematical terms, the definition of continuity is as follows.

A function f(x) is said to be continuous at a point if the following conditions are met.

- The function at that point exists being finite.
- The left and right-hand limit of the function is present.
- The limit Lim
_{x→a}f(x) = f(a) where is the point

The function f (x) is declared to be continuous if the above three conditions are satisfied for every point on the interval. If any of the functions are not satisfied, then the function is discontinuous at that point.

## Basic Concepts on Continuity

The following are the basic concepts of continuity:

### Open And Closed Intervals

An interval is called open if it doesn’t include the endpoints. It is denoted by ( ). For instance, (1, 2) means greater than 1 and less than 2. A closed interval is one which includes all the limit points. It is denoted by [ ]. For example, [2, 5] means greater than or equal to 2 and less than or equal to 5. An open interval is termed as half-open interval if it consists of one of its endpoints. It is written as ( ]. (0, 2] means greater than 0 and less than or equal to 2 and [0, 2) is greater than or equal to 0 and less than 2.

If a, b ∈ R and a < b, the following is a representation of the open and closed intervals.

- Open interval is indicated by (a, b) = {x : a < y < b}.
- Closed interval is indicated by [a, b] = {x : a ≤ x ≤ b}.
- [ a, b ) = {x : a ≤ x < b} is an open interval from a to b, inclusive of a but excluding
- ( a, b ] = { x : a < x ≤ b } is an open interval from a to b including b but excluding
- The mandatory condition for continuity of the function f at point x = a [considering a to be finite] is that lim
_{x→a}^{–}f(x) and lim_{x→a}^{+}f(x) should exist and be equal to f (a). - The function f (x) is said to be continuous:

- In an open interval: if it is continuous at every point in the interval
- In the closed interval: if

- f(x) is continuous in (a, b)
- Lim
_{x→a}^{+ }f (x) = f(a) - lim
_{x→a}^{–}f(x) = f(a)

## Weierstrass Approximation Theorem

If f is a continuous real-valued function on [a, b] and if any ε >0 is given, then there exists a polynomial p on [a, b] such that

**|f(x)-P(x)|< ε for all x in [a,b]**

In other words, a continuous function on a closed and bounded interval can be uniformly approximated on that interval by polynomials to any degree of accuracy.

### Also Read

Limits Continuity and Differentiability

## Continuity In Interval Examples

**Example 1: **If the function

**Solution: **

f (π / 2) = 3.

Since f(x) is continuous at x = π / 2

⇒ lim_{x→π/2 }(k cosx / π − 2x) = f (π / 2)

⇒ k / 2 = 3

⇒ k = 6

**Example 2: **If

**Solution: **

f (1) = 2, f (1+) = lim_{x→1+ }(x^{2}− 4x + 3) /(x^{2 }− 1) = lim_{x→1+}(x − 3) / (x + 1) = −1

f (1−) = lim_{x→1−}(x^{2}− 4x + 3)/(x^{2 }− 1) = −1

⇒ f (1) ≠ f (1−)

Hence, the function is discontinuous at x = 1

**Example 3: **What is the value of f(0) in the function f(x) = [(27 − 2x)^{1/3 }−3] / 9 − 3 (243 + 5x)^{1/5},

(x ≠ 0) is continuous?

**Solution: **

Since f (x) is continuous at x = 0, therefore

f (0) = lim_{x→0 }f(x) = lim_{x→0 }[(27 − 2x)^{1/3 }−3] / 9 − 3 (243 + 5x)^{1/5}, (Form 0 / 0)

= lim_{x→0} [1 / 3] (27−2x)^{−2/3}(−2) / [−3 / 5] (243 + 5x)^{−4/5 }(5)

= 2

**Example 4:** Let

\frac{x-4}{\left| x-4 \right|}+a & \text{ if } x<4 \\

a+b & \text{ if } x= 4\\

\frac{x-4}{\left| x-4 \right|}+b & \text{ if } x>4

\end{cases}\end{array} \)

A) a = 0, b = 0

B) a = 1, b = 1

C) a = −1, b = 1

D) a = 1, b = −1

**Solution:**

We have L.H.L.

R.H.L

Therefore, f(4) = a + b

Since f(x) is continuous at x = 4,

or

a – 1 = a + b = b + 1

or

b = -1 and a = 1

**Example 5: **Let

**Solution:**

Thus,

**Example 6:** If

A) f(|x|) is discontinuous at x = 0

B) f(|x|) is differentiable at x = 0

C) |f(x)| is non-differentiable at x = 0, 2

D) |f(x)| is continuous at x = 0

**Solution:**

Clearly, |f(x)| is continuous at x = 0 but non-differentiable at x = 0.

Clearly, |f(x)| is discontinuous at x = 0 but non-differentiable at x = 2.

Also,

### Related Video:

#### Limits, Continuity and Differentiability – Important Topics

#### Limits, Continuity and Differentiability – Important Questions

## Frequently Asked Questions

### What are the conditions for a function f(x) to be continuous at a point?

A function is said to be continuous at a point, if it is defined at that point, its limit must exist at that point, and the value of the function at that point is equal to the value of the limit at that point.

### Is continuity necessary for differentiability?

Yes. Any differentiable function must be continuous at every point in its domain.

### State Weierstrass approximation theorem.

If f is a continuous real-valued function on [a,b] and if any ϵ >0 is given, then there exists a polynomial p on [a, b] such that |f(x)-P(x)|< ϵ for all x ∈ [a,b]. In other words, a continuous function on a closed and bounded interval can be uniformly approximated on that interval by polynomials to any degree of accuracy.

### Is sin x a continuous function?

Yes. sin x is continuous for every real number.