Skip to main content

Exercises Exercises

1.

Let f:R→R be defined by f(x)=|x|, with the Euclidean metric on both the domain and the codomain. Is f continuous at x=0? Prove your answer.

2.

Let f:Rβ†’R be defined by f(x)={x|x| if xβ‰ 01 if x=0. Is f continuous at x=0? Prove your answer.

3.

Let (Y,dY)=(R,dE), where dE is the Euclidean metric.

(a)

Let (X,dX)=(R2,dE). Prove or disprove: the function f:X→Y defined by f((x1,x2))=x1+x2 is continuous.

(b)

Let (X,dX)=(R2,dM) where dM is the max metric. Prove or disprove: the function f:X→Y defined by f((x1,x2))=x1+x2 is continuous.

4.

Let X be any set and define d:X×X→R by
d(x,y)={0 if x=y1 if xβ‰ y.
Exercise 1 asks us to show that d is a metric (the discrete metric) on R. Let (X,dX) and (Y,dY) be metric spaces with dX the discrete metric. Determine all of the continuous functions f from X to Y.

5.

Let f and g be continuous functions from (R,dE) to (R,dE).

(a)

Let k∈R with kβ‰ 0 and define kf:Rβ†’R by (kf)(x)=kf(x) for all x∈R. Show that kf is a continuous function.

(b)

Define f+g:Rβ†’R by (f+g)(x)=f(x)+g(x) for all x∈R. Show that f+g is a continuous function.

6.

Let f and g be continuous functions from (R,dE) to (R,dE). In this exercise we will prove that fg is a continuous function from R to R. Let a be in R, and follow the steps below to show that fg is continuous at x=a. Let Ο΅ be a positive number.

(a)

We will first want to express f(x)g(x)βˆ’f(a)g(a) in a more useful way. Use the fact that f(x)=f(a)+(f(x)βˆ’f(a)) and g(x)=g(a)+(g(x)βˆ’g(a)) to show that
f(x)g(x)βˆ’f(a)g(a)=f(a)(g(x)βˆ’g(a))+g(a)(f(x)βˆ’f(a))+(f(x)βˆ’f(a))(g(x)βˆ’g(a)).

(b)

Explain why there exist positive numbers Ξ΄1, Ξ΄2, Ξ΄3, and Ξ΄4 such that
|f(x)βˆ’f(a)|<Ο΅3 when |xβˆ’a|<Ξ΄1|g(x)βˆ’g(a)|<Ο΅3 when |xβˆ’a|<Ξ΄2|f(x)βˆ’f(a)|<Ο΅3(1+|g(a)|) when |xβˆ’a|<Ξ΄3|g(x)βˆ’g(a)|<Ο΅3(1+|f(a)|) when |xβˆ’a|<Ξ΄4.

(c)

Use the results of (a) and (b) to show that fg is continuous at x=a. (Hint: 1+|f(a)|>|f(a)|.)

7.

Let f and g be functions from (R,dE) to (R,dE).

(a)

Is it true that if f+g is a continuous function, then f and g are continuous functions? Verify your answer.

(b)

Is it true that if fg is a continuous function, then f and g are continuous functions? Verify your answer.

8.

Let f(x)=2x2+1 map from R to R, with both the domain and codomain having the Euclidean metric.

(a)

Let Ο΅=14. Find a value of Ξ΄ such that |xβˆ’1|<Ξ΄ implies that |f(x)βˆ’f(a)|<Ο΅. You might use the applet at to confirm your value of Ξ΄.

10.

Let f:Rβ†’R be a continuous function, with both copies of R having the Euclidean metric. Assume that f(x)=0 whenever x is rational. Prove that f(x)=0 for every x∈R.

11.

Let f:R→R be defined by f(x)=0 if x is irrational and f(x)=1 if x is rational. Assume the Euclidean metric on both copies of R. Show that f is not continuous at any point in R.

12.

Let g:R→R be defined by g(x)=0 if x is irrational and g(x)=x if x is rational. Assume the Euclidean metric on both copies of R. Show that g is continuous only at 0.

13.

Let X be the set of continuous functions f:[a,b]β†’R. Let dβˆ— be the distance function on X defined by
dβˆ—(f,g)=∫ab|f(t)βˆ’g(t)|dt,
for f,g∈X. For each f∈X, set
I(f)=∫abf(t)dt.

(a)

Determine the value of dβˆ—(f,g) when f(x)=x2, g(x)=3βˆ’2x, and [a,b]=[βˆ’3,3].

(c)

Prove that the function I:(X,dβˆ—)β†’(R,d) is continuous, where d is the Euclidean metric.
Hint.
It helps to start by explicitly writing down what it means for I to be continuous in terms of the metrics dβˆ— and d before trying to prove this statement.

14.

For each of the following, answer true if the statement is always true. If the statement is only sometimes true or never true, answer false and provide a concrete example to illustrate that the statement is false. If a statement is true, explain why.

(a)

Let f:X→Y be a function, where (X,dX) and (Y,dY) are metric spaces. If dX is the discrete metric and dY is any metric, then f is continuous.

(b)

Let f:X→Y be a function, where (X,dX) and (Y,dY) are metric spaces. If dY is the discrete metric and dX is any metric, then f is continuous.

(c)

Let d1 and d2 be two metrics on a set X. The identity function iX:(X,d1)β†’(X,d2) defined by iX(x)=x for every x∈X is continuous.

(d)

Let f and g be continuous functions from (R2,dT) (the taxicab metric) to (R,dE). Then the function f+g from (R2,dT) to (R,dE) defined by (f+g)(x)=f(x)+g(x) for every x∈R2 is a continuous function.

(e)

If (X,dX) and (Y,dY) are metric spaces with y∈Y, then the constant function f:Xβ†’Y defined by f(x)=y for every x∈X is a continuous function.