Mathematical-Reasoning ยท Unit 20 ยท Video 3 ยท Interactive Practice

Images and Preimages: The Formal Definition of a Function

IKey Formulas

FormulaNameMeaning
f:Aโ†’Bf : A \to BFunction (mapping) from AA to BBA rule giving each xโˆˆAx \in A exactly one element of BB; A=dom(f)A = \text{dom}(f), B=codom(f)B = \text{codom}(f)
f(x)=yf(x) = yImage and preimageyy is the image of xx under ff; xx is a preimage of yy for ff
{xโˆˆAโˆฃf(x)=y}\{x \in A \mid f(x) = y\}Set of preimages of yySolve f(x)=yf(x) = y over the domain; the set may be empty, have one element, or more
x2โˆ’5x=2x^2 - 5x = 2Same formula, different domainOn R\mathbb{R}: two solutions, 5ยฑ332\frac{5 \pm \sqrt{33}}{2}; on Z\mathbb{Z}: none, so the set is โˆ…\emptyset

Key Insight: A function is a rule together with its domain and codomain. Every input has exactly one image; an output may have several preimages, exactly one, or none, and two inputs sharing an output does not break the definition.

IIVisualization 1 โ€” The Image Versus the Preimages

Under g:Rโ†’Rg : \mathbb{R} \to \mathbb{R}, g(x)=x2โˆ’2g(x) = x^2 - 2, each input has exactly one image, while an output can have two, one or no preimages.

IIIVisualization 2 โ€” Same Formula, Different Function

On R\mathbb{R} and on Z\mathbb{Z} the formula x2โˆ’5xx^2 - 5x defines different functions, and their preimage sets can differ.

f:Rโ†’Rf : \mathbb{R} \to \mathbb{R}, f(x)=x2โˆ’5xf(x) = x^2 - 5x (the whole curve)

g:Zโ†’Zg : \mathbb{Z} \to \mathbb{Z}, g(m)=m2โˆ’5mg(m) = m^2 - 5m (only the squares)

IVVisualization 3 โ€” Arrow Diagrams and the Definition

A diagram defines a function from AA to BB exactly when each element of AA sends out one arrow.

VQuiz Questions

Problem 1 ยท Computing an Image

Given: h:Rโ†’Rh : \mathbb{R} \to \mathbb{R} defined by h(x)=x2+3xโˆ’1h(x) = x^2 + 3x - 1. Find the image of โˆ’4-4 under hh.

โœ… Correct! h(โˆ’4)=16โˆ’12โˆ’1=3h(-4) = 16 - 12 - 1 = 3, the one output hh assigns to โˆ’4-4.
โŒ Not quite. The middle term is 3โ‹…(โˆ’4)=โˆ’123 \cdot (-4) = -12, not +12+12: h(โˆ’4)=16โˆ’12โˆ’1h(-4) = 16 - 12 - 1.
โŒ Not quite. (โˆ’4)2=16(-4)^2 = 16, not โˆ’16-16: the square of a negative number is positive.
โŒ Not quite. The middle term is 3x3x, so at x=โˆ’4x = -4 it is 3โ‹…(โˆ’4)=โˆ’123 \cdot (-4) = -12, not โˆ’4-4.
Show solution

The image of โˆ’4-4 under hh is h(โˆ’4)h(-4), found by substituting into the formula:

h(โˆ’4)=(โˆ’4)2+3(โˆ’4)โˆ’1=16โˆ’12โˆ’1=3.h(-4) = (-4)^2 + 3(-4) - 1 = 16 - 12 - 1 = 3.

So the image of โˆ’4-4 under hh is 33. Every input has exactly one image, so this is the image of โˆ’4-4.

Problem 2 ยท Preimages Depend on the Domain

Given: q:Nโ†’Nq : \mathbb{N} \to \mathbb{N} defined by q(n)=n2+nq(n) = n^2 + n, where N={1,2,3,โ€ฆ}\mathbb{N} = \{1, 2, 3, \ldots\}. Find the set of preimages of 66 for qq.

โœ… Correct! q(2)=4+2=6q(2) = 4 + 2 = 6, and 22 is the only natural number with q(n)=6q(n) = 6.
โŒ Close, but check the domain. โˆ’3-3 does solve n2+n=6n^2 + n = 6, but โˆ’3โˆ‰N-3 \notin \mathbb{N}, so it is not in the domain of qq and cannot be a preimage.
โŒ Not quite. 42=q(6)42 = q(6) is the image of 66. A preimage of 66 is an input nn with q(n)=6q(n) = 6.
โŒ Not quite. q(2)=22+2=6q(2) = 2^2 + 2 = 6, so 66 has at least one preimage.
Show solution

The preimages of 66 are the nโˆˆNn \in \mathbb{N} with q(n)=6q(n) = 6:

n2+n=6โ€…โ€ŠโŸบโ€…โ€Šn2+nโˆ’6=0โ€…โ€ŠโŸบโ€…โ€Š(n+3)(nโˆ’2)=0โ€…โ€ŠโŸบโ€…โ€Šn=โˆ’3ย orย n=2.n^2 + n = 6 \iff n^2 + n - 6 = 0 \iff (n + 3)(n - 2) = 0 \iff n = -3 \text{ or } n = 2.

