§1\S 1 - Smooth Functions on a Euclidean Space

1.1. A function that is C2C^2 but not C3C^3

Let g:RRg: \mathbb{R} \to \mathbb{R} be the function in Example 1.2(iii). Show that the function h(x)=0xg(t)dth(x) = \int_0^x g(t) \, dt is C2C^2 but not C3C^3 at x=0x = 0.

Solution

First, recall that g:RRg: \mathbb{R} \to \mathbb{R} is defined as
g(x)=34x4/3g(x) = \frac{3}{4}x^{4/3}

So
g(x)=x1/3g'(x) = x^{1/3}

And
g(x)={13x2/3for x0,undefinedfor x=0.g''(x) = \begin{cases} \frac{1}{3}x^{-2/3} & \text{for } x \ne 0, \\ \text{undefined} & \text{for } x = 0. \end{cases}
By the fundamental theorem of calculus h(x)=g(x)h'(x) = g(x), so this shows that hh is C2C^2 but not C3C^3 at x=0x = 0 (as h=gh''' = g'' ). Note that hh is a polynomial and therefore continuous.

1.2.* A CC^\infty function very flat at 0

Let f(x)f(x) be the function on R\mathbb{R} defined in Example 1.3.

(a)

Show by induction that for x>0x > 0 and k0k \geq 0, the kk-th derivative f(k)(x)f^{(k)}(x) is of the form p2k(1/x)e1/xp_{2k}(1/x)e^{-1/x} for some polynomial p2k(y)p_{2k}(y) of degree 2k2k in yy.

Solution

