Skip to content

Continuity of functions ​

Continuity at a point ​

Definition ​

Let f∈R→R be a function.

f is continuous at a ⟺df∀ε>0 ∃δ>0 ∀x∈B(a,δ)∩Df:f(x)∈B(f(a),ε)

If we denote set of functions that are continuous at a as C(a), then from the definition it follows that

  • if a is an isolated point of Df, then f is continuous at a.
  • if a is an accumulation point of Df, then
f is continuous at a⟺limx→af(x)=f(a)

Continuity of function ​

Definition ​

Let f∈R→R be a function.

The function f is continuous if it is continuous at every point of its domain.

∀a∈Df:f∈C(a)⟹f∈C(Df)

Discontinuities ​

Definition ​

Let f∈R→R, a∈Df.

f has a discontinuity at a if f∉C(a).

Types of discontinuities ​

Let f∈R→R, a∈Df, f∉C(a).

We say that a is a point of

  • removable discontinuity ⟺∃limx→af, but limx→af≠f(a).
  • jump discontinuity ⟺∃limx→a+f∧∃limx→a−f, but limx→a+f≠limx→a−f.
  • discontinuity of second kind ⟺∄limx→a−f∨∄limx→a+f.

Transference theorem of continuity ​

f∈C(a)⟺∀xn∈Df(n∈N)limn→∞xn=a⟹limn→∞f(xn)=f(a)

Using the transference theorem of continuity, we can prove the following:

f,g∈C(a), c∈R⟹
  • f+g∈C(a)
  • f−g∈C(a)
  • f⋅g∈C(a)
  • fg∈C(a), if g(a)≠0
  • c⋅f∈C(a)
  • f∘g∈C(a)

Bolzano's theorem ​

Let f:[a,b]→R be a continuous function.

Suppose that f(a)≠f(b), for example f(a)<f(b). Then

∀c∈(f(a),f(b)) ∃x∈[a,b]:f(x)=c

Example 1 ​

Discuss the continuity of the following function:

