2.2.2 · D2Functions

Visual walkthrough — Domain, codomain, range

1,878 words9 min readBack to topic

Step 1 — What is a function, as a picture?

WHAT. A function is a rule that takes one input and gives back exactly one output. We write it . The letter is the name of the rule. The letter (the domain) is the box of allowed inputs. The letter (the codomain) is the box we promise to land inside.

WHY. Before we can ask "which outputs actually come out?" we must be crystal clear on three separate collections: what goes in, where we aim, and where we truly land. Mixing them is the #1 mistake.

PICTURE. Two boxes with arrows between them. Left box = domain . Right box = codomain . Every dot on the left fires exactly one arrow. The arrows land on a smaller cluster inside — that shaded cluster is the range.

Figure — Domain, codomain, range

Notice in the figure: some dots in receive no arrow. Those are in the codomain but not in the range. That gap is the whole story.


Step 2 — Turn "range" into a yes/no question

WHAT. Pick any candidate output value sitting in the codomain. Ask one question:

Does the equation have at least one solution inside the domain ?

If yes, then some input maps to , so is in the range. If no, then nothing maps there, and is not in the range.

WHY. "Find all the outputs" is vague and infinite. But "for this one , does a matching exist?" is a concrete, checkable question. We have converted a set-building problem into a solvability problem — one we can attack with algebra.

Read the symbol as the words "there exists." It is just shorthand for "you can find at least one."

PICTURE. A horizontal line drawn across the graph at height . The question becomes purely visual: does that horizontal line touch the curve? Touch = solvable = in range. Miss = not in range.

Figure — Domain, codomain, range

Step 3 — Solve for : the inversion trick

WHAT. To test "does have a solution?", we rearrange the equation to isolate on one side, getting .

WHY. Once is written in terms of , checking solvability is easy: we just ask which values of make that expression a real, allowed input. Some will produce a nonsense (like a square root of a negative, or a division by zero) — those are exactly the ones the function can never output.

Take the parent's square example :

The symbol asks "what number, squared, gives this?" It is the tool that undoes squaring — which is why we reach for it here and not for, say, a logarithm: our machine squared, so we invert with a square root.

PICTURE. Reading the graph sideways: drop from a height on the vertical axis across to the curve, then down to the horizontal axis. That landing spot is . When is negative, the horizontal line is below the whole parabola — there is nowhere to land.

Figure — Domain, codomain, range

Step 4 — Read off the constraint on

WHAT. For to be a real number, we need whatever sits under the root sign to be :

WHY. The square root of a negative number is not a real input — no real exists, so the horizontal line misses the parabola entirely, so that is not an output. Every , on the other hand, does give a real , and plugging back gives . So each non-negative is genuinely hit.

PICTURE. Shade the vertical axis. The green shaded stretch (from upward) is exactly the set of heights the parabola reaches; the red stretch below is heights it never touches. That green stretch is the range, and the red gap is codomain-minus-range.

Figure — Domain, codomain, range

Step 5 — The trap: the domain can shrink the range

WHAT. Same rule , but now restrict the domain to . Only inputs between and are allowed.

WHY. Step 4 said " must be real." But it must also live in the domain . On the parabola is rising (bigger gives bigger ), so it sweeps only from its lowest point to its highest:

Because the curve is unbroken (continuous) on a closed interval, it hits every height in between. So:

PICTURE. Chop the parabola so only remains. The reachable heights collapse from " to " down to " to ." A smaller input window ⇒ a smaller output window.

Figure — Domain, codomain, range

Step 6 — The degenerate case: a value the machine can never reach

WHAT. Take the parent's rational rule on . Invert it:

WHY. Watch the factor multiplying . To divide it away and solve for , we need . If , that factor is zero, and the equation becomes — a flat contradiction. No input can ever produce .

PICTURE. The graph is a hyperbola. It races up toward the horizontal dashed line but never lands on it — that line is a boundary it approaches forever without touching. The single missing height is a hole punched in the codomain.

Figure — Domain, codomain, range

Step 7 — All the cases on one canvas

WHAT. Three shapes, three range-behaviours, one lesson:

Rule Domain Range What the picture shows
half the codomain missed below
shrunk window ⇒ shrunk range
exactly one height forever missed

WHY. The single unifying move: a height is in the range exactly when a horizontal line at crosses the graph over the allowed -window. Everything — the parabola's floor, the restricted interval's cap, the hyperbola's missing line — is just where the horizontal sweep does or doesn't hit.

PICTURE (summary). All three graphs side by side, each with its horizontal-sweep test and its range shaded on the vertical axis.

Figure — Domain, codomain, range

The one-picture summary

Figure — Domain, codomain, range
Recall Feynman retelling — say it back in plain words

A function is a machine: a box of allowed things go in (domain), and I promise the results live in some target box (codomain). But which results truly pop out (range)? To check any single result , I slide a flat horizontal ruler across the graph at height and ask: does it touch the curve, using only allowed inputs? If it touches, comes out — it's in the range. If it floats above or below the whole picture, never comes out. Algebraically, "does it touch?" becomes "can I solve for a real, allowed ?" — so I flip the equation to get in terms of , then throw out every that would force a negative under a root, a divide-by-zero, or an outside my domain. What survives is the range. The parabola misses everything below zero; squeezing its inputs squeezes its outputs; the hyperbola misses exactly the one height it can only approach, never reach.


Quick checks

Range of on all of
— nothing negative, everything non-negative reachable.
Range of on
— the rising curve runs from up to .
Which height does never output, and why
, because solving forces the factor , giving the contradiction .
What visual test decides if is in the range
draw a horizontal line at ; if it crosses the graph over the allowed domain, is in the range.

Connections

  • Parent: Domain, codomain, range — this page derives its range algorithm visually.
  • Function Basics — the "one output per input" rule underlies Step 1.
  • Surjective Functions — onto means the range fills the whole codomain (no red gap in Step 4).
  • Injective Functions — one horizontal line hitting the curve once vs. twice.
  • Inverse Functions — Step 3's "solve for " is literally building the inverse.
  • Composite Functions — the range from these pictures must fit inside the next function's domain.
  • Graphing Functions — the whole page is the graph-reading skill in action.