$\Omega_1 = \{y > 0\} $
$\Omega_2 = \{y < 0\} $
$\Omega_3 = \mathbb R^2 \backslash \{x \leq 0 \ \ ; \ \ y = 0 \} $
\begin{equation} f(x,y) = \left \{ \begin{aligned} &- \arctan \frac x y + \pi, && \text{if}\ (x,y) \in \Omega_1 \\ & \frac {\pi} 2, && \text{if} \ y = 0 \ ; \ x > 0 \\ &- \arctan \frac x y, && \text{if}\ (x,y) \in \Omega_2 \end{aligned} \right. \end{equation}
Prove that :$$ f \in C^1( \Omega_3) $$
So the obviously only problem is on the boundary of $\Omega_1$ and $\Omega_2$. I don't know how to prove neither continuity nor differentiability. Can you help me ?
Ok well, I have something of which I'm not completly sure. Do not hesitate to comment my proof.
What I'm going to show is that the $f$ function is differentiable, meaning it has continuous partial derivatives. This will give continuity.
First : (I note $f_x$ the partial derivative according to the first variable.)
$$ g(x,y) := f_x(x,y) = \frac {y}{x^2+y^2} $$ $$ h(x,y) := f_y(x,y) = -\frac {x}{x^2+y^2} $$
So, let's take a look at those two functions. We fixe $A(x,y)$ ; $B( x, \overline{y}) $ ; $ C( \overline{x} , \overline{y})$
We want to prove that :
$$\lim_{ (x,y) → (\overline{x} , \overline{y}) } g(x,y) = g(\overline{x} , \overline{y}) $$
Nevertheless :
$$|g(x,y) - g(\overline{x} , \overline{y})| \leq |g(x,y) - g(x , \overline{y})| + |g(x , \overline{y}) -g(\overline{x} , \overline{y}) | $$ and : $$|g(x,y) - g(x , \overline{y})| = | \frac {y}{x^2 + y^2}| →_{(x,y) → (x , \overline{y})} 0$$ $$|g(x , \overline{y}) -g(\overline{x} , \overline{y}) | = 0$$
Then $g$ is continuous on $\Omega_3$.
We do the same thing for $h$ and this will conclude the proof.
We fixe another 3 points : $A(x,y)$ ; $B( \overline{x}, y) $ ; $ C( \overline{x} , \overline{y})$
We want to prove that :
$$\lim_{ (x,y) → (\overline{x} , \overline{y}) } h(x,y) = h(\overline{x} , \overline{y}) $$
Nevertheless :
$$|h(x,y) - h(\overline{x} , \overline{y})| \leq |h(x,y) - h(\overline{x} , y)| + |h(\overline{x} , y) -h(\overline{x} , \overline{y}) | $$ and : $$|h(x,y) - h(\overline{x} , y)| →_{(x,y) → (\overline{x} , y)} 0$$ $$|h(\overline{x} , y) -h(\overline{x} , \overline{y}) | →_{(\overline{x} , y) → (\overline{x} , \overline{y})} 0$$
Then $h$ is continuous on $\Omega_3$.