Is there a smooth function in the unit ball with compact support?

In summary, the conversation discusses the concept of a function that takes positive values only in the unit ball, excluding the boundary points, and is zero everywhere else. The idea of using piecewise polynomials is suggested, but it is noted that they will not be smooth. The bump function is also mentioned as a possible solution, but it is pointed out that it is not possible to graph a 3D function. The conversation also delves into the topic of analytic functions and their relationship to boundary values.
  • #1
docnet
Gold Member
696
349
Homework Statement
Is there a smooth function in the unit ball with compact support?
Relevant Equations
Functions of the form:
##\begin{cases}f(x,y,z) \geq 0 & \text{for}\quad ||x^2+y^2+z^2||<1 \\
0 & \text{elsewhere}\end{cases}##
Is there a function that takes positive values only in the unit ball not including the boundary points defined by the set ##\{x^2+y^2+z^2<1\}##, and ##0## everywhere else?
 
Physics news on Phys.org
  • #2
Have you done any work on it? It might help to start by thinking about this in 1 dimension.
 
  • Like
Likes docnet
  • #3
So sorry, I forgot that one needs to attempt a solution.

In 1 dimension, I think a piece-wise polynomial function like
$$f(x)=\begin{cases}
0 & x<-1 \\ (x+1)^4 & -1\leq x < -\frac{1}{2} \\ 2x^4-\frac{3}{2}x^2+\frac{5}{16} & -\frac{1}{2} \leq x<\frac{1}{2} \\ (x-1)^4 & \frac{1}{2}\leq x<1 \\
0 & 1\leq x
\end{cases}$$
is ok. To extend this to the 3D case, maybe something like
$$g(x)=\begin{cases}
0 & |(x,y,z)|<-1 \\ (x+y+z+1)^4 & -1\leq |(x,y,z)| < -\frac{1}{2} \\ 2(x^4+y^4+z^4)-\frac{3}{2}(x^2+y^2+z^2)+\frac{5}{16} & -\frac{1}{2} \leq |(x,y,z)|<\frac{1}{2} \\ (x-y-z-1)^4 & \frac{1}{2}\leq |(x,y,z)|<1 \\
0 & 1\leq |(x,y,z)|
\end{cases}$$
is ok?
 
  • #4
For the multi dimensional case try just making your 1d function a function of distance from the origin.
 
  • Like
Likes docnet
  • #5
This was definitely not a precalculus sort of question, so I have moved it to the calculus section. "smooth" implies properties of both the function and its derivative.
 
  • Like
Likes docnet
  • #6
Oh, your 1d function also isn't smooth. The fourth derivative of ##(x+1)^4## is 24.
 
  • Like
Likes docnet
  • #7
  • Like
Likes docnet
  • #8
Keith_McClary said:
There are degrees of Smoothness .

The function f is said to be[...] smooth [...]f it has derivatives of all orders

This is the normal definition of a function being smooth.
 
  • Like
Likes docnet
  • #9
@Office_Shredder, @Keith_McClary, @Mark44, Thank you so much for your advice about the smoothness and making ##f## a function of distance from the origin. Unfortunately I am busy with other classes for a few days. I will work on this problem in a few days and come back when I believe I have it right.
 
  • #10
The piecewise polynomials will never work out as they will not be smooth due to having different derivatives at at least some order (if not they are the same polynomial). For example, if your polynomials are of order four you cannot have different coefficients in front of the ##x^4## term because that would mean that the fourth derivative with respect to ##x## would not be continuous.

Also, examples can be found on the Wikipedia page already posted ...
See also Bump function.
 
  • Like
Likes docnet
  • #11
@Orodruin thank you for your thoughtful advice regarding piecewise polynomials. It makes intuitive sense that they are only smooth up to a degree.

Per the wikipedia page, the bump function is $$f(x,y,z)=e^{-\frac{1}{1-x^2-y^2-z^2}}$$ or $$f(r)= e^{-\frac{1}{1-r^2}}$$ in polar coordinates

over the domain defined by the unit disk and ##0## else.

Here is a graph of the case when ##f(x,y)=e^{-\frac{1}{1-x^2-y^2}}##

Screen Shot 2021-04-07 at 11.02.45 AM.png


A confusing aspect of this assignment is my professor asks us to plot the graph of the case ##f(x,y,z):\mathbb{R}^3\rightarrow \mathbb{R}##.

I wonder if he wants me to imagine an inventive way to illustrate the graph, explain why it is not possible, or maybe discover the ##4^{th}## spatial dimension using my portable pocket particle accelerator?
 
  • #12
One interesting thing to note is that since all the derivatives at the boundary need to be 0, whatever function you are using inside the ball, it cannot be analytic (i.e. cannot be equal to its Taylor series locally at the boundary, since that Taylor series is identically zero).I have no idea how you are supposed to graph a 3d function.
 
  • Like
Likes docnet
  • #13
Office_Shredder said:
One interesting thing to note is that since all the derivatives at the boundary need to be 0, whatever function you are using inside the ball, it cannot be analytic (i.e. cannot be equal to its Taylor series locally at the boundary, since that Taylor series is identically zero).I have no idea how you are supposed to graph a 3d function.
That is interesting and mysterious!
 

1. What is a smooth function?

A smooth function is a function that is infinitely differentiable, meaning that it has derivatives of all orders at every point in its domain.

2. What is a unit ball?

A unit ball is a mathematical term for a ball with a radius of 1, centered at the origin in n-dimensional space.

3. What does it mean for a function to have compact support?

A function with compact support means that it is equal to zero outside of a finite interval or region. In other words, the function is "localized" to a specific area.

4. Is it possible to have a smooth function in the unit ball with compact support?

Yes, it is possible to have a smooth function in the unit ball with compact support. In fact, there are many such functions that exist.

5. What is the importance of a smooth function in the unit ball with compact support?

Smooth functions with compact support are important in many areas of mathematics and physics, particularly in the study of differential equations, Fourier analysis, and quantum mechanics. They also have practical applications in signal processing and image reconstruction.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
286
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
398
  • Calculus and Beyond Homework Help
Replies
16
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
294
  • Calculus and Beyond Homework Help
Replies
7
Views
291
  • Calculus and Beyond Homework Help
Replies
8
Views
982
  • Calculus and Beyond Homework Help
Replies
27
Views
748
  • Calculus and Beyond Homework Help
Replies
0
Views
173
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
Back
Top