Wikipedia:Reference desk/Archives/Mathematics/2009 December 19

Mathematics desk
< December 18 << Nov | December | Jan >> December 20 >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


December 19

edit

Differentiability of a function from R^2 to R at the origin

edit

Hi all,

could anyone tell me if the function   with f(0,0)=0 is differentiable at (0,0)? I've shown it to be continuous at 0, and that directional derivatives exist in every direction at the origin, but I'm not sure whether or not it's differentiable at the origin (in the Fréchet derivative sense), and how to prove it if it is or prove it isn't if not.

Thanks for the help, Typeships17 (talk) 05:18, 19 December 2009 (UTC)[reply]

  doesn't look continuous to me, it is 1 everywhere except when x=0 when it is 0. Dmcq (talk) 07:21, 19 December 2009 (UTC)[reply]
Since   for every  ,   is indeed continuous (...but you have probably just made a silly mistake anyway ;)). --PST 10:46, 19 December 2009 (UTC)[reply]
Oops silly me above about f(x,0) being 1, I left the y out of the numerator! Zero most certainly doesn't mean not present. Sorry. Dmcq (talk) 12:43, 19 December 2009 (UTC)[reply]
 
 
Therefore, if f is differentiable at  , necessarily  ; we shall appeal directly to the definition of a Fréchet derivative:
 .
Since the final limit in the sequence is not defined is not 0, f is not differentiable at  . Hope this helps (...and I also hope that I have not muddled anything here; I am in a bit of a hurry...I did muddle something, but have now corrected it). --PST 07:32, 19 December 2009 (UTC)[reply]
Too much in a hurry? Indeed what you have proved is that f is not differentiable at the origin 0. If it were, the differential at 0 would be 0, because both partial derivatives vanish there. But in any other direction the directional derivative is not 0 (in your line −2 there should be r4 r3 in the denominator I think).
Note also that this f is continuous at 0 (in fact everywhere) , and homogeneous of degree 1, that is   for any t in R and v in R2. Any homogeneous function of degree 1 has all directional derivatives at the origin:   But it is F-differentiable iff it is linear: if it is differentiable you have   (and of course this f is not linear). --pma (talk) 08:33, 19 December 2009 (UTC)[reply]
You are right (I have corrected my error above). Thanks for correcting me! --PST 09:25, 19 December 2009 (UTC)[reply]
...But is not the directional derivative of f (at the origin), equal to zero in every direction, per the following computation (  denotes an arbitrary vector):
 
You are of course right that f is not differentiable at the origin, but I think that its directional derivative (at the origin) along every direction is 0 (or maybe I have made another muddle...). ;) --PST 11:04, 19 December 2009 (UTC)[reply]
You're welcome! (not another muddle: the same ;-) ) To summarize, the relevant facts to recall are:
1. The directional derivative of a map   at x wrto the direction v is by definition the derivative of the composed map   at   The directional derivative at   in the direction   is usually denoted   that is  
2. if   is F-differentiable at   then   has all directional derivatives at  , and   (this is a plain consequence of the differentiability of a composition);
3. if   1-homogeneous then   has all directional derivatives at  , and   (this is immediate from   just applying the definition, that is deriving wrto t);
4. Having all directional derivatives does not imply being F-differentiable. Due to the preceding remarks, a counterexample is any 1-homogeneous, not linear function (actually the OP's one is possily the simplest such example; note that it has nonvanishing directional derivatives at the origin in all directions that are not parallel to (0,1) or to (1,0) ).--pma (talk) 11:23, 19 December 2009 (UTC)[reply]
Thanks, but I think there has been a misunderstanding. My point was that the directional derivative of f in every direction is zero, whereas you had said that it was never zero except when the direction corresponded to either of the partial derivatives of f, so I was wondering whether I had made a mistake. I saw my mistake of saying that f is differentiable at the origin, once you pointed it out, but I still cannot see why my assertion that the directional derivative of f (at the origin) is zero in every direction, is incorrect. Sorry for not making myself clear. ;) --PST 11:47, 19 December 2009 (UTC)[reply]
Don't you agree with my point 3? I think there's a factor t missing in the denominator at line −2, in your last post. No matter, I also make these muddles; some of them survived hidden in my notes after years! --pma (talk) 11:53, 19 December 2009 (UTC)[reply]
You are right again ;)!!! I cannot believe I made that mistake. Yes, I should have read your points a bit more carefully. Thanks! --PST 12:18, 19 December 2009 (UTC)[reply]
By the way I believe you should next try   with f(0,0)=0 <evil cackle /> Dmcq (talk) 13:03, 19 December 2009 (UTC)[reply]
I prefer a simpler example: f(x,y)=1 if y=x2 and x≠0, f(x,y)=0 everywhere else. Algebraist 14:52, 19 December 2009 (UTC)[reply]
This response has been fantastic, thankyou all very much! If you don't mind me asking, why is it that in PST's post taking the Frechet derivative directly, the denominator is   rather than  , which is surely  ? Thanks again to everyone for their help! Typeships17 (talk) 15:45, 19 December 2009 (UTC)[reply]
You're completely right. Maybe he worked hard the past night! it happens to me too to make wrong computations the day after. I took the liberty of re-edit his post and correct; I sincerely apologize in advance if this is considered uncorrect (either socially or mathematically) ;-). --pma (talk) 16:07, 19 December 2009 (UTC)[reply]
Yes, you are right actually; I have had late (really late!) nights for the past one week, but that is another story. ;) Thanks for correcting my posts; I do not mind. --PST 06:42, 20 December 2009 (UTC)[reply]
That's great, thanks all! :) Typeships17 (talk) 17:09, 19 December 2009 (UTC)[reply]

