# Showing that the directional derivatives exist but f is not continuous

Hernaner28

## Homework Statement

It says:

$$\displaystyle f:{{\mathbb{R}}^{2}}\to \mathbb{R}$$

\displaystyle f\left( x,y \right)=\left\{ \begin{align} & 1\text{ if 0<y<}{{\text{x}}^{2}} \\ & 0\text{ in other cases} \\ \end{align} \right.

Show that all the directional derivatives about (0,0) exist but f is not continuous in (0,0).

## Homework Equations

Directional derivative:
$$\displaystyle \frac{\partial f}{\partial v}\left( 0,0 \right)=\underset{h\to 0}{\mathop{\lim }}\,\frac{f\left( \left( 0,0 \right)+\left( ha,hb \right) \right)-f\left( 0,0 \right)}{h}$$

## The Attempt at a Solution

I write the equation for the directionar derivative respect to a generic v=(a,b) about the origin:

$$\displaystyle \frac{\partial f}{\partial v}\left( 0,0 \right)=\underset{h\to 0}{\mathop{\lim }}\,\frac{f\left( \left( 0,0 \right)+\left( ha,hb \right) \right)-f\left( 0,0 \right)}{h}$$

That is:

$$\displaystyle =\underset{h\to 0}{\mathop{\lim }}\,\frac{f\left( ha,hb \right)}{h}$$

I should arrive that the limit does not depend on v=(a,b). But I'm stuck here. Which is the value of $$\displaystyle f\left( ha,hb \right)$$ 1 or 0? It clearly depends on the vector v. If I get close to the origin by the y-axis then $$\displaystyle f\left( 0,hb \right)=0$$.

Thanks!

PD: I hope I'm not breaking the rules. I've received several infractions which I'm not going to discuss here. It's not my intention.

Last edited:

Mentor

## Homework Statement

It says:

$$\displaystyle f:{{\mathbb{R}}^{2}}\to \mathbb{R}$$

\displaystyle f\left( x,y \right)=\left\{ \begin{align} & 1\text{ if 0<y<}{{\text{x}}^{2}} \\ & 0\text{ in other cases} \\ \end{align} \right.

Show that all the directional derivatives about (0,0) exist but f is not continuous in (0,0).

## Homework Equations

Directional derivative:
$$\displaystyle \frac{\partial f}{\partial v}\left( 0,0 \right)=\underset{h\to 0}{\mathop{\lim }}\,\frac{f\left( \left( 0,0 \right)+\left( ha,hb \right) \right)-f\left( 0,0 \right)}{h}$$

## The Attempt at a Solution

I write the equation for the directionar derivative respect to a generic v=(a,b) about the origin:

$$\displaystyle \frac{\partial f}{\partial v}\left( 0,0 \right)=\underset{h\to 0}{\mathop{\lim }}\,\frac{f\left( \left( 0,0 \right)+\left( ha,hb \right) \right)-f\left( 0,0 \right)}{h}$$

That is:

$$\displaystyle =\underset{h\to 0}{\mathop{\lim }}\,\frac{f\left( ha,hb \right)}{h}$$

I should arrive that the limit does not depend on v=(a,b). But I'm stuck here. Which is the value of $$\displaystyle f\left( ha,hb \right)$$ 1 or 0? It clearly depends on the vector v. If I get close to the origin by the y-axis then $$\displaystyle f\left( 0,hb \right)=0$$.

Thanks!

PD: I hope I'm not breaking the rules. I've received several infractions which I'm not going to discuss here. It's not my intention.

Are you sure you have posted the exact wording of the problem? The function isn't continuous at (0, 0). In fact it's discontinuous all along the parabola y = x2 in the x-y plane.

Hernaner28
Yes, I can imagine what the graph looks like and its discontinuity is pretty obvious but what I'm asked to show is that the directional derivatives do exist around the origin but the function is still discontinuous.

Thanks Mark!

Mentor
I don't see how the directional derivative in the direction of -j, at (0, 0), could exist.

Look at the difference quotient using these values:

v = (0, -1), h = .1
v = (0, -1), h = .01
v = (0, -1), h = .001
and so on...

Hernaner28

The directional derivative respecto to v=(0,-1) about (0,0) is:

$$\displaystyle \underset{h\to 0}{\mathop{\lim }}\,\frac{f\left( 0,-h \right)}{h}=\underset{h\to 0}{\mathop{\lim }}\,\frac{1}{h}$$

which is infinite, isn't it?

Thanks!

PD: I am looking at the wording of the problem right now and it says that. Maybe just a mistake from the professors.

Hernaner28
Sorry, that's wrong. The limit is zero in all directions because f(0,-h)=0. The numerator is zero, then the limit is zero.

Staff Emeritus
Homework Helper
You should be able to prove that given (a,b), if h is small enough, f(ha,hb) will equal 0.

Hernaner28
Yes, I see. Do I have to do any formal proof with deltas and epsilon? Or can I just write it directly?

Thanks vela!

Staff Emeritus
Homework Helper