I'm trying to solve the following exercise:
Let $f:\mathbb R^2 \to \mathbb R$ a continuous function whose partials exist everywhere in $\mathbb R^2$. Show that $f$ is ($\mathbb R$-)differentiable when $\frac{\partial f}{\partial x}$ is continuous.
I know from a theorem that $f: \mathbb R^n \to \mathbb R$ is differentiable if every partial is continuous. Now it seems to be the case that I only need one partial to be continuous.
My attempt was at first to show that $\frac{\partial f}{\partial y}$ is continuous, however I don't know if that is necessary or even possible (since $f$ can be differentiable without both partials being continuous).
My second attempt was to show that a $\mathbb R$-linear function $L$ exists with $$\lim\limits_{h\to 0}\frac{f(\zeta + h) - f(\zeta) - L(h)}{||h||_2} =0$$ Since this function must be $\nabla f$, I proved $\nabla f$ is linear and now want to show that $$\lim\limits_{h\to 0}\frac{f(\zeta + h) - f(\zeta) -(\frac{\partial f(\zeta)}{\partial x}h_1+\frac{\partial f(\zeta)}{\partial y}h_2)}{||h||_2} =0$$
This is where I am stuck, I doubt that this is the correct way to prove it but don't know what to do else. Would appreciate some help.
Edit:
This is what I've tried to do next with help of Davids hints:
Define
$$\nabla f(0) = (\frac{\partial f}{\partial x}(0), \frac{\partial f}{\partial y}(0)) =: (\alpha, \beta)$$
It now holds that
$$\begin{align*} & f(h) - f(0) - (\alpha h_1 + \beta h_2) \\
&=f(h) - f(h_2 e_2)) - \alpha h_1 + f(h_2 e_2) - f(0) - \beta h_2\end{align*}$$
If we plug that into the definition we get
$$\lim \limits_{h\to0}\frac{f(h) - f(h_2 e_2) - \alpha h_1 + f(h_2 e_2) - f(0) - \beta h_2}{||h||_2} \\
=\lim \limits_{h\to0}\frac{f(h) - f(h_2 e_2) - \alpha h_1}{||h||_2} + \lim \limits_{h\to0}\frac{f(h_2 e_2) - f(0) - \beta h_2}{||h||_2} \\
=\lim \limits_{h\to0}\frac{f(h) - f(h_2 e_2)}{||h||_2} - \lim \limits_{h\to0}\frac{\alpha h_1}{||h||_2} + \lim \limits_{h\to0}\frac{f(h_2 e_2) - f(0)}{||h||_2}- \lim \limits_{h\to0}\frac{\alpha h_1}{||h||_2} \\
=\lim \limits_{h\to0}\frac{f(h) - f(h_2 e_2)}{||h||_2} - \lim \limits_{h\to0}\frac{\alpha h_1}{||h||_2} + \frac{\partial f}{\partial y}(0)- \lim \limits_{h\to0}\frac{\alpha h_1}{||h||_2}$$
This is where I am stuck. I don't know the $\alpha$ and $\beta$ terms tend to 0 for $h\to0$ or not and how to use the continuity of $\partial_x f$.