What are some examples of functions $f(a,b)$ that is an integer if and only if when $a$ and $b$ are both integers? We require that $f$ be continuous, though not necessarily differentiable, and that we only use elementary functions.
2026-03-27 14:54:01.1774623241
Constructing a function $f : \Bbb R^2 \to \Bbb R$ such that $f(a, b)$ is an integer if and only if $a, b$ are integers.
94 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Hint A function $$f(x, y) = g(x, y)^2 + h(x, y)^2$$ is zero precisely where $g$ and $h$ are. So, pick a function $j : \Bbb R \to \Bbb R$ that vanishes only at integer values $t$ and is suitably bounded and set $g(x, y) = j(x)$ and $h(x, y) = j(y)$.
Remark Any two integers in the image $\operatorname{im} f$ of such a function $f$ must be consecutive, and in particular $\operatorname{im} f$ contains no more than two integers. Suppose not: Let $(x_1, y_1), (x_2, y_2)$ be integer points where $f$ takes on nonconsecutive integer values $c_1, c_2$, say, $c_1 < a < c_2$ for some integer $a$, and pick a path $\gamma : [t_1, t_2] \to \Bbb R^2$ connecting those points not passing through any other integer points. Then, $f \circ \gamma$ is a continuous function $[t_1, t_2] \to \Bbb R$ satisfying $(f \circ \gamma)(t_i) = f(x_i, y_i) = c_i$, $i = 1, 2$, and the Intermediate Value Theorem says that there is some $t \in I$ such that $f(f \circ \gamma)(t) = a$, so $f$ takes on the integer value $a$ at the noninteger point $\gamma(t)$.