Mathematical-Reasoning Β· Unit 21 Β· Video 4 Β· Interactive Practice

Functions of Two Variables: Preimages in β„€ Γ— β„€

IKey Formulas

FormulaNameWhat it says
f:Z×Z→Zf : \mathbb{Z} \times \mathbb{Z} \to \mathbb{Z}, f(m,n)f(m, n) for f((m,n))f\big((m, n)\big)Function of two variablesOne input, the ordered pair (m,n)(m, n); one output in Z\mathbb{Z}
(a,b)=(c,d)β€…β€ŠβŸΊβ€…β€Ša=cΒ andΒ b=d(a, b) = (c, d) \iff a = c \text{ and } b = dEqual ordered pairsOrder matters: (2,3)β‰ (3,2)(2, 3) \ne (3, 2)
{(m,n)∈ZΓ—Z∣f(m,n)=y}\{(m, n) \in \mathbb{Z} \times \mathbb{Z} \mid f(m, n) = y\}Preimages of yyAll solutions of one equation in two unknowns; a subset of the domain
{(m,n)∈ZΓ—Z∣2m+n=0}={(m,n)∈ZΓ—Z∣n=βˆ’2m}\{(m, n) \in \mathbb{Z} \times \mathbb{Z} \mid 2m + n = 0\} = \{(m, n) \in \mathbb{Z} \times \mathbb{Z} \mid n = -2m\}Two descriptions, one setEquivalent conditions pick out the same pairs

Key Insight: Each pair (m,n)(m, n) has exactly one output, but nothing stops many pairs from sharing an output. The set of preimages of yy can be infinite, finite or empty, and its elements are always ordered pairs.

IIOne Pair In, One Integer Out

Every pair (m,n)(m, n) has exactly one output; several pairs may share it, and swapping the coordinates can change it.

IIIHunting for Preimages

The preimages of tt are the solutions of one equation in two unknowns: infinitely many, finitely many, or none.

πŸ’‘ Challenge: for k(m,n)=∣m∣+∣n∣k(m, n) = |m| + |n|, find the target tt whose set of preimages has exactly 88 elements, and list them.

IVQuiz Questions

Problem 1 Β· Evaluate at an Ordered Pair

Given: p:ZΓ—Zβ†’Zp : \mathbb{Z} \times \mathbb{Z} \to \mathbb{Z}, p(m,n)=3mβˆ’2np(m, n) = 3m - 2n. Find p(βˆ’2,5)p(-2, 5) and p(5,βˆ’2)p(5, -2).

What is p(βˆ’2, 5)?

What is p(5, βˆ’2)?

βœ… Correct! p(βˆ’2,5)=βˆ’16p(-2, 5) = -16 and p(5,βˆ’2)=19p(5, -2) = 19: the pairs (βˆ’2,5)(-2, 5) and (5,βˆ’2)(5, -2) are different inputs, and here they have different outputs.
❌ Check the sign. The second term is βˆ’2n=βˆ’2β‹…5=βˆ’10-2n = -2 \cdot 5 = -10, so p(βˆ’2,5)=βˆ’6βˆ’10p(-2, 5) = -6 - 10, not βˆ’6+10-6 + 10.
❌ Order matters. 1919 is p(5,βˆ’2)p(5, -2). In p(βˆ’2,5)p(-2, 5) the first coordinate is m=βˆ’2m = -2 and the second is n=5n = 5.
❌ Not quite. 3(βˆ’2)+5=βˆ’13(-2) + 5 = -1 uses +n+n instead of βˆ’2n-2n. The rule subtracts twice the second coordinate.
❌ Check the sign. With n=βˆ’2n = -2, the term βˆ’2n-2n is βˆ’2β‹…(βˆ’2)=+4-2 \cdot (-2) = +4, so p(5,βˆ’2)=15+4p(5, -2) = 15 + 4.
❌ Order matters. βˆ’16-16 is p(βˆ’2,5)p(-2, 5). Swapping the coordinates gives a different input, and here a different output.
❌ Not quite. 15+(βˆ’2)=1315 + (-2) = 13 uses +n+n instead of βˆ’2n-2n; the term is βˆ’2β‹…(βˆ’2)=4-2 \cdot (-2) = 4.
Show solution

Substitute the first coordinate for mm and the second for nn:

p(βˆ’2,5)=3(βˆ’2)βˆ’2(5)=βˆ’6βˆ’10=βˆ’16p(-2, 5) = 3(-2) - 2(5) = -6 - 10 = -16 p(5,βˆ’2)=3(5)βˆ’2(βˆ’2)=15+4=19p(5, -2) = 3(5) - 2(-2) = 15 + 4 = 19

