Is f Differentiable at (0,0)?

  • Context: MHB 
  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Differentiable
Click For Summary
SUMMARY

The function \( f:\mathbb{R}^2 \rightarrow \mathbb{R} \) defined by \( f(x,y) = \frac{x^3}{x^2+y^2} \) for \( (x,y) \neq (0,0) \) and \( f(0,0) = 0 \) has all directional derivatives at \( (0,0) \) that exist, as shown by the limit \( \partial_vf(0,0) = \frac{v_1^3}{v_1^2+v_2^2} \). However, \( f \) is not differentiable at \( (0,0) \) because the limit \( \frac{\|f(a_n)-f(0,0)-\nabla f(0,0)\cdot a_n\|}{\|a_n\|} \) does not converge to zero for certain paths, specifically when \( h_1 = h_2 \). This indicates that while directional derivatives exist, the function fails the differentiability condition.

PREREQUISITES
  • Understanding of directional derivatives in multivariable calculus
  • Knowledge of limits and continuity in the context of functions of several variables
  • Familiarity with the gradient and its implications for differentiability
  • Ability to analyze paths in the context of limits
NEXT STEPS
  • Study the concept of differentiability in multivariable calculus
  • Learn about the implications of directional derivatives on the differentiability of functions
  • Explore examples of functions that are continuous but not differentiable
  • Investigate the use of polar coordinates to analyze limits in two dimensions
USEFUL FOR

Students and professionals in mathematics, particularly those studying calculus and analysis, as well as educators looking for examples of differentiability in multivariable functions.

mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :giggle:

We consider the function\begin{align*}f:\mathbb{R}^2 &\rightarrow\mathbb{R} \\ (x,y)&\mapsto \begin{cases}\frac{x^3}{x^2+y^2} & \text{ if } (x,y)\neq(0,0) \\ 0 & \text{ if } (x,y)=(0,0) \end{cases}\end{align*}
(a) Show that all directional derivatives of $f$ in $(0,0)$ exist.
(b) Is $f$ differentiable in $(0,0)$ ? For (a) Ihave donethe following:
$$\partial_vf(0,0)=\lim_{h\rightarrow 0}\frac{f(hv_1, hv_2)-f(0,0)}{h}=\lim_{h\rightarrow 0}\frac{v_1^3}{v_1^2+v_2^2}=\frac{v_1^3}{v_1^2+v_2^2}\in \mathbb{R}$$ The limit exists for all $(v_1,v_2)\neq (0,0)$ and so all directional derivatives of $f$ in $(0,0)$ exist.

Is that correct? For (b) I thought to find a sequence $a_n$ that converges to $(0,0)$ such that $f(a_n)$ doesn't converge to $0$, but I haven't found yet such an examle. Can we maybe not find such an example because $f$ is differentiable in $(0,0)$ ?:unsure:
 
Physics news on Phys.org
mathmari said:
For (a) Ihave donethe following:
$$\partial_vf(0,0)=\lim_{h\rightarrow 0}\frac{f(hv_1, hv_2)-f(0,0)}{h}=\lim_{h\rightarrow 0}\frac{v_1^3}{v_1^2+v_2^2}=\frac{v_1^3}{v_1^2+v_2^2}\in \mathbb{R}$$ The limit exists for all $(v_1,v_2)\neq (0,0)$ and so all directional derivatives of $f$ in $(0,0)$ exist.

Hey mathmari!

Looks correct to me. (Nod)

mathmari said:
For (b) I thought to find a sequence $a_n$ that converges to $(0,0)$ such that $f(a_n)$ doesn't converge to $0$, but I haven't found yet such an examle. Can we maybe not find such an example because $f$ is differentiable in $(0,0)$ ?
How is it relevant whether $f(a_n)$ converges to $0$ or not? :unsure:
We're not checking continuity are we?
Or are you trying to prove that $f$ is not continuous in $(0,0)$, and therefore it is not differentiable either?
Either way, $f$ is continuous in $(0,0)$, so that won't work. (Shake)

Shouldn't we check instead whether $\frac{\|f(a_n)-f(0,0)-\nabla f(0,0)\cdot a_n\|}{\|a_n\|}$ converges to $0$ or not? :unsure:

Note that since the directional derivatives exist, the partial derivatives exist as well, and $\nabla f(0,0)$ is well defined. 🧐
 
Last edited:
mathmari said:
Hey! :giggle:

We consider the function\begin{align*}f:\mathbb{R}^2 &\rightarrow\mathbb{R} \\ (x,y)&\mapsto \begin{cases}\frac{x^3}{x^2+y^2} & \text{ if } (x,y)\neq(0,0) \\ 0 & \text{ if } (x,y)=(0,0) \end{cases}\end{align*}
(a) Show that all directional derivatives of $f$ in $(0,0)$ exist.
(b) Is $f$ differentiable in $(0,0)$ ?For (a) Ihave donethe following:
$$\partial_vf(0,0)=\lim_{h\rightarrow 0}\frac{f(hv_1, hv_2)-f(0,0)}{h}=\lim_{h\rightarrow 0}\frac{v_1^3}{v_1^2+v_2^2}=\frac{v_1^3}{v_1^2+v_2^2}\in \mathbb{R}$$ The limit exists for all $(v_1,v_2)\neq (0,0)$ and so all directional derivatives of $f$ in $(0,0)$ exist.

Is that correct?[/tex]
Except that you jumped over the most important point- showing that the limit does exist!

