[example: Integral Binary Quadratic Form]
Let $q: \mathbb{Z}^2 \to \mathbb{Z}$ be defined by
\begin{align*}
q(x,y)=x^2+xy+y^2.
\end{align*}
This is the function induced by a quadratic form over the commutative ring $\mathbb{Z}$, since the expression is homogeneous of degree $2$ with integer coefficients. It represents $1$ because
\begin{align*}
q(1,0)=1^2+1\cdot 0+0^2=1,
\end{align*}
and it represents $3$ because
\begin{align*}
q(1,1)=1^2+1\cdot 1+1^2=3.
\end{align*}
We show that $q$ does not represent $2$ over $\mathbb{Z}^2$. Suppose, for contradiction, that $x,y \in \mathbb{Z}$ satisfy $q(x,y)=2$. Then
\begin{align*}
x^2+xy+y^2=2.
\end{align*}
Multiplying by $4$ gives
\begin{align*}
4x^2+4xy+4y^2=8.
\end{align*}
Since
\begin{align*}
(2x+y)^2=4x^2+4xy+y^2,
\end{align*}
we have
\begin{align*}
4x^2+4xy+4y^2=(2x+y)^2+3y^2.
\end{align*}
Therefore
\begin{align*}
(2x+y)^2+3y^2=8.
\end{align*}
The term $(2x+y)^2$ is nonnegative, so $3y^2 \le 8$. Hence $y^2 \le 2$, and because $y \in \mathbb{Z}$ this forces $y \in \{-1,0,1\}$. If $y=0$, then
\begin{align*}
(2x+y)^2=8,
\end{align*}
which is impossible because $2x+y$ is an integer and no integer square equals $8$. If $y=1$ or $y=-1$, then $3y^2=3$, so
\begin{align*}
(2x+y)^2=8-3=5,
\end{align*}
which is impossible because no integer square equals $5$. Thus no pair $(x,y) \in \mathbb{Z}^2$ satisfies $q(x,y)=2$.
This example illustrates the arithmetic question attached to an integral form: determine the set of values $q(x,y)$ as $(x,y)$ ranges through $\mathbb{Z}^2$.
[/example]