Distance from a point to a line

edit

find the distance from the line whose equation is 5x_12y+6=0 to p1(2;3) —Preceding unsigned comment added by 79.141.23.101 (talk) 15:07, 19 December 2009 (UTC)[reply]

(added heading JohnBlackburne (talk) 15:13, 19 December 2009 (UTC))[reply]

See Distance from a point to a line. -- Meni Rosenfeld (talk) 15:53, 19 December 2009 (UTC)[reply]
If you looked here earlier I've since updated it, thinking when I looked at it of something to add then not stopping until I'd rewritten it, so you may want to look again. --JohnBlackburne (talk) 22:46, 19 December 2009 (UTC)[reply]

Plotting a fractal curve defined by binary digits

edit

Consider the functions   and   defined via binary representation this way: for all   with binary expansion   (choose the one with finitely many 1's in case of double representation), the values   and   have binary expansions

 

 

where the binary sequences   and   are respectively:

 

 

I'd like to plot the graphs of   and   and the curve in   with parametric cartesian representation   possibly with some finite sum approximations. I'm trying with Maple but something goes wrong. Would anybody teach me how to do it? The reason I'm interested, is that these pictures (if the computations I've just made are correct) should possibly give a nice addition to a certain wiki article... I'm not saying which one now, in the hope of making people more curious and plot the graph for me. Thank you, --pma (talk) 20:41, 19 December 2009 (UTC)[reply]

Should " " be mod 2? –Henning Makholm (talk) 08:39, 20 December 2009 (UTC)[reply]
Yes, exact, everything is mod 2, thanks. I've changed the sign in front of   to avoid the ambiguity.--pma (talk) 09:30, 20 December 2009 (UTC)[reply]
In any case, (almost) every point in [0,1]×[0,1] will arise as a possible value of (x(t),y(t)), which makes your curve easy to plot – it's a square full of ink!
To see this, let some arbitrary x and y (and thus xk, yk) be fixed. In general, the first k bits of x and y are given by the first 2k bits of t. By induction on k, assume that we have chosen bits up to t2k-2 to give us the desired bits up to xk-1 and yk-1. Now t2k must be 0 or 1 according to whether xk=yk or not. And once we know t2k, the value of the entire card{...} bracket is given, and you can solve for t2k-1.
The only snag is that this procedure might produce a tk sequence that is identically 1 from some point onwards and therefore is not actually hit by your mapping. But there are at most countably many such cases, so they'll hardly show on your graph. –Henning Makholm (talk) 09:00, 20 December 2009 (UTC)[reply]
You got it immediately, excellent. That is a binary representation of the Hilbert curve, and as you are saying, it makes a continuous bijection between non-dyadic points in [0,1] and pairs of non-dyadic points in [0,1]. I was curious to translate it in a binary form, and the above expressions are what I got. I made it because I'd like to see separately the graphs of the two coordinate functions x(t) and y(t) and possibly add the pictures to the article (the curve x(t),y(t) is a square full of ink, as you are saying). But I'm not very fond of plotting programs. --pma (talk) 09:30, 20 December 2009 (UTC)[reply]
Oops, I missed the point about plotting the coordinate functions separately. Can't help you with that, I'm afraid. Not experienced with plotting programs either; I usually end up doing ad-hoc perl scripts that emit pbm's :-)
(And I didn't say that your function was continuous; in fact it was not clear to me in this formulation that it would be continuous at the dyadic rationals). –Henning Makholm (talk) 09:48, 20 December 2009 (UTC)[reply]
Thanks anyway. Note that   represents the Hilbert curve exactly as shown in the linked picture, with the self-similar parametrization. Thus       &c. In particular the above   and   do define continuous functions, although it is not apparent from the formulas (unless, of course, I made a mistake in deriving them). If I'm not wrong your inversion argument also says that the above   and   define a bijection between the Cantor spaces of binary sequences 2 N+2 N+×2 N+, actually a homeomorphism, which makes sense.--pma (talk) 11:20, 20 December 2009 (UTC)[reply]

So, I'll try to plot these graphs in the holidays. For whom is interested: the above xk and yk actually define a homeomorphism h: 2 N+2 N+×2 N+ such that for all binary sequences t and t' that are binary expansions of the same dyadic rational, the corresponding h(t):=(x,y) and h(t'):=(x',y') give binary expansions of the same pair of dyadic rationals (there are only a small number of cases to check). Therefore this map passes to the quotient , as it has to be, producing a continuous surjective map H:I→I×I, which is the (Hilbert variant of the) Peano map shown in the linked article, from which I deduced the above definition of xk and yk.--pma (talk) 13:31, 22 December 2009 (UTC)[reply]

 
X-coordinate of the Hilbert square-filling curve.

To the interested reader: I learnt how to make decent graphs of the above functions with Maple. Here they are.... Note that for time 0≤t≤1/2, x(t) varies from 0 to 1/2 while y(t) covers the whole interval [0,1]. --pma (talk) 23:56, 24 December 2009 (UTC)[reply]