The University of Hong Kong · FACULTY OF MATHEMATICS

MATH1011 Chap.5 Functions, Domains and Composition

- one subject, every graph, every model, every mark
6 Chapters6-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 5 of 12 · MATH1011

Functions, Domains and Composition

A function includes its allowed inputs

A function is not merely a formula. It consists of an input set, an output set and a rule that assigns exactly one output to each allowed input. Two inputs may share an output without causing trouble; one input may not produce two different outputs.

Changing the domain changes the function even when every visible symbol in the rule stays the same.

The natural domain is the largest real input set on which the formula makes sense. For the functions used here, the main restrictions are immediate: an even root needs a nonnegative expression underneath it, a denominator cannot be zero, and a logarithm needs a positive argument. Apply every restriction together.

If a forbidden denominator value lies inside the interval allowed by a root, the domain has a puncture and must be written in two pieces.

Range is produced, codomain is declared

The codomain is the set nominated to receive outputs, while the range is the set of outputs the function actually reaches. A codomain can be larger than the range.

To find a range, use the graph, solve y = f(x) for possible inputs, or transform a known standard range. Endpoints deserve separate attention: a closed domain end may create an attained range end, while a value approached but never reached stays open.

Standard graphs act as reusable shapes.

Absolute value forms a V, a square forms an upward parabola, the reciprocal has two branches with forbidden axes, and the square root begins at its endpoint. A horizontal shift changes the input before the rule acts, while a vertical shift changes the output after it acts.

Read those roles rather than memorising an isolated picture.

Composition is a pipeline with a domain check

The composition g after f means apply f first and feed that result into g. Order matters because reversing the machines generally changes the answer and may change whether the expression is defined. The domain of the composition contains only inputs accepted by f whose f-values are accepted by g.

Check both stages before simplifying the combined formula, especially when roots, denominators or logarithms appear.

Piecewise functions demand the same discipline repeatedly. Evaluate the first branch, then use the resulting value to decide the branch on the next pass. The branch is chosen from the current input at that stage, not from the original number.

Write each intermediate output on its own line so that a sign change or boundary value cannot silently send the calculation down the wrong rule.

In this chapter

What this chapter covers

  • 01

    Function rules, domains and codomains

  • 02

    Natural-domain restrictions from roots and denominators

  • 03

    Range as the set of outputs actually reached

  • 04

    Standard graphs and geometric transformations

  • 05

    Composition order and the pipeline test

  • 06

    Repeated evaluation of piecewise functions

Worked example · free

Build a composition and keep only the legal inputs

Q [6 marks]. AskSia-authored practice. Let f(x) = √(x − 2) and g(t) = 1/(t − 3). Find g(f(x)) and its natural domain. The marks are an AskSia study allocation, not a University marking scheme.
All four panels share one scale: a single unit measures 16 drawing units on both axes, with x running from -3 to 3.All four panels share one scale: a single unit measures 16 drawing units on both axes, with x running from -3 to 3. The reciprocal panel has a hole at x = 0 and races away either side of it, and the root panel stays blank left of the vertical axis because nothing there is allowed in.f(x) = |x|vertex at originf(x) = x²flat at the originf(x) = 1/xno value at x = 0f(x) = √xstarts at x = 0
All four panels share one scale: a single unit measures 16 drawing units on both axes, with x running from -3 to 3. The reciprocal panel has a hole at x = 0 and races away either side of it, and the root panel stays blank left of the vertical axis because nothing there is allowed in.
  • 2Apply f first and impose its square-root restriction.
  • 2Feed the result into g and identify the forbidden output of f.
  • 2Combine the restrictions and write the domain in interval notation.
Applying f first gives f(x) = √(x − 2), which requires x − 2 ≥ 0 and therefore x ≥ 2. Feeding that output into g gives g(f(x)) = 1/(√(x − 2) − 3). The denominator must not be zero, so √(x − 2) ≠ 3. Squaring the nonnegative quantities gives x − 2 ≠ 9, hence x ≠ 11. Combining both conditions, the natural domain is [2, 11) ∪ (11, ∞). The point 2 remains included because the square root is zero there and the denominator is minus 3, not zero.
Sia tip — Check the outer function against the inner output, not against the original x; composition restrictions live at different stages.
Glossary

Key terms

Domain
The Domain is the set of inputs a function is allowed to receive.
Codomain
The Codomain is the declared set in which every output is required to lie.
Range
The Range is the subset of the codomain that the function actually reaches.
Composition
Composition sends the output of one function into another, with the inner function acting first.
Piecewise Function
A Piecewise Function uses different rules on stated parts of its domain while still assigning one value to each input.
FAQ

Functions, Domains and Composition FAQ

Why is a formula not enough to identify a function?

The same formula can define different functions when its allowed inputs or declared output set changes. A rule such as the square root on all nonnegative real numbers is not the same function as the identical rule restricted to one interval, even where their numerical outputs agree.

How do I find the domain of a composition?

First find which inputs the inner function accepts. Then require every resulting inner value to lie in the outer function's domain. Combine those two conditions before simplifying, because an algebraically neat combined formula can hide a value rejected at an intermediate stage.

What is the practical difference between range and codomain?

The codomain is chosen in advance and may contain values never produced. The range is discovered from the rule and domain, so it records only outputs that actually occur. A range question therefore requires calculation or graph reading rather than copying the set written after the arrow.

Study strategy

Exam move

For every function problem, write D, rule and range as separate lines before manipulating the expression. On compositions, draw two boxes and put each restriction under the box that creates it. Rehearse the standard absolute-value, square, reciprocal and square-root graphs from blank axes, then describe each shift in words before drawing it.

Working through Functions, Domains and Composition in MATH1011? Sia is AskSia’s AI Mathematics tutor — ask any MATH1011 Functions, Domains and Composition question and get a clear, step-by-step explanation grounded in how MATH1011 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 30 of your The University of Hong Kong subjects - and 1,000+ Bibles across every Australian university.
Sia - your MATH1011 tutor, unlimited, worked the way the exam marks it
The full 6-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works