Proving piecewise function is k-differentiable

  • #1
member 731016
Homework Statement
Please see below
Relevant Equations
Please see below
For this problem,
1716937553405.png

My solution is,

##F(x)=\left\{\begin{array}{ll} e^{-\frac{1}{x}} & \text { if } x>0 \\ 0 & \text { if } x \leq 0\end{array}\right.##

The we differentiate both sub-function of the piecewise function. Note I assume differentiable since we are proving a result that the function is differentiable, so I assume that ##F^{k}(0)## exists, that is the function is k-differentiable at zero assuming the limit exists. I will prove for first derivative k = 1 below.

##F'(x)=\left\{\begin{array}{ll} -\frac{1}{x}e^{-\frac{1}{x}} & \text { if } x>0 \\ 0 & \text { if } x \leq 0\end{array}\right.##

##F''(x)=\left\{\begin{array}{ll} \frac{1}{x^2}e^{-\frac{1}{x}} & \text { if } x>0 \\ 0 & \text { if } x \leq 0\end{array}\right.##

One can continue considering ##k## number of cases

Thus from our proof, the polynomial ##P_k## can be written explicitly as ##P_k = \frac{1}{x^{k - 1}(-1)^k}## for ##k > 0##

Thus we consider two cases for ##k##,

##
F^{(k)}(x)= \begin{cases}\frac{1}{x^{k - 1}(-1)^k}\left(x^{-1}\right) \exp \left(-x^{-1}\right) & \text { if } x>0 \\ 0 & \text { if } x \leq 0\end{cases}
##

for ##k > 0##

And for ##k = 0##, we have the original piece wise function,

##F(x)=\left\{\begin{array}{ll} \exp \left(-x^{-1}\right) & \text { if } x>0 \\ 0 & \text { if } x \leq 0\end{array}\right.##

QED

So as part of our proof, we also consider a sub-proof of the reason why the function is ##F^{k}## at ##x = 0##. We just consider the trival case for ##k = 1##,

In order to be differentiable at zero then ##lim_{x \to 0} F(x)## must exist. This is equivalent to both the Left hand and right hand limits existing.

##\lim_{x \to 0^-} F(x) = \lim_{x \to 0^-} 0 = 0##. Therefore, left hand limit exists.

Now for right hand limit, we have,

##\lim_{x \to 0^+} e^{-\frac{1}{x}}## DNE as I don't know the limit as ##\frac{1}{x}## goes to zero. However, for some reason, wolfram alpha says that ##\lim_{x \to 0^+} e^{-\frac{1}{x}} = 0##. Does someone please know why this is true?

I will assume that that is true, and I think the next part of the sub-proof is to generalize to higher order derivative

In order to find ##F^{k}(0)## then this limit ##\lim_{x \to 0} F^{k}## must exist.

That is, ##\lim_{x \to 0^-} F^{k}(x) = \lim_{x \to 0^+} F^{k}(x)##

##\lim_{x \to 0^-} F^{k}(x) = \lim_{x \to 0^-} 0 = 0##

##\lim_{x \to 0^+} F^{k}(x) = \lim_{x \to 0^+} \frac{1}{x^k(-1)^k}e^{-\frac{1}{x}} = \frac{1}{(-1)^k}\lim_{x \to 0^+} \frac{1}{x^k}e^{-\frac{1}{x}} = 0##

Does someone also please know whether this a proof by induction (or what sort of proof it is)? Or can we just use a informal generalization proof?

Thanks!
 
Physics news on Phys.org
  • #2
Please remind yourself of the correct definition of the chain rule ##\frac{d}{dx}f(g(x))=f'(g(x))g'(x)## and re-check your work for $$\frac{d}{dx}e^{-1/x}.$$

And you haven't yet shown that ##P_k = \frac{1}{x^{k - 1}(-1)^k}## is true for ##k>2##. There are specific requirements for a valid proof by induction, and you should try to follow the steps (even if it's boring) until you understand how it works.

In order to be differentiable at zero, you need the function to be continuous at 0 and have $$\lim_{h\to 0^+}\frac{f(x+h)-f(x)}{h} =\lim_{h\to 0^-}\frac{f(x+h)-f(x)}{h}.$$
By using the hospital rule, you should be able to show that both are equal to 0 for any ##k## (this would be another proof by induction).
 
  • Like
  • Love
Likes SammyS and member 731016
  • #3
ChiralSuperfields said:
##\lim_{x \to 0^+} e^{-\frac{1}{x}}## DNE as I don't know the limit as ##\frac{1}{x}## goes to zero. However, for some reason, wolfram alpha says that ##\lim_{x \to 0^+} e^{-\frac{1}{x}} = 0##. Does someone please know why this is true?
$$\lim_{x\to 0^+}e^{-\frac{1}{x}}=\lim_{y\to \infty}e^{-y}=0.$$
 
  • Love
Likes member 731016
  • #4
Thank you for your reply @docnet! I have some question about this solution,

1717043390531.png


Do you please know how they go from the ##f^{n}(x)## to ##f^{n + 1}(x)## step (I assume they differentiate ##f^{n}(x)##)? I think they made a typo there is something because they did not seem to differentiate the ##\frac{1}{x}## since it is three functions multiplied together so you have to use the product rule on ##p_nu## where ##u = \frac{1}{x}e^{-\frac{1}{x}}##.

I also don't understand how they got ##p_1(x) = x^2##. Should it not be ##p_1(x) = \frac{1}{x}##?

