2.2.2 · D3Functions

Worked examples — Domain, codomain, range

3,141 words14 min readBack to topic

You have met the three sets already in the parent note: the domain (inputs allowed in), the codomain (the declared target), the range (what actually comes out). This page does one thing: it drags the topic through every kind of function you could be handed and works each one to the end. No new idea is used before we've hit it in an example.


The scenario matrix

Each row is a case class — a distinct reason the range behaves the way it does. The last column names the example that covers it.

# Case class What makes it special Danger Covered by
A Turning function (parabola, both signs of input) goes down then up ⇒ a minimum, range starts there forgetting negative inputs give same outputs Ex 1
B Monotonic on closed interval increasing/decreasing ⇒ range = reading endpoints off wrong Ex 2
C Fraction with a forbidden input one makes denominator domain-hole and a missed output Ex 3
D Square-root clip output can't go below , and a ceiling from domain inventing outputs that never happen Ex 4
E Straight line, all reals hits every real, range = codomain thinking a line ever "misses" something Ex 5
F Degenerate / constant one single output for all inputs calling it "not a function" Ex 6
G Word problem with hidden domain reality forbids some inputs ignoring physical limits Ex 7
H Exam twist: fraction that CAN reach its wall numerator lets hit a value Ex 3 would miss copying Ex 3's conclusion blindly Ex 8
I Piecewise-defined (rule switches at a break) each piece has its own sub-range; union them ignoring one branch, or the join point Ex 9

We now walk down the rows.


Case A — turning function

Figure — Domain, codomain, range

Figure s01 — description: the U-shaped parabola ; its lowest point (vertex) sits at , and a shaded band above marks the range ; arrows on both arms show the curve rising to on either side.


Case B — monotonic on a closed interval

Recall Why does restricting the domain shrink the range?

Fewer allowed inputs ::: fewer producible outputs, so the range can only stay the same or get smaller.


Case C — fraction with a forbidden input

Figure — Domain, codomain, range

Figure s02 — description: the two branches of ; a dashed vertical line at marks the forbidden input (the wall the curve never crosses), and a dashed horizontal line at marks the output value the curve approaches but never attains.


Case D — square-root clip (both a floor and a ceiling)

Figure — Domain, codomain, range

Figure s03 — description: the upper semicircle ; the peak dot at marks the ceiling, the two dots at where the arc meets the axis mark the floor , and the shaded band from to is the range .


Case E — straight line hits everything


Case F — the degenerate / constant machine


Case G — word problem with a hidden domain


Case H — exam twist: the fraction that DOES hit a value Ex 3 would miss

Figure — Domain, codomain, range

Figure s04 — description: the bump-shaped curve ; a dot at the origin marks the floor that is reached, and a dashed horizontal line at marks the ceiling the curve rises toward but never touches; the shaded band from up to (but not including) is the range .


Case I — piecewise-defined function


Connections

  • Function Basics — Ex 6 and Ex 9 lean on "exactly one output per input" to accept the map.
  • Surjective Functions — Ex 5 is onto (range = codomain); Ex 1, 3, 4, 6, 8, 9 are not.
  • Injective Functions — Ex 1's parabola fails one-to-one (two inputs, one output), which is why completing the square beat inverting.
  • Inverse Functions — a clean inverse needs the range analysis of Ex 3 and Ex 8.
  • Composite Functions — to build , the range found here must sit inside 's domain.
  • Graphing Functions — every figure on this page reads range off the -extent.