Consider the scalar field $f(x,y)=\sqrt{|xy|}$.
Here is a $3D$ plot
In Apostol's Calculus we are asked to verify that the partial derivatives $\frac{\partial f}{\partial x}$ and $\frac{\partial f}{\partial y}$ are zero at the origin.
I know how to show this by using the definition of partial derivatives. For example
$$\frac{\partial f(0,0)}{\partial x}=\lim\limits_{h\to 0} \frac{f(\langle 0,0\rangle+h\langle 1,0\rangle)-f(0,0)}{h}\tag{1}$$
$$\lim\limits_{h\to 0} \frac{f(h,0)-f(0,0)}{h}\tag{2}$$
$$=0$$
But my question regards the expression
$$\frac{\partial f(x,y)}{\partial x}=\frac{1}{2}\sqrt{\frac{y}{x}}\tag{3}$$
which is the partial derivative when $x>0$ and $y>0$ (alternatively, when both are negative).
What are the precise reasons that this expression isn't true at the origin, and yet the partial derivative is defined at the origin?
Note that this expression isn't defined at the origin. But why?
It is defined for all points except the origin on the line of points of form $(x,0)$.
To obtain (3), we took the limit of
$$\frac{f(x+h,y)-f(x,y)}{h}\tag{4}$$
and the resulting expression isn't defined at the origin.
On the other hand to show that the partial derivative does exist at the origin we took the limit of
$$\frac{f(0+h,0)-f(0,0)}{h}\tag{5}$$
It is not clear to me why the limit of this expression is defined, but the limit of (4) evaluated at the origin isn't defined.

Turning it around, another interesting question is "why do the partial derivatives exist at the origin even though the function is not differentiable?"
Just like a simple function $f$ from $\mathbb{R}$ to $\mathbb{R}$ is differentiable if the function's graph near the point is similar to a line which is not vertical, a function $f$ from $\mathbb{R}^m$ to $\mathbb{R}$ is called differentiable if the function acts similar to a function linear in each input coordinate. For $\mathbb{R}^2 \to \mathbb{R}$, this means the graph near the point is similar to a plane which is not vertical.
A differentiable function has the nice property that we can know the approximate rate of change along any path through the domain from just a gradient vector. One definition of "differentiable" here is:
(More generally, a function $F: \mathbb{R}^n \to \mathbb{R}^m$ has similar properties using the Jacobian matrix in place of the gradient vector.)
We also have the simple gradient formula like
$$\nabla f = \frac{\partial f}{\partial x} \hat \imath + \frac{\partial f}{\partial y} \hat \jmath \label{eq:2} \tag{2}$$
The essential relation between equations $\ref{eq:1}$ and $\ref{eq:2}$ is that the partial derivatives are determined from the two simplest paths $\sigma$: $\sigma(t) = (t,0)$ or $\sigma(t) = (0,t)$. So IF $f$ is differentiable, then the partial derivatives do exist, and $\ref{eq:2}$ gives us an easy way to compute $\nabla f$, and then we can use it more generally along any path via $\ref{eq:1}$. But just the existence of partial derivatives doesn't prove the function is differentiable at that point, since they only capture behavior on those two paths, not along all paths. And other theorems which involve partial derivatives, or the gradient or Jacobian almost always require differentiability.
When $x \neq 0$ and $y \neq 0$, this example function $f(x,y) = \sqrt{|xy|}$ is differentiable and has gradient
$$ \nabla f = \frac{1}{2} \sqrt{|xy|} \left(\frac{\hat \imath}{x} + \frac{\hat \jmath}{y}\right) \tag{3}$$
When $x=0$ or $y=0$, the example function is not differentiable. If $y=0$ and $x \neq 0$, then even though $f$ is not differentiable, it does have the partial derivative $\frac{\partial f}{\partial x} = 0$ since the particular path along the $x$-axis stays exactly in the groove where $f=0$. But along most other paths we're likely to try, the rate of change of $f$ approaches an infinity. The same way, if $x=0$ and $y \neq 0$, $f$ is not differentiable but has $\frac{\partial f}{\partial y} = 0$. And at the origin point itself, $\frac{\partial f}{\partial x} = \frac{\partial f}{\partial y} = 0$, but $f$ is still not differentiable because on other paths approaching the origin $f$ changes too fast.