Let $f: \mathbb{R}^2 \rightarrow \mathbb{R}$ be twice differentiable such that $\frac{\partial ^2f}{\partial x\partial y} = 0$. Prove that exists functions $ϕ: \mathbb{R} \rightarrow \mathbb{R}$ and $ψ: \mathbb{R} \rightarrow \mathbb{R}$, twice differentiable functions, such that $$f(x, y) = ϕ(x) + ψ(y).$$
In this question i tried use the Schwarz Theorem, i know that in $\mathbb{R}^2$ (a open set) $\frac{\partial }{\partial y}\left(\frac{\partial f}{\partial x}\right)=\frac{\partial \:}{\partial \:x}\left(\frac{\partial \:f}{\partial \:y}\right)$ for all $x,y \in \mathbb{R}^2$ and the condition of the problem we have that $\frac{\partial \:f}{\partial \:y}$ = $g(y)$ + c and $\frac{\partial f}{\partial x} = h(x)+ d$, (c,d constants), how am i proceed with the information that $\frac{\partial f}{\partial x}$ only depends $x$ and $\frac{\partial \:f}{\partial \:y}$ only depends $y$? am i in the right way?