For Euclid 2027 composite functions, do not simplify first. For h(x)=f(g(x)), require x in the domain of g and g(x) in the domain of f; invert only after checking that h is one-to-one on that composed domain. The 2027 Euclid is scheduled for April 6 in North and South America and April 7 elsewhere, per the CEMC Euclid Contest page.
What is the domain-first rule for f(g(x))?
The composed domain is not simply the domain of f, and it is not simply the domain of g. It is the set of inputs x that survive both filters: first, x must be allowed into g; second, the output g(x) must be allowed into f. In symbols, if h(x)=f(g(x)), then D_h = {x in D_g : g(x) in D_f}.
This order matters when a logarithm sits outside another function. The logarithm does not see x directly; it sees g(x). So the condition is not “x is positive.” The condition is “g(x) is positive,” and that condition must be solved together with the domain of g. A useful habit is to write two lines before any algebra: inner domain and outer condition. Then intersect them. Only after the composed domain is fixed should you simplify, solve, or invert.
The same rule controls the range. If g maps its domain onto a set R_g, then the composed function can use only those values in R_g that also lie in D_f. That intersection becomes the input set for the outer function. Later, when you form an inverse, this composed range becomes the inverse’s domain. Domain and range are therefore not bookkeeping at the end; they are the structure of the problem.
Why this is a 2027 preparation issue, not only a log-equation drill
Hanlin’s September 14, 2026 Euclid review note, “2027 Euclid Mathematics Contest New Season Registration Opens: Hanlin Supports Efficient Preparation,” is a coaching analysis rather than a CEMC statement. It observed that the 2026 paper moved away from standalone logarithm equations and placed a logarithm inside a composite-function problem, requiring a solid understanding of both composition and logarithm behaviour. That observation does not tell us the exact 2027 questions, but it does identify a useful preparation shift: students need a routine for composition, not only a routine for solving log equations.
The CEMC Euclid Contest page describes a mix of final-answer and full-solution questions and states that each submitted solution is assessed for completeness, clarity, and presentation style. It also notes that some problems might require knowledge beyond a student’s school curriculum. Those two facts make a domain-first diagnostic valuable. A student who writes a correct final expression but never states the composed domain has not shown the full reasoning. For equation-specific log work, the adjacent article Euclid Logarithm Equations: Check the Domain Before Simplifying handles root rejection; the present question is composition: whether f(g(x)) exists, what its range is, and whether it can be inverted.

