01 · Two orders
f(x) = 3x + 2 and g(x) = x² − 1, both on all real numbers. Find fg(x) and gf(x).
Hint
Insert one whole expression into the other.
Worked solution
fg(x) = 3(x² − 1) + 2 = 3x² − 1. gf(x) = (3x + 2)² − 1 = 9x² + 12x + 3. Both domains are all real numbers.
02 · Repeated function
For f(x) = 3x + 2, find f²(x) and [f(x)]².
Hint
The first repeats the machine; the second squares its output.
Worked solution
f²(x) = 3(3x + 2) + 2 = 9x + 8. [f(x)]² = 9x² + 12x + 4.
03 · Three stages
For f(x) = 2x, g(x) = x² and h(x) = x − 3, find fgh(5).
Hint
Start with h(5).
Worked solution
5 → h → 2 → g → 4 → f → 8. Thus fgh(5) = 8.
04 · Order and domain
f(x) = √(x + 1), x ≥ −1; g(x) = 2x. Find fg and gf, including domains.
Hint
Check the input to the square root in each order.
Worked solution
fg(x) = √(2x + 1), domain x ≥ −1/2. gf(x) = 2√(x + 1), domain x ≥ −1.
05 · A hidden exclusion
r(x) = 2/x for x ≠ 0. Find r²(x) and its domain.
Hint
Retain the original restriction through cancellation.
Worked solution
r²(x) = 2/(2/x) = x, but only for x ≠ 0. The inner output 2/x is never zero for these inputs, so there are no additional exclusions.
06 · Solve and check
f(x) = √x and g(x) = x + 5. Solve fg(x) = 4.
Hint
First find fg and its domain.
Worked solution
fg(x) = √(x + 5), domain x ≥ −5. Squaring the nonnegative sides gives x + 5 = 16, so x = 11. It satisfies the domain and gives output 4.
07 · Logarithmic domain
a(x) = ln x and b(x) = 9 − x². State the domain of ab, and solve ab(x) = ln 5.
Hint
The logarithm argument must be strictly positive.
Worked solution
Require 9 − x² > 0, so −3 < x < 3. The equation gives 9 − x² = 5, hence x = ±2. Both are allowed.
08 · Move a branch boundary
p(t) = 2t for t < 1 and p(t) = t + 3 for t ≥ 1. If q(x) = x + 2, express pq as a piecewise function and find pq(−1).
Hint
Translate the test x + 2 < 1.
Worked solution
pq(x) = 2x + 4 for x < −1, and pq(x) = x + 5 for x ≥ −1. At x = −1 the second branch applies, giving pq(−1) = 4.
09 · A specified domain
f(x) = x² for x ≥ 2 and g(x) = x − 1 for x ≥ 0. Find the domain and range of fg.
Hint
Require x ≥ 0 and x − 1 ≥ 2 simultaneously.
Worked solution
fg(x) = (x − 1)², with domain x ≥ 3. On this domain x − 1 ≥ 2, so the range is y ≥ 4.
10 · Exponential and logarithm
e(x) = eˣ and a(x) = ln x. Are ae and ea the same function on their natural domains?
Hint
The simplified formulas agree. Do the domains?
Worked solution
No. ae(x) = ln(eˣ) = x for all real x, whereas ea(x) = e^(ln x) = x only for x > 0. A function includes its domain, so these are different functions despite sharing a simplified formula.