Since (βˆ’2,5)β‰ (5,βˆ’2)(-2, 5) \ne (5, -2), these are two different elements of the domain ZΓ—Z\mathbb{Z} \times \mathbb{Z}, and nothing forces their outputs to agree.

Problem 2 Β· Preimages in Set-Builder Form

Given: q:ZΓ—Zβ†’Zq : \mathbb{Z} \times \mathbb{Z} \to \mathbb{Z}, q(m,n)=mβˆ’n2q(m, n) = m - n^2. Which set is the set of all preimages of 33?

βœ… Correct! mβˆ’n2=3β€…β€ŠβŸΊβ€…β€Šm=n2+3m - n^2 = 3 \iff m = n^2 + 3, and every integer nn gives exactly one preimage (n2+3,n)(n^2 + 3, n).
❌ Check the sign. Adding n2n^2 to both sides of mβˆ’n2=3m - n^2 = 3 gives m=n2+3m = n^2 + 3. This set contains (βˆ’3,0)(-3, 0), but q(βˆ’3,0)=βˆ’3q(-3, 0) = -3.
❌ The coordinates have swapped roles. Here the square is on nn, not mm. This set contains (2,1)(2, 1), but q(2,1)=2βˆ’1=1q(2, 1) = 2 - 1 = 1.
❌ Not all of them. Each listed pair is a preimage of 33, but so is (12,3)(12, 3), and in fact (n2+3,n)(n^2 + 3, n) for every integer nn: the set is infinite.
Show solution

The preimages of 33 are the pairs (m,n)∈ZΓ—Z(m, n) \in \mathbb{Z} \times \mathbb{Z} with q(m,n)=3q(m, n) = 3, that is, the integer solutions of mβˆ’n2=3m - n^2 = 3. Solving for mm:

mβˆ’n2=3β€…β€ŠβŸΊβ€…β€Šm=n2+3.m - n^2 = 3 \iff m = n^2 + 3.

For each integer nn, n2+3n^2 + 3 is an integer, so each choice of nn gives exactly one preimage, and there are infinitely many:

{(m,n)∈ZΓ—Z∣mβˆ’n2=3}={(m,n)∈ZΓ—Z∣m=n2+3}.\{(m, n) \in \mathbb{Z} \times \mathbb{Z} \mid m - n^2 = 3\} = \{(m, n) \in \mathbb{Z} \times \mathbb{Z} \mid m = n^2 + 3\}.

Check one element: (7,βˆ’2)(7, -2) gives 7βˆ’(βˆ’2)2=7βˆ’4=37 - (-2)^2 = 7 - 4 = 3. The set is a subset of the domain ZΓ—Z\mathbb{Z} \times \mathbb{Z}.

Problem 3 Β· Finite and Infinite Preimage Sets

Given: h:Z×Z→Zh : \mathbb{Z} \times \mathbb{Z} \to \mathbb{Z}, h(m,n)=mnh(m, n) = mn. Find how many preimages 66 has, and the set of preimages of 00.

How many preimages does 6 have?

Which set is the set of preimages of 0?

βœ… Correct! 66 has exactly 88 preimages, while the preimages of 00 fill both coordinate axes of the grid: infinitely many.
❌ Missing the negatives. (1,6)(1, 6), (2,3)(2, 3), (3,2)(3, 2), (6,1)(6, 1) are preimages, but so is (βˆ’2,βˆ’3)(-2, -3), since (βˆ’2)(βˆ’3)=6(-2)(-3) = 6.
❌ Not here. One equation in two unknowns can have finitely many integer solutions. If mn=6mn = 6, then mm divides 66, so mm has only 88 possible values, each with one nn.
❌ Order matters, and so do signs. (2,3)(2, 3) and (3,2)(3, 2) are different ordered pairs, and negative factors also multiply to 66.
❌ Too few. (0,0)(0, 0) is a preimage, but so is (0,7)(0, 7): 0β‹…7=00 \cdot 7 = 0. A product is 00 whenever either factor is 00.
❌ That is the condition for a sum. m=βˆ’nm = -n means m+n=0m + n = 0. This set contains (1,βˆ’1)(1, -1), but h(1,βˆ’1)=βˆ’1h(1, -1) = -1.
❌ Only half. These pairs are preimages, but so are the pairs (0,n)(0, n), such as (0,4)(0, 4), which are not in this set.
Show solution

