Given this function: $(x + y)^2 + y$, how do I go about proving it's injective property of mapping $\mathbb{N}×\mathbb{N} \to \mathbb{N}$ ? Surjection is not required. My current attempts include proving by negation: assume $(x_1,y_1) \ne (x_2,y_2)$ yet $(x_1 + y_1)^2 + y_1 = (x_2 + y_2)^2 + y_2$, then attempt to arrive at a contradiction. I wasn't able to find a technique that would help me reach that goal. Geometrically, I can think of the square value to be a growing line but must have a length of certain values (square values). The addition of $y$ must not overwhelm the line to the next "border" of square values. Thus no other value of $y$ would provide the same total length. While $x$ is bound to stretch the line between square values only. My math jargon isn't refined, but that it is how I think of this question.
2026-03-30 12:28:14.1774873694
How do I prove injective property of $(x + y)^2 + y: \mathbb{N}×\mathbb{N} \to \mathbb{N}$
140 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Both @hagen and @user710290 have lead to a correct approach. Here's an elaboration:
Proof by Contradiction
Given $(x_1,y_1) \ne (x_2,y_2)$, assume $(x_1+y_1)^2+y_1 = (x_2+y_2)^2+y_2$.
$y_2=y_1 \implies x_2=x_1$
$(x_1+y_1)^2+y_1 = (x_2+y_2)^2+y_2 \implies y_2=y_1$.
$\therefore (x_1+y_1)^2+y_1 = (x_2+y_2)^2+y_2 \implies (x_1,y_1)=(x_2,y_2)$
Proof by finding an Inverse (Bijection)
From @hagen's post, let $m=(x+y)^2+y$ and $n=\lfloor \sqrt m\rfloor$
$\therefore y=m-n^2$ and $x=n-y$