2.2.2 · D4Functions

Exercises — Domain, codomain, range

2,390 words11 min readBack to topic

Before we start, one reminder in plain words, because every problem leans on it:

Notation used on this page, each spelled out so nothing is a mystery:

  • means "all real numbers" — every number on the number line.
  • (read "R minus the set containing 2") means "all reals except ".
  • is a closed interval: every number from to , endpoints included.
  • is an open interval: same, but endpoints excluded.
  • (read "union") means "glue these pieces together": is everything that is in or in . So means "all numbers below , together with all numbers between and ".
  • Natural domain = the largest set of real inputs for which the formula gives a real answer — everything that isn't forbidden by a or a square root of a negative.
  • reads "there exists an "; reads "is an element of".

Level 1 — Recognition

Recall Solution — L1·Q1

Domain = the set we map from = . Codomain = the set we map into, read off the arrow's right side = . Range = the outputs that actually appear = . A set never repeats elements, so this is .

Notice : the range sits inside the codomain, and are "declared but never produced". Not onto.

Recall Solution — L1·Q2

Legal inputs are exactly the elements of the domain .

  • : negative, not in domain → illegal (you cannot take and stay real).
  • : → legal, .
  • : → legal, .

Legal inputs: .


Level 2 — Application

Recall Solution — L2·Q1

The only thing a fraction forbids is dividing by zero. So we need the denominator : Why both signs? has two solutions, and (a square erases the sign). Miss one and you leave a hidden hole. Domain . Note we write a set, not the condition "".

Recall Solution — L2·Q2

A real square root demands its inside be : Domain . The endpoint is included (there , perfectly fine).

Recall Solution — L2·Q3

is a straight line with positive slope , so it is increasing: bigger input gives bigger output, with no dips. On a closed interval an increasing continuous line sweeps every value between its endpoint outputs.

  • Left endpoint: (the minimum).
  • Right endpoint: (the maximum). Range .

Level 3 — Analysis

Recall Solution — L3·Q1

A value is in the range iff has a real solution . Clear the fraction (valid since is never ): This is a quadratic in (with as a constant). A quadratic has a real root exactly when its discriminant — that square-root part must not go imaginary. Here , , : Edge case : then the equation is linear, , giving — a valid input, so is in. Good, it lies inside our interval. Range . See the figure: the curve rises to a peak of and dips to , never escaping that band.

Figure — Domain, codomain, range
Recall Solution — L3·Q2

Set and solve for :

  • If : , a genuine real number. We must still check this is a legal input, i.e. . Suppose : then gives , i.e. , i.e. false. So the forbidden input is never hit; every is achievable.
  • If : the equation becomes , impossible — no produces . Range . The missed value is exactly the ratio of leading coefficients — the horizontal level the curve approaches but never touches.

Level 4 — Synthesis

Recall Solution — L4·Q1

Domain: need the inside : . Domain . Range: because of the leading , outputs are never negative, so . To find the largest , note is biggest when is biggest, which happens at : . The smallest is , at . Every value between is swept continuously. Range . Graph: squaring gives with — the upper half of a circle of radius . See the figure.

Figure — Domain, codomain, range
Recall Solution — L4·Q2

Complete the square — rewrite so appears once, revealing the lowest point: A square , hitting at and growing without bound as moves away. So , minimum , no upper limit. Range . Codomain . The gap is — every value below is declared but never produced. Not onto.


Level 5 — Mastery

Recall Solution — L5·Q1

Try . The exponential (see Graphing Functions) is always strictly positive: for every real , and it approaches as but never equals . Therefore always, and as the output gets arbitrarily close to without touching it.

  • Is excluded? We'd need , impossible → range. ✔ (open at ).
  • Is every reached? Solve , defined whenever , i.e. . ✔ Range , exactly as required.
Recall Solution — L5·Q2

Composite formula: Domain: forbids its own input being (that makes its denominator ), i.e. we must avoid . But we also see the simplified form forbids . Check both:

  • . Same culprit. So the only excluded input is . Domain . Range: for , , so , and it takes every positive value (as it blows up to ; as it shrinks to but never reaches ). Range .
Recall Solution — L5·Q3

On the domain , produces exactly the outputs : it is at and rises to every non-negative value. So the range is . A function is onto iff codomain range. Hence choosing makes onto. With domain it is also one-to-one (each output from exactly one input, since we dropped the negative branch — see Injective Functions). Being one-to-one and onto, it is invertible, with


Wrap-up recall

Recall One-line summary of each level

L1 — read the three sets straight off the arrow and the actual outputs. L2 — domain from "no ÷0, no √(negative)"; range of a monotone line from its endpoints. L3 — range of a rational: invert, use discriminant / solvability, watch the linear case. L4 — natural domain + geometric range (half-circle, parabola vertex via completing the square). L5 — build functions to hit a target range, chain composites, and tune the codomain for onto-ness.

Connections