Thanks!
 
  • Like
Likes docnet
  • #5
ChiralSuperfields said:
Thank you for your reply @docnet! I have some question about this solution,

View attachment 346210

Do you please know how they go from the ##f^{n}(x)## to ##f^{n + 1}(x)## step (I assume they differentiate ##f^{n}(x)##)? I think they made a typo there is something because they did not seem to differentiate the ##\frac{1}{x}## since it is three functions multiplied together so you have to use the product rule on ##p_nu## where ##u = \frac{1}{x}e^{-\frac{1}{x}}##.

I also don't understand how they got ##p_1(x) = x^2##. Should it not be ##p_1(x) = \frac{1}{x}##?

Thanks!
Let's take your last question first.

There is no way that ##\displaystyle \ p_1(x) = \frac{1}{x} \ ##. Fir one thing, that's not a polynomial at all.

If as they say, ##\displaystyle \ p_1(x) = x^2 \ , \ ## that then says that ##\displaystyle \ p_1\left( \frac 1 x \right) = \left( \frac 1 x \right)^2 \ , \ ##

Perhaps you're still having difficulties with ##\displaystyle \ F\,'(x) \ .\ ## As @docnet already told you:
docnet said:
Please remind yourself of the correct definition of the chain rule ##\frac{d}{dx}f(g(x))=f'(g(x))g'(x)## and re-check your work for $$\frac{d}{dx}e^{-1/x}.$$
So, no, ##\displaystyle \ p_1\left( \dfrac 1 x \right) \ne \frac{1}{x} \ ## because ##\displaystyle \ \frac{d}{dx}e^{-1/x}\ne
\frac{1}{x}e^{-1/x} \ .##

As for differentiating ##\displaystyle F^{(n)}(x)\,, \ ## it is the product of only two functions, not three. Note that the chain rule is involved in differentiating each of those two component functions.
 
Last edited:
  • Like
  • Love
Likes member 731016 and docnet
  • #6
ChiralSuperfields said:
Thank you for your reply @docnet! I have some question about this solution,

View attachment 346210

Do you please know how they go from the ##f^{n}(x)## to ##f^{n + 1}(x)## step (I assume they differentiate ##f^{n}(x)##)?
Yes, differentiating ##f^n(x)## is a crucial step of the induction procedure.
ChiralSuperfields said:
I think they made a typo there is something because they did not seem to differentiate the ##\frac{1}{x}## since it is three functions multiplied together so you have to use the product rule on ##p_nu## where ##u = \frac{1}{x}e^{-\frac{1}{x}}##.

I also don't understand how they got ##p_1(x) = x^2##. Should it not be ##p_1(x) = \frac{1}{x}##?

Thanks!
##p_n\left(\frac{1}{x}\right)## indicates ##p_n## is a function of ##\frac{1}{x}##, like how ##f(x)## indicates ##f## is a function of ##x##.

ChiralSuperfields said:
I also don't understand how they got ##p_1(x) = x^2##. Should it not be ##p_1(x) = \frac{1}{x}##?
You should have ##p_1=\frac{1}{x^2}## because $$\frac{d}{dx}e^{-x}=\frac{1}{x^2}e^{-x}.$$

##\frac{1}{x^2}## isn't a polynomial but ##x^2## is one. It's true that
$$p_1\left(\frac{1}{x}\right)=\frac{1}{x^2}\Longleftrightarrow p_1(x)=x^2.$$
 
Last edited:
  • Like
  • Love
Likes SammyS and member 731016

FAQ: Proving piecewise function is k-differentiable

What does it mean for a piecewise function to be k-differentiable?

A piecewise function is said to be k-differentiable if it has continuous derivatives up to order k at every point in its domain, including the points where the function definition changes. This means that not only must the function itself be continuous, but its first k derivatives must also be continuous at those points.

How do you check if a piecewise function is continuous at the boundaries?

To check for continuity at the boundaries of a piecewise function, you need to evaluate the left-hand limit and the right-hand limit at the boundary point. If both limits are equal to the value of the function at that point, then the function is continuous there. Specifically, if the function is defined as f(x) for x < a and g(x) for x ≥ a, you need to verify that lim (x→a-) f(x) = lim (x→a+) g(x) = g(a).

What are the conditions for a piecewise function to be differentiable at a boundary point?

A piecewise function is differentiable at a boundary point if it is continuous at that point and the left-hand derivative equals the right-hand derivative. This means you must compute the derivatives of the function from both sides of the boundary and check that they are equal. If they are not equal, the function is not differentiable at that point.

What methods can be used to prove k-differentiability of a piecewise function?

To prove k-differentiability, you can use the following methods: first, verify continuity at all boundary points. Then, compute the first k derivatives of the function piecewise and check their continuity at the boundaries. You may also use the epsilon-delta definition of limits to rigorously show that the derivatives approach the same value from both sides at each boundary point.

Are there any common examples of piecewise functions that are k-differentiable?

Common examples of piecewise functions that are k-differentiable include the absolute value function, which is differentiable everywhere except at zero, and functions defined by polynomials in different intervals, such as f(x) = x^2 for x < 0 and f(x) = x^3 for x ≥ 0. These functions can be constructed to ensure that they meet the criteria for k-differentiability by appropriately choosing the pieces and ensuring they match up at the boundaries.

Similar threads

Replies
8
Views
710
Replies
7
Views
861
Replies
2
Views
571
Replies
2
Views
331
Replies
2
Views
1K
Replies
1
Views
850
Back
Top