Three failure modes to diagnose before practice
- Cancelling before the domain. A student writes ln((x-1)^2)=2ln(x-1) and loses the negative side of the domain. The identity is valid only where x-1 is positive. On the full natural domain x≠1, the correct simplification uses absolute value: ln((x-1)^2)=2ln|x-1|.
- Checking the inner domain but not the outer condition. A square root may be defined at x=2, but that does not prove the logarithm outside it is defined. The student must check that the inner output lands in the logarithm’s domain.
- Assuming an inverse exists on the natural domain. A composed function can be perfectly well defined and still fail to be one-to-one. The function i(x)=ln((x-1)^2) has i(0)=i(2)=0, so its natural domain cannot support a single inverse without a restriction.
The two functions used below are original teaching illustrations, not official Euclid problems. They are deliberately simple so that every domain, range, and inverse step can be checked completely.
Worked teaching illustration: logarithm outside a square root
Let g(x)=sqrt(x-2) and f(t)=ln(5-t), and define h(x)=f(g(x))=ln(5-sqrt(x-2)). Find the natural domain of h, its range, and its inverse if one exists.
Step 1: inner domain. The square root requires x-2≥0, so x≥2. Thus D_g=[2,∞).
Step 2: outer condition. The logarithm requires its input to be positive: 5-sqrt(x-2)>0. Hence sqrt(x-2)<5. Because both sides are nonnegative, squaring is valid and gives x-2<25, so x<27. Combining with x≥2 gives D_h=[2,27). The endpoint x=2 is included because sqrt(0)=0 and 5-0=5>0. The endpoint x=27 is excluded because the logarithm’s input would become 0.
Step 3: range. On [2,27), the inner value u=sqrt(x-2) runs through [0,5). The outer expression is ln(5-u). At u=0 it equals ln5. As u approaches 5 from below, 5-u approaches 0 from above, so ln(5-u) approaches negative infinity. Therefore the range is (-∞,ln5].
Step 4: one-to-one check. If 2≤a<b<27, then sqrt(a-2)<sqrt(b-2), so 5-sqrt(a-2)>5-sqrt(b-2)>0. Since ln is strictly increasing, h(a)>h(b). Thus h is strictly decreasing on its whole domain, so it is one-to-one and has an inverse.
Step 5: inverse. Start from y=ln(5-sqrt(x-2)). Then e^y=5-sqrt(x-2), so sqrt(x-2)=5-e^y. For the square root to be nonnegative, e^y≤5, so y≤ln5. Squaring gives x-2=(5-e^y)^2, hence x=2+(5-e^y)^2. The inverse is h^{-1}(y)=2+(5-e^y)^2 with domain (-∞,ln5]. This domain is exactly the range of h, as it must be.
Contrast: when the natural domain is not one-to-one
Now consider the second function, i(x)=ln((x-1)^2). The inner function is (x-1)^2, defined for all real x. The outer logarithm requires (x-1)^2>0, so x≠1. Thus the natural composed domain is (-∞,1)∪(1,∞). The range is all real numbers, because (x-1)^2 can be any positive number and ln covers every real value.
But i is not one-to-one on its natural domain. For example, i(0)=ln(1)=0 and i(2)=ln(1)=0. Two different inputs have the same output. Therefore i has no inverse on that full domain. A valid inverse requires restricting the domain to a one-to-one piece. On x>1, we may write i(x)=2ln(x-1). Solving y=2ln(x-1) gives x=1+e^{y/2}. On x<1, the expression is i(x)=2ln(1-x), and the inverse is x=1-e^{y/2}. Both restricted inverses have domain all real numbers, but they are different functions because they recover different branches of the original composed function.
This contrast is the diagnostic heart of the topic. Existence of a formula for f(g(x)) does not imply existence of a global inverse. The student must identify the composed domain, test whether two different inputs can produce the same output, and restrict before inverting if necessary.
How range transfer controls the inverse domain
| Composed function | Natural composed domain | Composed range | Inverse status |
|---|---|---|---|
| h(x)=ln(5-sqrt(x-2)) | [2,27) | (-∞,ln5] | One-to-one; inverse domain is (-∞,ln5] |
| i(x)=ln((x-1)^2) | (-∞,1)∪(1,∞) | All real numbers | Not one-to-one globally; restrict to x>1 or x<1 before inverting |
The table makes a pattern visible. The inner function’s range is filtered by the outer function’s domain. The surviving outputs determine the composed range. That range then becomes the inverse’s domain. If the composed function is not one-to-one, the range may still be correct, but an inverse requires choosing a branch.
Compose, invert, or test a value: a short decision aid
When a composite-function question appears, classify the request before doing algebra. If the question asks where the expression is defined, write the inner domain and the outer condition. If it asks for an inverse, first find the composed domain and test one-to-one behaviour; if the function is not one-to-one, state the restriction. If it asks for a solution to h(x)=c, check whether c lies in the range before solving. A value outside the range should be rejected immediately; a value inside the range still needs its solution checked against the composed domain.
For h(x)=ln(5-sqrt(x-2)), the value 0 is in the range because 0≤ln5. Solving h(x)=0 gives sqrt(x-2)=4, so x=18, which lies in [2,27). By contrast, the value ln6 is not in the range, because ln6>ln5, so h(x)=ln6 has no solution. Perform this range check before a long algebraic attempt: a target outside the range can be rejected immediately. The article Euclid Functional Equations: Testing Special Inputs Before Guessing a Formula develops the same habit of testing inputs before committing to a general formula.
Writing the solution so the domain survives presentation
Because the CEMC page states that Euclid solutions are assessed for completeness, clarity, and presentation style, the written solution should make the domain visible from the first line. A compact template is: “For h(x)=f(g(x)), first require x in D_g. Next require g(x) in D_f. Therefore D_h=… . On this domain, h is [increasing/decreasing/not one-to-one]. Hence … .” This template forces every equivalence to be justified on the domain where it is valid.
Do not write a chain of equalities that silently changes the domain. If you use ln((x-1)^2)=2ln|x-1|, say so. If you restrict to x>1 so that the absolute value disappears, state the restriction before using the simpler form. When finding an inverse, finish with both the formula and its domain. The domain of the inverse must equal the range of the composed function. For broader function-and-logarithm revision, see The Algebraic Middle of the Euclid Paper: Functions, Sequences, Logarithms and Trigonometry.
Ten-minute self-check and what to bring to a review
Use a short self-check after each composite-function attempt. Mark every error as one of four types: domain error, range error, inverse error, or presentation error. A domain error means an invalid input survived or a valid endpoint was lost. A range error means the inner output was not filtered correctly by the outer domain. An inverse error means a function was inverted without a one-to-one check or with the wrong inverse domain. A presentation error means the correct idea was present but the domain, restriction, or equivalence was not stated clearly enough for a full-solution reader to follow.
If you later ask a teacher or programme for feedback, make the request specific. Bring your written domain line, your range calculation, your one-to-one check, and your inverse with its domain. Ask which step is the first invalid equivalence, rather than asking only whether the final answer is right. That kind of review keeps the focus on the first invalid equivalence rather than on a score alone.
General event background is available at Event background.

Frequently Asked Questions
What is the domain of f(g(x)) for Euclid composite-function questions?
Find the set of x in the domain of g for which g(x) lies in the domain of f. The composed domain is the intersection of those two conditions. For a logarithm outside g, this means solving g(x) greater than zero together with the domain of g.
Does every composed function have an inverse?
No. A composed function must be one-to-one on its stated domain before it has an inverse. If it is not one-to-one, restrict the domain to a one-to-one piece first; the inverse’s domain is then the range of that restricted composed function.
Can I simplify ln((x-1)^2) to 2ln(x-1)?
Only when x is greater than 1. On the full natural domain x not equal to 1, the valid identity is ln((x-1)^2)=2ln|x-1|. Losing the absolute value loses the negative branch of the domain.