Preimages of 6. We need integers with mn=6mn = 6. Then mm divides 66, so m∈{βˆ’6,βˆ’3,βˆ’2,βˆ’1,1,2,3,6}m \in \{-6, -3, -2, -1, 1, 2, 3, 6\}, and each such mm determines n=6/mn = 6/m:

(1,6)(1, 6), (2,3)(2, 3), (3,2)(3, 2), (6,1)(6, 1), (βˆ’1,βˆ’6)(-1, -6), (βˆ’2,βˆ’3)(-2, -3), (βˆ’3,βˆ’2)(-3, -2), (βˆ’6,βˆ’1)(-6, -1).

That is exactly 88 preimages: a finite set.

Preimages of 0. For integers, mn=0mn = 0 exactly when m=0m = 0 or n=0n = 0. So

{(m,n)∈ZΓ—Z∣mn=0}={(m,n)∈ZΓ—Z∣m=0Β orΒ n=0},\{(m, n) \in \mathbb{Z} \times \mathbb{Z} \mid mn = 0\} = \{(m, n) \in \mathbb{Z} \times \mathbb{Z} \mid m = 0 \text{ or } n = 0\},

which contains every pair (m,0)(m, 0) and every pair (0,n)(0, n): infinitely many.

Problem 4 Β· Counting Lattice Points on a Circle

Given: s:Z×Z→Zs : \mathbb{Z} \times \mathbb{Z} \to \mathbb{Z}, s(m,n)=m2+n2s(m, n) = m^2 + n^2. Find how many preimages 2525 has, and the set of preimages of 33.

How many preimages does 25 have?

Which set is the set of preimages of 3?

βœ… Correct! 2525 has exactly 1212 preimages, and 33 has none: its set of preimages is the empty set, a perfectly good subset of ZΓ—Z\mathbb{Z} \times \mathbb{Z}.
❌ Too few. (0,±5)(0, \pm 5) and (±5,0)(\pm 5, 0) are preimages, but so is (3,4)(3, 4): 9+16=259 + 16 = 25.
❌ Too few. The 88 pairs (±3,±4)(\pm 3, \pm 4), (±4,±3)(\pm 4, \pm 3) are preimages, but so is (5,0)(5, 0): 25+0=2525 + 0 = 25.
❌ Not here. If m2+n2=25m^2 + n^2 = 25 then m2≀25m^2 \le 25, so βˆ’5≀m≀5-5 \le m \le 5; the same holds for nn, leaving only finitely many pairs to check.
❌ Check the arithmetic. s(1,1)=1+1=2s(1, 1) = 1 + 1 = 2, not 33.
❌ Not in the domain. 2\sqrt{2} is not an integer, so (1,2)βˆ‰ZΓ—Z(1, \sqrt{2}) \notin \mathbb{Z} \times \mathbb{Z}; preimages must be elements of the domain.
❌ The coordinates are squared. s(0,3)=0+9=9s(0, 3) = 0 + 9 = 9, not 33.
Show solution

Preimages of 25. If m2+n2=25m^2 + n^2 = 25, then m2≀25m^2 \le 25 and n2≀25n^2 \le 25. The squares of integers up to 2525 are 0,1,4,9,16,250, 1, 4, 9, 16, 25, and the ordered ways to write 2525 as a sum of two of them are 0+250 + 25, 25+025 + 0, 9+169 + 16, 16+916 + 9. With all sign choices:

(0,5)(0, 5), (0,βˆ’5)(0, -5), (5,0)(5, 0), (βˆ’5,0)(-5, 0), (3,4)(3, 4), (3,βˆ’4)(3, -4), (βˆ’3,4)(-3, 4), (βˆ’3,βˆ’4)(-3, -4), (4,3)(4, 3), (4,βˆ’3)(4, -3), (βˆ’4,3)(-4, 3), (βˆ’4,βˆ’3)(-4, -3).

That is 2+2+4+4=122 + 2 + 4 + 4 = 12 preimages.

Preimages of 3. If m2+n2=3m^2 + n^2 = 3, then m2≀3m^2 \le 3 and n2≀3n^2 \le 3, so m2,n2∈{0,1}m^2, n^2 \in \{0, 1\} and m2+n2∈{0,1,2}m^2 + n^2 \in \{0, 1, 2\}. None of these is 33, so

{(m,n)∈ZΓ—Z∣m2+n2=3}=βˆ….\{(m, n) \in \mathbb{Z} \times \mathbb{Z} \mid m^2 + n^2 = 3\} = \emptyset.

In other words, 33 is an element of the codomain that is not in the range of ss.

Solved: 0 / 4