Only 22 lies in the domain N\mathbb{N}, and q(2)=4+2=6q(2) = 4 + 2 = 6. So the set of preimages of 66 for qq is {2}\{2\}. For the function from Z\mathbb{Z} to Z\mathbb{Z} given by the same formula, the set would be {โˆ’3,2}\{-3, 2\}.

Problem 3 ยท One Formula, Two Functions

Given: F:Rโ†’RF : \mathbb{R} \to \mathbb{R} and G:Zโ†’ZG : \mathbb{Z} \to \mathbb{Z}, both defined by the formula x2โˆ’3xx^2 - 3x. Find the set of preimages of 11 for each function.

Set of preimages of 11 for FF

Set of preimages of 11 for GG

โœ… Correct! FF has two preimages of 11, and neither is an integer, so GG, whose inputs must be integers, has none.
โŒ Not quite. {0,3}\{0, 3\} solves x2โˆ’3x=0x^2 - 3x = 0, so it is the set of preimages of 00, not of 11.
โŒ Not quite. x2โˆ’3xโˆ’1=0x^2 - 3x - 1 = 0 has discriminant 9+4=13>09 + 4 = 13 > 0, so it has two real solutions, and every real number is in the domain of FF.
โŒ Check the sign. For x2โˆ’3xโˆ’1=0x^2 - 3x - 1 = 0 the quadratic formula gives x=3ยฑ132x = \frac{3 \pm \sqrt{13}}{2}; these options solve x2+3xโˆ’1=0x^2 + 3x - 1 = 0.
โŒ Check the domain. These two numbers are not integers, since 3<13<43 < \sqrt{13} < 4, so they are not in the domain Z\mathbb{Z} of GG.
โŒ Not quite. G(3)=9โˆ’9=0G(3) = 9 - 9 = 0, not 11. Rounding 3+132โ‰ˆ3.30\frac{3 + \sqrt{13}}{2} \approx 3.30 does not produce a preimage.
โŒ Not quite. Solve x2โˆ’3x=1x^2 - 3x = 1 over R\mathbb{R}.
โŒ Not quite. Solve m2โˆ’3m=1m^2 - 3m = 1 over Z\mathbb{Z}.
Show solution

For FF. Solve x2โˆ’3x=1x^2 - 3x = 1, that is x2โˆ’3xโˆ’1=0x^2 - 3x - 1 = 0. It does not factor over the integers, so use the quadratic formula:

x=3ยฑ9+42=3ยฑ132.x = \frac{3 \pm \sqrt{9 + 4}}{2} = \frac{3 \pm \sqrt{13}}{2}.

Both are real, so the set of preimages of 11 for FF is {3โˆ’132,3+132}\left\{\frac{3 - \sqrt{13}}{2}, \frac{3 + \sqrt{13}}{2}\right\}, about โˆ’0.30-0.30 and 3.303.30.

For GG. An integer preimage would have to be one of the same two numbers. Since 9<13<169 < 13 < 16, we have 3<13<43 < \sqrt{13} < 4, so

3<3+132<72andโˆ’12<3โˆ’132<0.3 < \frac{3 + \sqrt{13}}{2} < \frac{7}{2} \quad \text{and} \quad -\frac{1}{2} < \frac{3 - \sqrt{13}}{2} < 0.

Neither number is an integer, so no mโˆˆZm \in \mathbb{Z} has G(m)=1G(m) = 1, and the set of preimages of 11 for GG is โˆ…\emptyset.

Problem 4 ยท Reading the Definition

Given: f:{โˆ’2,โˆ’1,0,1,2}โ†’Zf : \{-2, -1, 0, 1, 2\} \to \mathbb{Z} defined by f(x)=x2f(x) = x^2. Which statement is true?

โœ… Correct! f(โˆ’2)=f(2)=4f(-2) = f(2) = 4 and no element of the domain squares to 33; neither fact affects whether ff is a function.
โŒ Not quite. Two inputs sharing an output is allowed. The definition requires each input to have exactly one output, and f(โˆ’1)=1f(-1) = 1 and f(1)=1f(1) = 1 are single outputs.
โŒ Not quite. The definition places no requirement on elements of the codomain: some may be the output of no input.
โŒ Check the domain. 44 is not in {โˆ’2,โˆ’1,0,1,2}\{-2, -1, 0, 1, 2\}, so f(4)f(4) is not defined; 44 is an output of ff, not an input.
Show solution

The images are f(โˆ’2)=4f(-2) = 4, f(โˆ’1)=1f(-1) = 1, f(0)=0f(0) = 0, f(1)=1f(1) = 1, f(2)=4f(2) = 4. Each of the five inputs has exactly one output in Z\mathbb{Z}, so ff is a function.

The preimages of 44 are the domain elements with x2=4x^2 = 4, namely โˆ’2-2 and 22, so the set is {โˆ’2,2}\{-2, 2\}. No element of the domain has square 33, so the set of preimages of 33 is โˆ…\emptyset. Statement (a) is true.

Statements (b) and (c) describe an output with two preimages and an output with none; the definition allows both. Statement (d) fails because 44 is not in the domain, so it has no image under ff.

Solved: 0 / 4