The function [tex]f[/tex] is defined by [tex]f(x,y)=\frac{xy(x+y)+x^2+y^2}{x^2+y^2}[/tex] for [tex](x,y)\ne(0,0)[/tex] and [tex]f(0,0)=1[/tex]. Prove that [tex]f[/tex] is continuous at the point [tex]O(0, 0)[/tex] but is not differentiable there.
Solution:
For [tex](x,y)\ne(0,0)[/tex] we have [tex]f(x,y)=1+g(x,y)[/tex], where
[tex]g(x,y)=\frac{xy(x+y)}{x^2+y^2}[/tex]
Continuity. Since [tex]|xy|\le\frac{x^2+y^2}{2}[/tex], we get
[tex]|g(x,y)|\le\frac{|x+y|}{2}\le\frac{|x|+|y|}{2}[/tex]
and the right-hand side tends to [tex]0[/tex] as [tex](x,y)\to(0,0)[/tex]. Hence
[tex]\lim_{(x,y)\to(0,0)}f(x,y)=1=f(0,0)[/tex]
so [tex]f[/tex] is continuous at [tex]O[/tex]. Partial derivatives at [tex]O[/tex]: [tex]g(x,0)=g(0,y)=0[/tex], so [tex]f(x,0)=f(0,y)=1[/tex] and
[tex]f'_x(0,0)=\lim_{h\to 0}\frac{f(h,0)-f(0,0)}{h}=0,\quad f'_y(0,0)=\lim_{h\to 0}\frac{f(0,h)-f(0,0)}{h}=0[/tex]
Differentiability. If [tex]f[/tex] were differentiable at [tex]O[/tex], its differential there would be [tex]f'_x(0,0)\,dx+f'_y(0,0)\,dy=0[/tex], and we would have
[tex]\lim_{(x,y)\to(0,0)}\frac{f(x,y)-f(0,0)}{\sqrt{x^2+y^2}}=\lim_{(x,y)\to(0,0)}\frac{g(x,y)}{\sqrt{x^2+y^2}}=0[/tex]
But along the ray [tex]y=x[/tex], [tex]x\gt 0[/tex]:
[tex]g(x,x)=\frac{x\times x\times 2x}{2x^2}=x,\qquad \frac{g(x,x)}{\sqrt{2x^2}}=\frac{x}{\sqrt{2}\,x}=\frac{1}{\sqrt{2}}\ne 0[/tex]
Hence the limit is not [tex]0[/tex], and [tex]f[/tex] is not differentiable at [tex]O[/tex], although it is continuous there and has both partial derivatives.