Samjhake
Real Analysis II
Notes›Real Analysis II›HW-5: Smooth Bump Functions

MTH-403 · Page 9 of 9

HW-5: Smooth Bump Functions

Name: Shivajee Kumar
Roll No: 240423
Course: MTH403 Real Analysis II
Assignment: HW-5
Problem 2-26
Question

Let \[ f(x)= \begin{cases} e^{-(x-1)^{-2}}e^{-(x+1)^{-2}}, & x\in(-1,1),\\[4pt] 0, & x\notin(-1,1). \end{cases} \]

(a) Show that \(f:\mathbb{R}\to\mathbb{R}\) is a \(C^\infty\) function which is positive on \((-1,1)\) and \(0\) elsewhere.

(b) Show that there is a \(C^\infty\) function \(g:\mathbb{R}\to[0,1]\) such that \[ g(x)=0 \quad \text{for }x\leq 0, \qquad g(x)=1 \quad \text{for }x\geq\varepsilon. \]

(c) If \(a\in\mathbb{R}^n\), define \(g:\mathbb{R}^n\to\mathbb{R}\) by \[ g(x) = f\left(\frac{x^1-a^1}{\varepsilon}\right) \cdots f\left(\frac{x^n-a^n}{\varepsilon}\right). \] Show that \(g\) is a \(C^\infty\) function which is positive on \((a^1-\varepsilon,a^1+\varepsilon) \times\cdots\times (a^n-\varepsilon,a^n+\varepsilon)\) and zero elsewhere.

(d) If \(A\subset\mathbb{R}^n\) is open and \(C\subset A\) is compact, show that there is a non-negative \(C^\infty\) function \(f:A\to\mathbb{R}\) such that \(f(x)>0\) for \(x\in C\) and \(f=0\) outside of some closed set contained in \(A\).

(e) Show that we can choose such an \(f\) so that \(f:A\to[0,1]\) and \(f(x)=1\) for \(x\in C\).

Solution (a)

We use the standard fact that the function \[ \phi(t)= \begin{cases} e^{-1/t^2}, & t\neq 0,\\ 0, & t=0, \end{cases} \] belongs to \(C^\infty(\mathbb{R})\) and satisfies \(\phi^{(k)}(0)=0\) for every \(k\geq 0\). In other words, \(\phi\) and all its derivatives vanish at \(t=0\).

For \(x\in(-1,1)\), \(f(x) = e^{-1/(x-1)^2}e^{-1/(x+1)^2}\). Both factors are smooth on \((-1,1)\), so their product is also \(C^\infty\) on \((-1,1)\).

For \(x\notin[-1,1]\), the function \(f\) is identically zero and hence is clearly \(C^\infty\) there. It remains only to check smoothness at \(x=1\) and \(x=-1\).

Near \(x=1\), we can write \(f(x) = e^{-1/(x-1)^2}\,e^{-1/(x+1)^2}\). The second factor is a smooth function in a neighborhood of \(x=1\), while the first factor is of the form \(\phi(x-1)\). Since \(\phi^{(k)}(0)=0\) for every \(k\geq0\), all derivatives of \(f\) from the left tend to \(0\) as \(x\to1\). On the other hand, \(f\) is identically zero for \(x\geq1\), so all right-hand derivatives at \(x=1\) are also zero. Hence \(f\) is \(C^\infty\) at \(x=1\).

Similarly, near \(x=-1\), \(f(x) = e^{-1/(x-1)^2}\,e^{-1/(x+1)^2}\), where the first factor is smooth near \(x=-1\) and the second factor is of the form \(\phi(x+1)\). Thus all derivatives of \(f\) tend to zero as \(x\to-1\), and they agree with the derivatives of the zero function outside \((-1,1)\). Therefore \(f\) is \(C^\infty\) at \(x=-1\) as well.

Consequently, \(f\in C^\infty(\mathbb{R}).\)

Finally, for \(x\in(-1,1)\) both exponential factors are strictly positive. Hence \(f(x)>0\) for \(x\in(-1,1)\). By definition, \(f(x)=0\) for \(x\notin(-1,1)\).

Therefore, \(f\) is \(C^\infty\), \(f>0\) on \((-1,1)\), and \(f=0\) outside \((-1,1)\). ∎

Solution (b)

From part (a), after a translation and scaling, we can construct a \(C^\infty\) function \(\widetilde f:\mathbb{R}\to[0,\infty)\) which is positive on \((0,\varepsilon)\) and zero outside \([0,\varepsilon]\).

For example, define \(\widetilde f(x) = f\left(\frac{2x-\varepsilon}{\varepsilon}\right)\). Indeed, \(-1 < \frac{2x-\varepsilon}{\varepsilon} < 1\) is equivalent to \(00\) on \((0,\varepsilon)\) and \(\widetilde f=0\) elsewhere.

Since \(\widetilde f\) is positive on \((0,\varepsilon)\), \(\int_0^\varepsilon \widetilde f(t)\,dt>0\).

Define: \[ g(x) = \frac{\displaystyle\int_0^x\widetilde f(t)\,dt}{\displaystyle\int_0^\varepsilon\widetilde f(t)\,dt} \]

