TITLE: If a function on a product space is continuous in each variable, is it locally bounded?
QUESTION [6 upvotes]: Let $f : \mathbb R \times \mathbb R \to \mathbb R$ be continuous when we fix one variable. Then $f$ need not be continuous (see e.g. Functions continuous in each variable ).

Does it imply that $f$ is locally bounded?

I would be surprised, but couldn't immediately think of a counterexample.

Context: I'm interested in $f : \mathbb R \times \mathbb C \to \mathbb C$ that are continuous in the first and analytic in the second variable. In this case, Cauchy's integral formula + Dominated convergence tells us that locally bounded implies jointly continuous.

REPLY [3 votes]: We can show that, for $K \subseteq \mathbb R$ compact and $U \subseteq \mathbb R$ open, there exists $V \subseteq U$ open such that $f : K \times V \to \mathbb R$ is bounded. That is, globally in one variable and locally in the other (but we have no control over $V$).
In particular, there is a dense open set $V \subseteq \mathbb R$ such that $f : K \times V \to \mathbb R$ is locally bounded.
It follows by applying the Baire category theorem to the closed sets
$$\Omega_B = \{ y \in U : \forall x \in K : |f(x, y)| \leq B \}$$
We use continuity in the second variable to have that the $\Omega_B$ are closed, and in the first variable to have that their union is $U$. I found the argument at the bottom of page 2 here: http://www-users.math.umn.edu/~garrett/m/complex/hartogs.pdf