f(x)={x2−5x+6x2−7x+10ifx∈R, x≠2, x≠50ifx∈{2,5}

Solution ​

  1. Since polynomials are continuous everywhere, using the transference theorem of continuity, we can conclude that the function is continuous if x≠2∧x≠5.

x∈R∖{2,5}:f∈C(x). Since x2−7x+10≠0

  1. If x=2.
limx→2f(x)=limx→2x2−5x+6x2−7x+10=limx→2(x−2)(x−3)(x−2)(x−5)=limx→2x−3x−5=−1−3=13

So

∃limx→2f(x)=13

but f(2)=0≠13, so f has a removable discontinuity at x=2.

  1. If x=5
limx→5±0f(x)=limx→5±0x−3x−5=±∞

So f has a discontinuity of second kind at x=5.

Example 2 ​

Discuss the continuity of the following function:

f(x)={3−x9−xifx≥0, x≠90ifx=9

Solution ​

  1. If x≥0, x≠9, then f∈C(x) by theorem of transference of continuity (9−x≠0).
  2. If x=9
limx→9f(x)=limx→93−x9−x=limx→93−x(3−x)(3+x)=limx→913+x=16

So

∃limx→9f(x)=16

but f(9)=0≠16, so f has a removable discontinuity at x=9.

Example 3 ​

Discuss the continuity of the following function:

f(x)={x−7|x−7|ifx≠75ifx=7

Solution ​

  1. If x≠7, then f∈C(x) by theorem of transference of continuity. Since |x−7|≠0.
  2. If x=7
x>7:f=1⟹f∈C(x)x<7:f=−1⟹f∈C(x)x=7:limx→7+0f(x)=1≠−1=limx→7−0f(x)

So f has a jump discontinuity at x=7.

Example 4 ​

Discuss the continuity of the following function:

f(x)={2x+1ifx≤−13xif−1<x<12x−1ifx≥1

Solution ​

  1. If x∈(−∞,−1)∪(1,+∞)∪(−1,1), then f∈C(x)
  2. If x=−1
limx→−1+0f(x)=limx→−1+03x=−3f(−1)=2⋅(−1)+1=−1

So f has a jump discontinuity at x=−1.

  1. If x=1
limx→1−0f(x)=limx→1−03x=3f(1)=2⋅1−1=1

So f has a jump discontinuity at x=1.

Example 5 ​

Discuss the continuity of the following function:

f(x)={1x+1ifx<−1xif−1≤x<0ln⁡(x+1)ifx≥0

Solution ​

  1. If x∈R∖{−1,0}, then f∈C(x)
  2. If x=−1
limx→−1−0f(x)=limx→−1−01x+1=−∞f(−1)=−1

So f has a discontinuity of second kind at x=−1.

  1. If x=0.
limx→0−0f(x)=limx→0−0x=0f(0)=ln⁡(0+1)=0

So f is continuous at x=0. f∈C(0).

Example 6 ​

Determine f(0) so that the function f:R→R is continuous.

f(x)=(1+x)n−1x(x∈R∖{0}, n∈N)

Solution ​

If ∃limx→0f(x)=α, then f(0)=α⟹f∈C(0).

limx→0f(x)=limx→0(1+x)n−1x=limx→0(1+x−1)((1+x)n−1+…+1)x==limx→0((1+x)n−1+…+1)=n

So f(0)=n.

Example 7 ​

Determine f(0) so that the function f:R→R is continuous.

f(x)=1−cos⁡(x)x2(x∈R∖{0})

Solution ​

If ∃limx→0f(x)=α, then f(0)=α⟹f∈C(0).

limx→0f(x)=limx→01−cos⁡(x)x2=12

So f(0)=12.

Example 8 ​

Prove that given equation have roots in the given interval:

x3−3x+1=0in the interval(0,1)

Also compute the first three terms of the sequence that approximates the root. Estimate the error of the approximation with the 3rd term.

Solution ​

f(x)=x3−3x+1(x∈R)⟹f∈Cf(0)=1>0,f(1)=−1<0

By Bolzano's theorem, ∃c∈(0,1):f(c)=0.

Let's find the first three terms of the sequence that approximates the root.

[x0,y0]=[0,1]half point:12f(12)=−38<0[x1,y1]=[0,12]half point:14f(14)=1764>0[x2,y2]=[14,12]

Approximating sequence:

(xn)=0,0,14,…(yn)=1,12,12,…

Error of the approximation with the 3rd term: |c−x2|=|14−12|=14

Example 9 ​

Prove that given equation have roots in the given interval:

x2=x+1in the interval(1,2)

Solution ​

f(x)=x2−x+1(x≥−1)⟹f∈Cf(1)=1−2<0,f(2)=4−3>0

By Bolzano's theorem, ∃c∈(1,2):f(c)=0.

Example 10 ​

Prove that given equation have roots in the given interval:

cos⁡x=xin the interval(0,π2)

Solution ​

f(x)=cos⁡x−x(x∈R)⟹f∈Cf(0)=1−0>0,f(π2)=0−π2<0

By Bolzano's theorem, ∃c∈(0,π2):f(c)=0.

Example 11 ​

Prove that given equation have roots in the given interval:

ex=2−xin the intervalR

Solution ​

f(x)=ex−2+x(x∈R)⟹f∈Cf(0)=1−2<0,f(1)=e−1>0

By Bolzano's theorem, ∃c∈(0,1):f(c)=0.

Example 12 ​

Prove that given equation have roots in the given interval:

x5−x2+2x+3=0in the intervalR

Solution ​

f(x)=x5−x2+2x+3(x∈R)⟹f∈Cf(0)=3>0,f(−1)=−1−1−2+3=−1<0

By Bolzano's theorem, ∃c∈R:f(c)=0.