Since \(\widetilde f\in C^\infty(\mathbb{R})\), the Fundamental Theorem of Calculus gives \(\frac{d}{dx}\left(\int_0^x\widetilde f(t)\,dt\right) = \widetilde f(x)\). Therefore \(\int_0^x\widetilde f(t)\,dt\) is \(C^\infty\), and hence \(g\in C^\infty(\mathbb{R})\).

If \(x\leq0\), then \(\widetilde f(t)=0\) on the interval between \(x\) and \(0\). Hence \(\int_0^x\widetilde f(t)\,dt=0\), and therefore \(g(x)=0\).

If \(0

Finally, if \(x\geq\varepsilon\), then \(\widetilde f(t)=0\) for \(t\geq\varepsilon\). Therefore, \(\int_0^x\widetilde f(t)\,dt = \int_0^\varepsilon\widetilde f(t)\,dt\), and hence \(g(x)=1\).

Thus, \(g:\mathbb{R}\to[0,1]\) is \(C^\infty\) and satisfies the conditions. ∎

Solution (c)

Let \(a=(a^1,\ldots,a^n)\in\mathbb{R}^n\) and define \(g(x) = \prod_{i=1}^n f\left(\frac{x^i-a^i}{\varepsilon}\right)\).

For each \(i\), the function \(x\longmapsto \frac{x^i-a^i}{\varepsilon}\) is a smooth function on \(\mathbb{R}^n\). Since \(f\in C^\infty(\mathbb{R})\), the composition \(x\longmapsto f\left(\frac{x^i-a^i}{\varepsilon}\right)\) is \(C^\infty\) on \(\mathbb{R}^n\).

Since \(g\) is a finite product of \(C^\infty\) functions, it follows that \(g\in C^\infty(\mathbb{R}^n)\).

By part (a), \(f(y)>0 \iff -10\) if and only if \(-1 < \frac{x^i-a^i}{\varepsilon} < 1\). Since \(\varepsilon>0\), this is equivalent to \(a^i-\varepsilon

Thus, all factors in the product are positive precisely when \(a^i-\varepsilon0\) on \((a^1-\varepsilon,a^1+\varepsilon) \times\cdots\times (a^n-\varepsilon,a^n+\varepsilon)\).

If \(x\) lies outside this rectangle, then for at least one index \(i\), \(|x^i-a^i|\geq\varepsilon\). Therefore, \(\left| \frac{x^i-a^i}{\varepsilon} \right|\geq1\), and consequently \(f\left(\frac{x^i-a^i}{\varepsilon}\right)=0\). Thus the whole product is zero: \(g(x)=0\).

Therefore, \(g>0\) on the open rectangle, and \(g=0\) elsewhere. ∎

Solution (d)

Let \(A\subset\mathbb{R}^n\) be open and let \(C\subset A\) be compact. If \(C=\varnothing\), the result is immediate by taking \(f\equiv0\). Assume therefore that \(C\neq\varnothing\).

For every point \(a=(a^1,\ldots,a^n)\in C\), since \(A\) is open and \(a\in A\), there exists \(\varepsilon_a>0\) such that the closed rectangle \(Q_a = \prod_{i=1}^n [a^i-\varepsilon_a,a^i+\varepsilon_a]\) is contained in \(A\).

By part (c), there exists a non-negative \(C^\infty\) function \(g_a:\mathbb{R}^n\to\mathbb{R}\) such that \(g_a(x)>0\) on the interior \(Q_a^\circ = \prod_{i=1}^n (a^i-\varepsilon_a,a^i+\varepsilon_a)\) and \(g_a(x)=0\) outside \(Q_a\).

The collection \(\{Q_a^\circ:a\in C\}\) is an open cover of \(C\). Since \(C\) is compact, there exist finitely many points \(a_1,\ldots,a_m\in C\) such that \(C\subset Q_{a_1}^\circ\cup\cdots\cup Q_{a_m}^\circ\).

Let \(g_1,\ldots,g_m\) be the corresponding functions from part (c) and define: \[ f(x)=\sum_{j=1}^m g_j(x), \qquad x\in A. \]

Each \(g_j\) is non-negative and \(C^\infty\). Hence \(f\) is also non-negative and \(C^\infty\).

Now let \(x\in C\). Since the interiors of the rectangles form a finite cover of \(C\), there is some \(j\) such that \(x\in Q_{a_j}^\circ\). Therefore, \(g_j(x)>0\). Since all the other terms are non-negative, \(f(x) = \sum_{k=1}^m g_k(x) \geq g_j(x)>0\). Thus, \(f(x)>0\) for every \(x\in C.\)

Finally, let \(K=Q_{a_1}\cup\cdots\cup Q_{a_m}\). Each \(Q_{a_j}\) is closed, and there are only finitely many of them. Therefore \(K\) is closed. Moreover, \(K\subset A\). Since each \(g_j\) is zero outside \(Q_{a_j}\), we have \(f(x)=0\) for \(x\notin K\).

Hence there exists a non-negative \(C^\infty\) function \(f:A\to\mathbb{R}\) such that \(f(x)>0\) on \(C\), and \(f(x)=0\) outside a closed set \(K\subset A\). ∎

Solution (e)

Let \(f\) be the function obtained in part (d). Since \(f(x)>0\) for all \(x\in C\), and \(f\) is continuous, the compactness of \(C\) implies that \(f\) attains its minimum on \(C\). Hence there exists \(\varepsilon>0\) such that \(f(x)\geq\varepsilon\) for every \(x\in C\).

Now let \(g:\mathbb{R}\to[0,1]\) be the \(C^\infty\) function constructed in part (b), corresponding to this value of \(\varepsilon\). Thus, \(g(t)=0\) for \(t\leq0\), and \(g(t)=1\) for \(t\geq\varepsilon\).

Define: \[ F(x)=g(f(x)), \qquad x\in A. \]

Since \(f\in C^\infty(A)\) and \(g\in C^\infty(\mathbb{R})\), their composition is \(C^\infty\). Therefore, \(F\in C^\infty(A)\).

For every \(x\in A\), \(0\leq g(f(x))\leq1\). Hence \(F:A\to[0,1]\).

If \(x\in C\), then \(f(x)\geq\varepsilon\). Therefore, by the defining property of \(g\), \(F(x)=g(f(x))=1\). Thus, \(F(x)=1\) for every \(x\in C\).

Finally, let \(K\subset A\) be the closed set from part (d), outside of which \(f=0\). If \(x\notin K\), then \(f(x)=0\). Since \(g(0)=0\), \(F(x)=g(f(x))=g(0)=0\). Thus \(F\) also vanishes outside the same closed set \(K\subset A\).

Therefore we have constructed a function \(F\in C^\infty(A)\), \(0\leq F\leq1\), \(F=1\) on \(C\), which is zero outside a closed set contained in \(A\). ∎

Detailed study guide · source English above

English explanation and missing steps

  1. (a) Smooth bump: Let \(\phi(t)=e^{-1/t^2}\) for \(t\ne0\), \(\phi(0)=0\). Every derivative of \(\phi\) at zero vanishes because exponential decay beats each power of \(1/|t|\). Multiply the two flat factors inside \((-1,1)\) and set the function to zero outside. At \(\pm1\), all one-sided derivatives match zero; inside, both factors are positive.
  2. (b) Smooth step: Integrate a positive bump on \((0,\varepsilon)\) and divide by its total integral: \(g(x)=\frac{\int_{-\infty}^x b(t)dt}{\int_{-\infty}^{\infty}b(t)dt}\). Positivity gives values in \([0,1]\); compact support of \(b\) gives exactly 0 before 0 and 1 after \(\varepsilon\).
  3. (c) Rectangle bump: Each factor \(f((x^i-a^i)/\varepsilon)\) is smooth and positive precisely when \(|x^i-a^i|<\varepsilon\). Their finite product is positive on the whole open rectangle and zero outside it.
  4. (d) Compact-set bump: For each \(c\in C\), choose a small closed rectangle inside \(A\) and a bump positive on a smaller rectangle around \(c\). Compactness selects finitely many smaller rectangles covering \(C\). Add their nonnegative bumps; the sum is positive on \(C\) and its support is contained in the finite union of the closed rectangles, a compact subset of \(A\).
  5. (e) Plateau at 1: The sum from (d) has a positive minimum \(\eta\) on compact \(C\). Compose it with a smooth step that is zero at 0 and equals 1 for inputs at least \(\eta\). The composite stays in \([0,1]\), equals 1 on \(C\), and retains support inside \(A\).

Hinglish mein poora explanation

  1. (a) Smooth bump: \(\phi(t)=e^{-1/t^2}\), \(t\ne0\), aur \(\phi(0)=0\) lo. Exponential decay har \(1/|t|\) power ko beat karta hai, isliye zero par saare derivatives zero. \((-1,1)\) ke andar do flat factors multiply karo; \(\pm1\) par outside zero se har derivative smoothly match hota hai. Andar function positive.
  2. (b) Smooth step: \((0,\varepsilon)\) mein positive bump \(b\) lo. Uska accumulated integral total integral se divide karo. 0 se pehle integral zero, \(\varepsilon\) ke baad full total, isliye output 0 se 1 tak smooth transition hai.
  3. (c) Rectangle bump: Har coordinate mein \(f((x^i-a^i)/\varepsilon)\) positive tabhi jab \(|x^i-a^i|<\varepsilon\). Finite product poore open rectangle ke andar positive aur bahar zero.
  4. (d) Compact-set bump: Har \(c\in C\) ke around \(A\) ke andar chhota closed rectangle aur us par positive bump lo. Compactness se finitely many small rectangles \(C\) cover karte hain. Un bumps ka sum \(C\) par positive hai; support finite closed rectangles ke compact union mein, jo \(A\) ke andar hai.
  5. (e) Plateau 1: (d) ka positive sum compact \(C\) par minimum \(\eta>0\) leta hai. Is sum par smooth step lagao jo 0 par zero aur \(\eta\) ya usse bade input par 1 hai. Result \([0,1]\) mein hai, \(C\) par exactly 1, aur support pehle wali compact region mein.