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

The Range of a Function: From Graphs and Arrow Diagrams

IKey Formulas

FormulaNameWhat it says
range⁑(f)={f(x)∣x∈A}\operatorname{range}(f) = \{f(x) \mid x \in A\}Range (image of ff)All outputs, collected from the domain side
range⁑(f)={y∈B∣y=f(x) for some x∈A}\operatorname{range}(f) = \{y \in B \mid y = f(x) \text{ for some } x \in A\}Same set, codomain sideThe yy in BB that have at least one preimage
range⁑(f)βŠ†codom⁑(f)\operatorname{range}(f) \subseteq \operatorname{codom}(f)Range inside codomainAlways true; equality depends on ff
g(x)=(xβˆ’1)2βˆ’2β‰₯βˆ’2g(x) = (x - 1)^2 - 2 \ge -2Completed squarerange⁑(g)={y∈R∣yβ‰₯βˆ’2}\operatorname{range}(g) = \{y \in \mathbb{R} \mid y \ge -2\}

Key Insight: The definition of a function constrains only the domain side: each input sends exactly one arrow. A codomain point may receive several arrows or none, and the points that receive none are exactly the elements of the codomain outside the range.

IIReading the Range of a Parabola

A height cc is in the range of g(x)=x2βˆ’2xβˆ’1g(x) = x^2 - 2x - 1 exactly when the horizontal line y=cy = c meets the graph.

IIIInputs Meet Once, Outputs Meet Many Times

For f(x)=Asin⁑(Bx)f(x) = A\sin(Bx) with A,B>0A, B > 0, a vertical line meets the graph once; a horizontal line can meet it many times or never.

πŸ’‘ The window shows only βˆ’3.8≀x≀3.8-3.8 \le x \le 3.8; because ff repeats with period about 3.13.1, every output from βˆ’A-A to AA has infinitely many preimages in R\mathbb{R}, and range⁑(f)=[βˆ’A,A]\operatorname{range}(f) = [-A, A] since βˆ’1≀sin⁑(Bx)≀1-1 \le \sin(Bx) \le 1 with both bounds reached.

IVBuild an Arrow Diagram

An arrow diagram from {1,2,3,4}\{1, 2, 3, 4\} to {a,b,c}\{a, b, c\} is a function exactly when each domain point sends one arrow.

VQuiz Questions

Problem 1 Β· The Last Digit of a Square

Given: f:{1,2,…,10}β†’{0,1,…,9}f: \{1, 2, \ldots, 10\} \to \{0, 1, \ldots, 9\}, where f(n)f(n) is the last digit of n2n^2 (for example f(7)=9f(7) = 9, since 72=497^2 = 49). Find range⁑(f)\operatorname{range}(f).

βœ… Correct! The ten outputs are 1,4,9,6,5,6,9,4,1,01, 4, 9, 6, 5, 6, 9, 4, 1, 0, which collect into six values; 22, 33, 77 and 88 have no preimage.
❌ Not quite. That is the codomain. No square ends in 22, 33, 77 or 88, so those digits are outside the range.
❌ Not quite. That is the domain, the set of inputs. The range is a subset of the codomain {0,1,…,9}\{0, 1, \ldots, 9\}; it does not even contain 1010.
❌ Not quite. The range holds the last digits of the squares, not the one-digit squares: f(4)=6f(4) = 6 from 1616, f(5)=5f(5) = 5 from 2525, and f(10)=0f(10) = 0 from 100100.
Show solution

The squares of 1,2,…,101, 2, \ldots, 10 are 1,4,9,16,25,36,49,64,81,1001, 4, 9, 16, 25, 36, 49, 64, 81, 100, so

f(1),f(2),…,f(10)=1,4,9,6,5,6,9,4,1,0.f(1), f(2), \ldots, f(10) = 1, 4, 9, 6, 5, 6, 9, 4, 1, 0.

Collecting the distinct values, range⁑(f)={f(n)∣n∈{1,…,10}}={0,1,4,5,6,9}\operatorname{range}(f) = \{f(n) \mid n \in \{1, \ldots, 10\}\} = \{0, 1, 4, 5, 6, 9\}.

This is a proper subset of the codomain: 22, 33, 77 and 88 have no preimage. Several outputs have two preimages, for example f(4)=f(6)=6f(4) = f(6) = 6; the definition of a function allows that.