First recall that f(x)f(x) is defined on R\mathbb{R} by
f(x)={e1/xfor x>0,0for x0f(x) = \begin{cases} e^{-1/x} & \text{for } x > 0, \\ 0 & \text{for } x \leq 0 \end{cases}
The base case of the induction is for k=0k = 0. By definition when x>0x > 0 we have f(x)=e1/x=1e1/xf(x) = e^{-1/x} = 1 \cdot e^{-1/x}, proving the hypothesis via the polynomial p0(y)=1p_0(y) = 1 which is of degree 2k=02k = 0.

Now assume that f(k)(x)=p2k(1/x)e1/xf^{(k)}(x) = p_{2k}(1/x)e^{-1/x}. We need to show that f(k+1)(x)=p2k+2(1/x)e1/xf^{(k+1)}(x) = p_{2k+2}(1/x)e^{-1/x} for some polynomial p2k+2p_{2k+2} of degree 2k+22k + 2. Proceed by differentiating
f(k+1)(x)=ddx(p2k(1x)e1/x)=ddx(p2k(1x))e1/x+p2k(1x)ddxe1/x=p2k(1x)(1x2)e1/x+p2k(1x)(1x2)e1/x=1x2(p2k(1x)+p2k(1x))e1/x\begin{aligned} f^{(k+1)}(x) &= \frac{d}{dx} \left( p_{2k}\left(\frac{1}{x}\right) e^{-1/x} \right) \\ &= \frac{d}{dx} \left( p_{2k}\left(\frac{1}{x}\right) \right) e^{-1/x} + p_{2k}\left(\frac{1}{x}\right) \frac{d}{dx} e^{-1/x} \\ &= p_{2k}'\left(\frac{1}{x}\right) \cdot \left(-\frac{1}{x^2}\right) e^{-1/x} + p_{2k}\left(\frac{1}{x}\right) \cdot \left(-\frac{1}{x^2}\right) e^{-1/x} \\ &= -\frac{1}{x^2} \left( p_{2k}'\left(\frac{1}{x}\right) + p_{2k}\left(\frac{1}{x}\right) \right) e^{-1/x} \end{aligned}
Since p2kp_{2k} is of degree 2k2k, p2kp'_{2k} is of degree 2k12k - 1, so (p2k(1x)+p2k(1x))\left( p_{2k}'\left(\frac{1}{x}\right) + p_{2k}\left(\frac{1}{x}\right) \right) is of degree 2k2k, and p2k+2=1x2(p2k(1x)+p2k(1x))p_{2k+2} = -\frac{1}{x^2} \left( p_{2k}'\left(\frac{1}{x}\right) + p_{2k}\left(\frac{1}{x}\right) \right) is of degree 2k+22k + 2.

(b)

Prove that ff is CC^\infty on R\mathbb{R} and that f(k)(0)=0f^{(k)}(0) = 0 for all k0k \geq 0.

Solution

To prove that ff is CC^{\infty} on R\mathbb{R} it is sufficient to show that it is smooth at x=0x = 0, as we handled that case x>0x > 0 in part (a) and the case x<0x < 0 is trivial as we have a whole epsilon ball where f=0f = 0. Take k0k \geq 0, we need to show that the limit
limh0f(k)(h)f(k)(0)h\lim_{h \to 0} \frac{f^{(k)}(h) - f^{(k)}(0)}{h}
exists, and for the second part of the question we need to show that it equals to zero. We proceed by induction. For the base case k=0k = 0 we have that
limh0f(k)(h)f(k)(0)h=limh0f(h)f(0)h\lim_{h \to 0} \frac{f^{(k)}(h) - f^{(k)}(0)}{h} = \lim_{h \to 0} \frac{f(h) - f(0)}{h}
This splits into two cases: approaching from the left and from the right. From the left we always have h<0h < 0 so
limh0f(h)f(0)h=limh000h=0\lim_{h \to 0^-} \frac{f(h) - f(0)}{h} = \lim_{h \to 0^-} \frac{0 - 0}{h} = 0
From the right we always have h>0h > 0 so
limh0+f(h)f(0)h=limh0+e1/h0h\lim_{h \to 0^+} \frac{f(h) - f(0)}{h} = \lim_{h \to 0^+} \frac{e^{-1/h} - 0}{h}
Let y=1/hy = 1/h so as h0+h \to 0^+ we have yy \to \infty
limh0+e1/h0h=limyyey=limyyey=0\lim_{h \to 0^+} \frac{e^{-1/h} - 0}{h} = \lim_{y \to \infty} ye^{-y} = \lim_{y \to \infty} \frac{y}{e^y} = 0
The last equality follows from L'Hospital's Rule. Now it's time for the induction. Assume that
limh0f(k)(h)f(k)(0)h=0\lim_{h \to 0} \frac{f^{(k)}(h) - f^{(k)}(0)}{h} = 0
We need to show that (note that the following limit is not even assumed to exist)
limh0f(k+1)(h)f(k+1)(0)h=0\lim_{h \to 0} \frac{f^{(k+1)}(h) - f^{(k+1)}(0)}{h} = 0
From the assumption it is clear that f(k+1)(0)=0f^{(k+1)}(0) = 0 so all that remains to show is that
limh0f(k+1)(h)h=0\lim_{h \to 0} \frac{f^{(k+1)}(h)}{h} = 0
If hh approaches from the left than this is obvious as the left side of the function is identically zero (since the left side of ff is zero so are all of its derivatives). So without loss of generality approach from the right, and use part (a)
limh0+f(k+1)(h)h=limh0+p2k+2(1/h)e1/hh=limh0+p2k+3(1/h)e1/h\lim_{h \to 0^+} \frac{f^{(k+1)}(h)}{h} = \lim_{h \to 0^+}\frac{p_{2k+2}(1/h)e^{-1/h}}{h} = \lim_{h \to 0^+} \frac{p_{2k+3}(1/h)}{e^{1/h}}
Once again substitute y=1/hy = 1/h
limh0+f(k+1)(h)h=limyp2k+3(y)ey=0\lim_{h \to 0^+} \frac{f^{(k+1)}(h)}{h} = \lim_{y \to \infty} \frac{p_{2k+3}(y)}{e^{y}} = 0
The last equality following from repeated applications of L'Hospital's Rule.

\\

§1\S 1 - Smooth Functions on a Euclidean Space

1.1. A function that is C2C^2 but not C3C^3

1.2.* A CC^\infty function very flat at 0