I am stuck on the following problem, which I do not believe to be so difficult.
Let $X$ and $Y$ be Banach spaces. Let $f:X\times X\rightarrow Y$ be a function such that for any fixed $x_0$, $f(x,x_0)$ and $f(x_0,x)$ are continuous in $x$. Then is $f(x,x)$ continuous in $x$?
I tried taking an arbitrary convergent subsequence $\{x_n\}$ which converges to some $x$ and trying to argue that $f(x_n,x_n)$ converges to $f(x,x)$ using continuity in both terms, but I cannot seem to make this work for some reason.
Any help is greatly appreciated.