Problem 2 Β· Filling the Codomain with One Change

Given: f:{1,2,3,4,5}β†’{a,b,c,d}f: \{1, 2, 3, 4, 5\} \to \{a, b, c, d\} with arrows 1β†’b1 \to b, 2β†’d2 \to d, 3β†’b3 \to b, 4β†’a4 \to a, 5β†’a5 \to a. Find range⁑(f)\operatorname{range}(f), and which single change gives a function whose range is the whole codomain?

What is the range of f?

Which change makes the range equal to the codomain?

βœ… Correct! bb had two preimages, 11 and 33, so one of them can be spent on cc without losing bb: the new outputs c,d,b,a,ac, d, b, a, a fill the codomain.
❌ Not quite. {a,b,c,d}\{a, b, c, d\} is the codomain. No arrow lands on cc, so cc is not in the range.
❌ Not quite. cc is the one codomain point with no preimage, so it is the only point outside the range.
❌ Not quite. {1,2,3,4,5}\{1, 2, 3, 4, 5\} is the domain. The range is a subset of the codomain {a,b,c,d}\{a, b, c, d\}.
❌ Not quite. 22 is the only preimage of dd. The new outputs b,c,b,a,ab, c, b, a, a reach cc but lose dd.
❌ Not quite. Then two arrows leave 55, so the input 55 has two outputs and the diagram is no longer a function.
❌ Not quite. The new outputs b,d,d,a,ab, d, d, a, a still miss cc: the range stays {a,b,d}\{a, b, d\}.
Show solution

The outputs are f(1)=bf(1) = b, f(2)=df(2) = d, f(3)=bf(3) = b, f(4)=af(4) = a, f(5)=af(5) = a, so range⁑(f)={a,b,d}\operatorname{range}(f) = \{a, b, d\}, a proper subset of the codomain. The point cc has no preimage, aa and bb have two each, and dd has one.

A change that keeps a function must still send exactly one arrow from each input, so it moves an arrow rather than adding one; that rules out (b). The moved arrow must land on cc, and it must come from an input whose old target keeps another preimage.

  • (a) Moving 22 to cc leaves dd with no preimage: range {a,b,c}\{a, b, c\}.
  • (c) Moving 33 to dd never reaches cc: range {a,b,d}\{a, b, d\}.
  • (d) Moving 11 to cc gives outputs c,d,b,a,ac, d, b, a, a: range {a,b,c,d}\{a, b, c, d\}, the whole codomain.

Problem 3 Β· Range and Preimages of a Parabola

Given: h:Rβ†’Rh: \mathbb{R} \to \mathbb{R}, h(x)=x2+4x+1h(x) = x^2 + 4x + 1. Find range⁑(h)\operatorname{range}(h) and the set of all preimages of βˆ’2-2.

What is the range?

What are the preimages of βˆ’2?

βœ… Correct! h(x)=(x+2)2βˆ’3h(x) = (x + 2)^2 - 3, so the range starts at the vertex height βˆ’3-3, and βˆ’2-2 sits above it with two preimages.
❌ Not quite. 1=h(0)1 = h(0) is the yy-intercept, not the lowest output: h(βˆ’2)=βˆ’3<1h(-2) = -3 < 1.
❌ Not quite. βˆ’2-2 is the xx-coordinate of the vertex. The range is read from heights: h(βˆ’2)=βˆ’3h(-2) = -3.
❌ Not quite. R\mathbb{R} is the codomain. (x+2)2βˆ’3β‰₯βˆ’3(x + 2)^2 - 3 \ge -3, so no value below βˆ’3-3 is an output.
❌ Not quite. βˆ’2>βˆ’3-2 > -3, so βˆ’2-2 is in the range: solve (x+2)2βˆ’3=βˆ’2(x + 2)^2 - 3 = -2.
❌ Not quite. h(βˆ’2)=βˆ’3h(-2) = -3, not βˆ’2-2. A preimage of βˆ’2-2 is an input xx with h(x)=βˆ’2h(x) = -2.
❌ Not quite. Check the sign: h(1)=6h(1) = 6. From (x+2)2=1(x + 2)^2 = 1 we get x+2=Β±1x + 2 = \pm 1, so x=βˆ’1x = -1 or x=βˆ’3x = -3.
Show solution

Range. Complete the square:

h(x)=x2+4x+4βˆ’3=(x+2)2βˆ’3.h(x) = x^2 + 4x + 4 - 3 = (x + 2)^2 - 3.

A square is never negative, so h(x)β‰₯βˆ’3h(x) \ge -3 for every xx, with equality at x=βˆ’2x = -2. For any yβ‰₯βˆ’3y \ge -3, the input x=βˆ’2+y+3x = -2 + \sqrt{y + 3} gives h(x)=(y+3)2βˆ’3=yh(x) = (\sqrt{y + 3})^2 - 3 = y. So range⁑(h)={y∈R∣yβ‰₯βˆ’3}\operatorname{range}(h) = \{y \in \mathbb{R} \mid y \ge -3\}, a proper subset of the codomain R\mathbb{R}.

Preimages of βˆ’2-2. Solve h(x)=βˆ’2h(x) = -2:

(x+2)2βˆ’3=βˆ’2β€…β€ŠβŸΊβ€…β€Š(x+2)2=1β€…β€ŠβŸΊβ€…β€Šx+2=1Β orΒ x+2=βˆ’1.(x + 2)^2 - 3 = -2 \iff (x + 2)^2 = 1 \iff x + 2 = 1 \text{ or } x + 2 = -1.

So x=βˆ’1x = -1 or x=βˆ’3x = -3. Check: h(βˆ’1)=1βˆ’4+1=βˆ’2h(-1) = 1 - 4 + 1 = -2 and h(βˆ’3)=9βˆ’12+1=βˆ’2h(-3) = 9 - 12 + 1 = -2. The set of preimages is {βˆ’3,βˆ’1}\{-3, -1\}.

Problem 4 Β· Same Formula, Integer Domain

Given: k:Zβ†’Zk: \mathbb{Z} \to \mathbb{Z}, k(n)=n2βˆ’2nβˆ’1k(n) = n^2 - 2n - 1, the video's formula for gg with the domain and codomain changed to Z\mathbb{Z}. Which set equals range⁑(k)\operatorname{range}(k)? (Here N={1,2,3,…}\mathbb{N} = \{1, 2, 3, \ldots\}.)

βœ… Correct! k(n)=(nβˆ’1)2βˆ’2k(n) = (n - 1)^2 - 2, and m=nβˆ’1m = n - 1 runs through all of Z\mathbb{Z} as nn does.
❌ Not quite. That is the real answer cut down to integers, but 00 is in it and (nβˆ’1)2βˆ’2=0(n - 1)^2 - 2 = 0 needs (nβˆ’1)2=2(n - 1)^2 = 2, which has no integer solution.
❌ Not quite. This misses βˆ’2-2: k(1)=βˆ’2k(1) = -2, but m2βˆ’2=βˆ’2m^2 - 2 = -2 needs m=0βˆ‰Nm = 0 \notin \mathbb{N}.
❌ Not quite. Z\mathbb{Z} is the codomain. Since k(n)=(nβˆ’1)2βˆ’2β‰₯βˆ’2k(n) = (n - 1)^2 - 2 \ge -2, the integer βˆ’3-3 has no preimage.
Show solution

Complete the square: k(n)=(nβˆ’1)2βˆ’2k(n) = (n - 1)^2 - 2.

Every output has the form m2βˆ’2m^2 - 2 with m∈Zm \in \mathbb{Z}: take m=nβˆ’1m = n - 1, an integer.

Every m2βˆ’2m^2 - 2 with m∈Zm \in \mathbb{Z} is an output: the integer n=m+1n = m + 1 gives k(m+1)=m2βˆ’2k(m + 1) = m^2 - 2.

So range⁑(k)={m2βˆ’2∣m∈Z}\operatorname{range}(k) = \{m^2 - 2 \mid m \in \mathbb{Z}\}, whose smallest elements are βˆ’2-2, βˆ’1-1, 22, 77, 1414, …

Over R\mathbb{R} the same formula had range {y∈R∣yβ‰₯βˆ’2}\{y \in \mathbb{R} \mid y \ge -2\}; restricting the domain to Z\mathbb{Z} removes the inputs that produced values like 00 (from x=1Β±2x = 1 \pm \sqrt{2}), so the range shrinks to a set with gaps. The N\mathbb{N} version omits m=0m = 0 and with it the output βˆ’2=k(1)-2 = k(1).

Solved: 0 / 4