Let $f(z)=x^2+iy^2$ find where it is differentiable and where it is analytic in $\mathbb{C}$
For a function to be differentiable at a point it should fulfil C-R equations, we have
$u(x,y)=x^2$ and $v(x,y)=y^2$
So $u_x=2x=2y=v_y$ and $u_y=0=0-v_x$
So the function is differentiable iff $2x=2y\iff x=y$
So the function is differentiable on the straight line $y=x$
So $f(z)$ is not analytic? as it is only differentiable on a straight line and not in areas are a point? on the other hand the function seems to have no problematic points (singularities) so it is analytic?
That depends on the definition of analytic function that you use. But if it is the usual one (which implies that if $f$ is analytic at a point $z$ then it is analytic in all points of a neighborhood of $z$) than $f$ is analytic nowhere.