I would have done this: every line through (0, 0) (except the vertical line) can be written y= mx for some constant m. Then \frac{x^3}{x^2+ y^2}= \frac{x^3}{x^3+ m^3x^2}= \frac{x^3}{x^2(m^2+ 1}= \frac{1}{m^2+ 1} x.
mathmari said:
Hey! :giggle:

We consider the function\begin{align*}f:\mathbb{R}^2 &\rightarrow\mathbb{R} \\ (x,y)&\mapsto \begin{cases}\frac{x^3}{x^2+y^2} & \text{ if } (x,y)\neq(0,0) \\ 0 & \text{ if } (x,y)=(0,0) \end{cases}\end{align*}
(a) Show that all directional derivatives of $f$ in $(0,0)$ exist.
(b) Is $f$ differentiable in $(0,0)$ ?For (a) Ihave donethe following:
$$\partial_vf(0,0)=\lim_{h\rightarrow 0}\frac{f(hv_1, hv_2)-f(0,0)}{h}=\lim_{h\rightarrow 0}\frac{v_1^3}{v_1^2+v_2^2}=\frac{v_1^3}{v_1^2+v_2^2}\in \mathbb{R}$$ The limit exists for all $(v_1,v_2)\neq (0,0)$ and so all directional derivatives of $f$ in $(0,0)$ exist.

Is that correct?
It's good except that you have skipped over the important part- showing that the limit does exist. You just stated that it did.

I would have done this: any line (except a vertical line) through the origin can be written y= mx for some constant m. Then f(x,y)= f(x,mx)= \frac{x^3}{x^2+ m^2x^2}= \frac{x^3}{x^2(m^2+ 1)}= \frac{1}{m^2+ 1}x. So the difference quotient, along that line is \frac{\frac{1}{m^2+ 1}h}{h}= \frac{1}{1+ m^2}. The directional derivative is the limit of that as h goes to 0, \frac{1}{m^2+ 1} which certainly exists!

(Along the vertical line through the origin, x= 0 so the function is \frac{0^3}{0^2+ y^2}= 0, a constant so the derivative is 0.)

For (b) I thought to find a sequence $a_n$ that converges to $(0,0)$ such that $f(a_n)$ doesn't converge to $0$, but I haven't found yet such an examle. Can we maybe not find such an example because $f$ is differentiable in $(0,0)$ ?:unsure:
For (b) I thought to find a sequence $a_n$ that converges to $(0,0)$ such that $f(a_n)$ doesn't converge to $0$, but I haven't found yet such an examle. Can we maybe not find such an example because $f$ is differentiable in $(0,0)$ ?:unsure:
 
Klaas van Aarsen said:
Shouldn't we check instead whether $\frac{\|f(a_n)-f(0,0)-\nabla f(0,0)\cdot a_n\|}{\|a_n\|}$ converges to $0$ or not? :unsure:

Note that since the directional derivatives exist, the partial derivatives exist as well, and $\nabla f(0,0)$ is well defined. 🧐

We have that (ifI have doneall calculations correctly) $$\frac{\|f\left ((0,0)+(h_1, h_2)\right )-f(0,0)-\nabla f(0,0)\cdot (h_1,h_2)\|}{\|h\|}=\frac{\|f\left (h_1, h_2\right )-0-(1,0)\cdot (h_1,h_2)\|}{\sqrt{h_1^2+h_2^2}}=\frac{\|f\left (h_1, h_2\right )-h_1\|}{\sqrt{h_1^2+h_2^2}}=\frac{|h_1|\cdot h_2^2}{\sqrt{h_1^2+h_2^2}^3}$$ How do we calculate the last limit? :unsure:
 

So can we not just say, at the way I did it, that for every $(v_1, v_2)\neq (0,0)$ the limit is a real number and so it exists? :unsure:
 
mathmari said:
$$\frac{\|f\left ((0,0)+(h_1, h_2)\right )-f(0,0)-\nabla f(0,0)\cdot (h_1,h_2)\|}{\|h\|}=\frac{\|f\left (h_1, h_2\right )-0-(1,0)\cdot (h_1,h_2)\|}{\sqrt{h_1^2+h_2^2}}=\frac{\|f\left (h_1, h_2\right )-h_1\|}{\sqrt{h_1^2+h_2^2}}=\frac{|h_1|\cdot h_2^2}{\sqrt{h_1^2+h_2^2}^3}$$ How do we calculate the last limit?
Can we find a path $(h_1(t), h_2(t))$ such that the limit is not $0$? 🤔
 
Klaas van Aarsen said:
Can we find a path $(h_1(t), h_2(t))$ such that the limit is not $0$? 🤔

For $h_1=h_2$ we get $$\frac{|h_1|\cdot h_1^2}{\sqrt{h_1^2+h_1^2}^3}=\frac{|h_1|^3}{\sqrt{2h_1^2}^3}=\frac{|h_1|^3}{\sqrt{2}\cdot |h_1|^3}=\frac{1}{\sqrt{2}}\rightarrow \frac{1}{\sqrt{2}}\neq 0$$ Since this doesn't converge to $0$, it follows that $f$ is not differentiable.

Is that correct? Or can we not just take $h_1=h_2$ ? :unsure:
 
mathmari said:
For $h_1=h_2$ we get $$\frac{|h_1|\cdot h_1^2}{\sqrt{h_1^2+h_1^2}^3}=\frac{|h_1|^3}{\sqrt{2h_1^2}^3}=\frac{|h_1|^3}{\sqrt{2}\cdot |h_1|^3}=\frac{1}{\sqrt{2}}\rightarrow \frac{1}{\sqrt{2}}\neq 0$$ Since this doesn't converge to $0$, it follows that $f$ is not differentiable.
All correct. (Sun)
 
Klaas van Aarsen said:
All correct. (Sun)

Great! Thank you very much! (Sun)
 

Similar threads

Replies
11
Views
2K
Replies
21
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K